# Debian Upgrade

### Upgrade debain11 to debain12:

1. Edit the file **`/etc/apt/sources.list`** using a text editor and replace each instance of **`bullseye`** with **`bookworm`**. Next find the update line, replace keyword \*\*`bullseye-updates**` with **`bookworm-updates`**. Finally, search the security line, replace keyword **`bullseye-security`** with **`bookworm-security`**
2. Update the packages index on Debian Linux, run: **`sudo apt update`**
3. Prepare for the operating system minimal system upgrade, run: **`sudo apt upgrade --without-new-pkgs`**
4. Finally, update Debian 11 to Debian 12 Bookworm by running: **`sudo apt full-upgrade`**
5. Reboot the Linux system so that you can boot into Debian 12 Bookworm