Debian Upgrade
A major upgrade from Debian 9.x to 10.x
Upgrade procedure
Checking the version
$ cat /etc/debian_version
9.1Updating
# apt-get update
# apt-get upgrade
# apt-get dist-upgradeRewriting sources.list
# sed -i 's/stretch/buster/g' /etc/apt/sources.listRunning the upgrade
# apt-get update
# apt-get upgradeIf any NFS-related daemons are running, stop them
# systemctl stop rpcbindThe final upgrade
# apt-get dist-upgradeRebooting
# /sbin/shutdown -r nowChecking the version
$ cat /etc/debian_version
10.0Reference articles
Notes
This time I tested an upgrade from an almost bare Debian 9 to 10, but if you have all sorts of applications and customizations on a Debian 9.x box that is in service, it will not necessarily go well. When you carry out the update work, always take a backup and do it at your own risk
Minor version upgrade
Here I describe how to do a minor version upgrade from 10.2 to 10.3
Checking the current version
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
$ cat /etc/debian_version
10.2
$ uname -mrs
Linux 4.19.0-6-amd64 x86_64Upgrading
# apt update
# apt dist-upgrade
# shutdown -r nowAdded the minor version upgrade from 10.8 to 10.9