Automatic updates on CentOS

Posted on Tue 19 April 2011 in CentOS

If you want to be sure all security updates are installed automatic you can use yum-cron. Be sure you have configured your yum correctly not to update wrong things from different repositories.

  1. Install yum-cron
yum install yum-cron
  1. add yum-cron to your runlevels
chkconfig --levels 35 yum-cron on
  1. start yum-cron
service yum-cron start

That's it. Check /var/log/yum.log frequently for errors and other information.