How to Update Debian Server

It is recommended that the server be updated as often as possible in order to ensure security and stability. This guide will describe how you can upgrade your Debian server.

Back Up Making

!! Always make a backup before upgrading your system

Update The Package List

This can be done using the following command:

$ sudo apt update

List updatable packages

$ sudo apt list --upgradable

Package Updates

$ sudo apt upgrade

Server reboot

$ sudo reboot

One-Line Upgrade

If you want to accept all the defaults and upgrade without intervention, use this command:

$ sudo apt update && sudo apt upgrade -y

Optional – Autoremove

$ sudo apt autoremove

Was this article helpful?

Related Articles