How to Update CentOS, AlmaLinux, Rocky Linux, Ubuntu and Debian Systems

Important: When running any updates, do not interrupt the process as it can cause your VPS to break.

On CentOS:

Perform the system update and then apply system modifications by restarting the system:

yum update

To reboot the system,


On AlmaLinux or Rocky Linux:

The distribution is similar to CentOS and the yum package manager will work, but you can use the following command to update the system:

dnf update

Reboot the system using the below command,


On Ubuntu or Debian:

Update the list of packages which can be updated:

apt-get update

Then, install updates and apply them by restarting the system:

apt-get dist-upgrade

To reboot the system,