Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The apt package tool is used to upgrade the system. You can use the rollback to avoid loss the system (more details in the below section).

Update the database of available packages, with their version:

Code Block
languagebash
apt update

Upgrade the system with the new version of packages:

Code Block
languagebash
apt upgrade --yes

Upgrade the system with new version of Debian and remove useless packages:

Code Block
languagebash
apt dist-upgrade --yes
apt autoremove --yes --purge

Rollback

As mentioned here, the root partition is in LVM disk. With this configuration, it can be save by a LVM snapshot.

...

Code Block
languagebash
lvremove /dev/VOLUME_GROUP/SNAPSHOT_NAME

More details here here.

Troubleshooting
Can't create a snapshot with old name

...