Nov 8, 2018

How to Enable automatic updates in Centos, RHEL and Oracle Linux

yum-cron.service - Run automatic yum updates as a cron job

$ sudo yum -y install yum-cron

For version 7:

$ sudo -i systemctl enable yum-cron.service
$ sudo -i systemctl start  yum-cron.service
$ sudo -i systemctl status  yum-cron.service

For version 6:

$ sudo -i chkconfig yum-cron on

$ sudo -i service yum-cron start
Enabling nightly yum update:                               [  OK  ]
$ sudo -i service yum-cron status
Nightly yum update is enabled.