Keeping your Debian server updated ensures you have the latest security patches, bug fixes, and performance improvements. This guide explains how to update and upgrade Debian packages on versions 11 (Bullseye), 12 (Bookworm), and later.
sudo apt update
This command refreshes the list of available packages and their versions.
sudo apt upgrade -y
This installs the latest versions of all packages currently installed on your system.
sudo apt full-upgrade -y
This command upgrades packages and may remove or install new dependencies as needed.
sudo apt autoremove -y
This cleans up packages that are no longer required.
lsb_release -a
uname -r
These commands show your Debian version and kernel version.
Note: HostPalace provides managed Debian hosting where updates and security patches are applied automatically.