How to Automate the Updates in YUM

May 24, 2011 / How-to Guide

The Yellowdog Updater, Modified (YUM) is a free open source command line package management utility program released under the General Public License for RPM compatible Linux operating systems. Some administrators may like to install updates manually for every single package, however it could be a time consuming task. To make it more easier, you can allow the server update itself. CentOS and Red Hat Enterprise Linux allows you to perform such actions. This is one of the reasons why CentOS is more popular among other Linux distributions.

Scheduling automatic updates in yum is very easy. You can safely enable the auto updates in yum. It can be done simply by editing the yum updates configuration file. Please go through the following steps:

# nano /etc/yum/yum-updatesd.conf

Find the below line in the configuration file:

do_update = no

Now, change it to

do_update = yes

Now, save the file and exit. The changes will take effect only after you restart “yum-updatesd”. Enter the following command:

# /etc/init.d/yum-updatesd restart

Once you enter the above command, it will restart and the YUM automatic updates will be successfully enabled on your dedicated server. You should make sure that your server have all the lastest security updates and patches. The best way to get informed about the latest updates and patches is to subscribe the security updates mailing list of your distribution.

Spread the love