Debian Upgrade

Bookworm to Trixie

First be sure you have your bookworm full-updated.

sudo apt update 
sudo apt upgrade -y
sudo apt full-upgrade -y

After than, you need to change the name of the sources at /etc/apt/sources.list

sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sudo find /etc/apt/sources.list.d -type f -exec sed -i 's/bookworm/trixie/g' {} \;

Now make another full-upgrade

sudo apt update 
sudo apt upgrade -y 
sudo apt full-upgrade -y

Now you need to reboot

sudo reboot

Now you should remove all old packages from bookworm

sudo apt autoremove --purge 
sudo apt clean 

As simple as this.. as fast as your machine is :)