Reply To Thread
Results 1 to 2 of 2
  1. Collapse Details
    Yum update on schedule 
    #1
    Junior Member T-REX's Avatar
    Join Date
    Nov 2011
    Location
    Las Vegas, NV
    Posts
    4
    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.
    Viva Las Vegas Baby. YEA!
    Reply With Quote
     

  2. Collapse Details
     
    #2
    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
    Reply With Quote
     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts