How to install server updates

Last modified: Tuesday November 28th, 2023

This article describes how to install updates on an unmanaged server.

Maintaining an up-to-date server with the latest patches and fixes is one of the most important things you can do to make your server more secure.

The procedures for different types of operating systems are described below.

To follow the procedures you must have root access to the server.

CentOS and Fedora

To download and install the latest updates immediately, type the following command as the root user:

yum update

The previous command runs in interactive mode, which means you are asked at certain points during the update process whether or not you want to continue. To install updates without any user intervention, type the following command instead:

yum -y update
You can add this command to a cron job to automatically update your server at specific intervals.

Debian and Ubuntu

To search the repositories for updates and then install them immediately, type the following command as the root user:

apt-get update && apt-get upgrade

The previous command runs in interactive mode, which means you are asked at certain points during the update process whether or not you want to continue. To install updates without any user intervention, type the following command instead:

apt-get -y update && apt-get -y upgrade
You can add this command to a cron job to automatically update your server at specific intervals.

Other Linux distributions

For other Linux distributions, consult its documentation for the steps to install updates.

Looking for Virtual Private Servers? Experience better performance and privacy with Beehosting fully virtualized KVM virtual servers.

Was this article helpful?
Views: 448

10 Years Beehosting!
Celebrate with 70% OFF + FREE Site Transfer.

Facebook Instagram linkedin

Beehosting.pro website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Menu