How To Update Your Server (Linux)

How Do I Update My Linux Server?

You can update your server by logging into the server and calling the update function of the package manager that your Linux distro uses. This process can vary from Linux distro to Linux distro, however the following is applicable to the most popular Linux distros that we offer at this time.

 

The following steps require you to be logged into the server as the root user via SSH.

 

Centos/RedHat

To update your Red Hat based distro, use the following command while logged into the server via SSH.

 

 

 

Please note that this will prompt you to confirm the package installations that occur during the update process by asking you to press ‘y’. If you’d like to avoid this you may use the aforementioned command with the -y option. The command would be as follows.

 

 

 

Ubuntu/Debian

To update your Debian or Ubuntu based distro, execute the following command while logged into the server via SSH.

 

 

 

Please note that this will prompt you to confirm the package installations that occur during the update process by asking you to press ‘y’. If you’d like to avoid this you may use the aforementioned command with the -y option. The command would be as follows.

 

 

 

This will update all packages on the server to their most stable and supported releases. Please note that this process can take some time to complete, and it is recommended to let the update process run to completion.

 

Helpful Related Articles


Share:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.