It is important to update your server at certain intervals. Any program can have security vulnerabilities, so that computer code can be executed by strangers on your server.

Therefore, in this article we will show you how to update the server and the installed packages.

First, log in to your server via SSH.

Debian

Step 1: Update package lists

apt-get update

Step 2: Update packages

apt-get -y upgrade

If you are asked if you want to overwrite a configuration file, select „Install the package maintainers version“ if you have not deliberately changed anything in it.

If you are prompted to select a hard disk for the boot process, select (spacebar) /dev/sda1.

Should you receive an APT error: This must be accepted explicitly before updates for this repository can be applied – we have already linked the solution.

Step 3: Update distribution

apt-get -y dist-upgrade

CentOS

yum update

If you get stuck, the support can install the updates for you.