Although, this behavior is intentional and provides many benefits in order to keep your software updated, it can also however be quite frustrating if you see and have to wait for this update to finish couple times a day. The default expiry time of system's metadata is 90 minutes, and therefor every time 1,5 hour elapses your system will download new repository updates. For a production server this poses not obstacle or problem. However, for desktop systems this feature can be quite annoying.
SUBSCRIBE TO NEWSLETTER Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.
The best way to deal with this, sometimes annoying feature is to prolong the update intervals. This can be done by editing yum's configuration file /etc/yum.conf and set:
The above will set metadata update interval to 7 days. Another available options are "m" ( minute ) or "h" ( hour ). That is 60m means 60 minutes and 3h is equal to 3 hours. Please note that if you need to force metadata update you can do it anytime by command: