Is there a way to setup yum to update on a schedule like Windows update? I am still learning linux so sorry if this is a dumb question.
Thread: Yum update on schedule
01-09-2012 07:16 AMViva Las Vegas Baby. YEA!
01-09-2012 04:30 PM
Yes, you can, from the command prompt (as root) type:
1. crontab -e
2. Enter the following:
0 * * * * yum update -y
3. quit and save your editior (I'm using vi)
hit escape key then "wq" with quotes
That will run yum update and download/install any packages availble for updating. This will not reboot the machine like a Windows update can. If you really want the box rebooted everynight you could enter another crotab for:
0 * * * * shutdown -r