Debian 10 “buster”, upgrade from Debian 9: the easy way

Last saturday the Debian project has released the last version of the “universal operating system”: the clean install, using updated CD images is one of the best and simple solution, however also the upgrade process is very simple and fast.

Ideally, you should follow the (long) upgrade workflow in the official documntation, but if your Debian 9 installation doesn’t have any strange configuration in APT sources (yes, a ‘frankendebian’) you may perform the upgrade with four simple steps:

1. Modify the file /etc/apt/sources.list, anche change the release from “stretch” to “buster”:

From:

deb http://ftp.it.debian.org/debian/ stretch main non-free contrib
deb-src http://ftp.it.debian.org/debian/ stretch main non-free contrib
deb http://security.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://security.debian.org/debian-security stretch/updates main contrib non-free

To:

deb http://ftp.it.debian.org/debian/ buster main non-free contrib
deb-src http://ftp.it.debian.org/debian/ buster main non-free contrib
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main contrib non-free

2. Update the package list:

# apt update

3. Make a full upgrade:

# apt full-upgrade

4. Finally, perform a cleanup of old packages:

# apt autoremove && apt autoclean

That’s all, folks!

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.