In order to enable automatic download and install of critical security updates, carry out the following:
Log on as root and manually update the server:
yum check-update
yum update
|
Now install cron and edit conf:
yum update -y && yum install yum-cron -y
vi /etc/yum/yum-cron.conf
# Edit the following lines to match these values
update_cmd = security
update_messages = yes
download_updates = yes
apply_updates = yes
emit_via = email
email_from = root @localhost
email_to = root
|
Please change the values for email to something relevant
Now we start the service:
systemctl start yum-cron
systemctl enable yum-cron
|
No comments:
Post a Comment