Upgrades
This is a short recipe for a minimal, up-to-date Debian system.
Instructions
- Log in as the root user (run
su
if you are already logged-in as a regular user). - Ensure system packages are up-to-date with
apt-get update && apt-get upgrade && apt-get full-upgrade
. - Change the release in
/etc/apt/sources.list
or/etc/apt/sources.list.d/...
to the desired version. - Prepare upgrade the system with
apt-get clean && apt-get update && apt-get upgrade && apt-get full-upgrade && apt-get autoremove
. - Confirm decisions to upgrade and read through any available bulletins.
- Restart the system.
- Check if the upgrade is successful with
cat /etc/os-release
. It should match your desired release.
Tips
- Remove obsolete packages with
apt purge --auto-remove ... && apt clean ...
. Since I’m primarily a Vim and Neovim user I usually remove the default GNU nano text editor from my systems.
Sources
- Debian Releases. The Debian Project. Accessed 2024-02-21. https://www.debian.org/releases/.
- DebianUpgrade. The Debian Wiki. Accessed 2024-02-21. https://wiki.debian.org/DebianUpgrade.