In this article, we will provide you the instructions for updating an unmanaged server, emphasising the crucial role of keeping your server secure by regularly applying the latest patches and fixes.
Please adhere to the suitable procedures according to your server’s operating system.
CentOS and Fedora-
- To download and install the latest updates, enter the following command as the root user:
- Instead of running the previous command in interactive mode, allowing user input at certain points during the update process, you can install updates without any user intervention by using the following command:
yum -y update
Note 1: You have the option to include this command in a cron job, enabling your server to undergo automatic updates at designated intervals.
Debian and Ubuntu-
- For searching the repositories for updates and promptly installing them, enter the following command as the root user:
apt-get update && apt-get upgrade
- The preceding command operates in interactive mode, requiring your input at specific junctures throughout the update process to determine whether you wish to proceed. For a user intervention-free update installation, enter the subsequent command:
apt-get -y update && apt-get -y upgrade
Note 2: Automate your server’s updates at specific intervals by incorporating this command into a cron job.
Using this approach, you can easily install server updates on an unmanaged server.