This article explains how to deploy updates on a server that is not managed. One of the most important things you can do to make your server safer is to keep it up to date with the latest updates and fixes.

For your server’s operating system, follow the instructions listed below.

Note:- Only the products listed in the Article Details sidebar are covered by the information in this article. To follow the procedures outlined below, you must have root access to the server.

Table of Contents
  • CentOS and Fedora
  • Debian and Ubuntu
  • Other Linux distributions

CentOS and Fedora are two popular Linux distributions.

As the root user, run the following command to obtain and install the newest updates right away:

yum update

The previous command runs in interactive mode, which means you’ll be prompted whether or not you want to continue the update process at certain points. Instead, type the following command to install updates without requiring user interaction:

yum -y update

Note:- This command can be added to a cron job to update your server at regular intervals.

Ubuntu and Debian are both Linux distributions.

As the root user, execute the following command to search the repositories for updates and then install them right away:

apt-get update && apt-get upgrade

The previous command runs in interactive mode, which means you’ll be prompted whether or not you want to continue the update process at certain points. Instead, type the following command to install updates without requiring user interaction:

apt-get -y update && apt-get -y upgrade
Note:- This command can be added to a cron job to update your server at regular intervals.

Linux distributions

For instructions on how to install updates on other Linux distributions, visit the manual.

Was this article useful to you? Then you’ll appreciate our assistance. Get a pre-secured, pre-optimized website with the Hosting difference today. Check out our web hosting plans today.

Read Also: How to install & setup cPanel on a Linux Server