Centos – How to schedule yum auto update to run only during the night

centoscronrhelyum

I want to set up up yum to auto update the system using yum-cron. But my internet connection is very limited and I don't want the update process to hog the tiny bit of internet that is available and make the computer usage for everybody on the network miserable.

How can I set up yum to check and download updates automatically, but only between 2am and 6am?

Best Answer

Well, if it were me, I would set up a cron job (for root) that starts at 2am every day. Like so:

0 2 * * * /bin/yum -y update

It's about as KISS as it can get!

Related Question