The yum-cron package provides a convenient way to check for, download and apply updates automatically.
Install the yum-cron package:
# yum install -y yum-cron
Start the yum-cron service:
# systemctl start yum-cron
By default, the configuration of the yum-cron service is done through two files following exactly the same syntax:
Still by default, no action in defined in the /etc/yum/yum-cron-hourly.conf file. Conversely, in the /etc/yum/yum-cron.conf file associated with daily actions, instructions are given to send a message on stdio (which means written into the /var/log/cron file) when any update is available (see update categories below), to download it without applying it.
In any of the two configuration files, configuration is defined through the following directives:
Note: As the official CentOS repositories don’t provide any security metadata, update_cmd = default is the only option that works (see here for details). To get these security metadata, you will have to get them through this website. It is also possible to get CentOS security updatesthrough the procedure provided by Casey Labs.
Source: Linuxaria’s website.
Rackspace wrote a similar tool called Auter available through EPEL:
You can also read a Centmin Mod article about Setting up automatic updates.
Article Number: 412
Posted: Wed, Oct 17, 2018 10:07 PM
Last Updated: Wed, Oct 17, 2018 10:07 PM
Online URL: http://kb.ictbanking.net/article.php?id=412