To set YUM to update automatically in RedHat linux distributions, execute the set of commands as follows:
# yum update -y
# yum install yum-cron
# chkconfig yum-cron on
These commands will download any current updates for your OS, install an application named “yum-cron” and set it to load when the machine is booted. Now your system will automatically update daily if updates are available.