setting up centos to apply updates automatically

Solution 1:

This is done with yum-cron. It includes a cron job at /etc/cron.daily/yum.cron which only runs if the yum service (CentOS 5 'extras' repo) or yum-cron service (CentOS 6 'base' repo) is activated:

CentOS 5:

# yum install yum-cron
# chkconfig --level 345 yum on
# service yum start

CentOS 6:

# yum install yum-cron
# chkconfig --level 345 yum-cron on
# service yum-cron start