Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Whenever I want to install a new package with yum, It first checks for updates. Is there a way to stop it from checking for updates each time a package is going to be installed?

share|improve this question
up vote 1 down vote accepted

Please define "checking for updates" ... do you mean that it checks if the repo. metadata is valid? You can alter that with the metadata_expire variable (see man yum.conf), but in general I would not recommend running against old data.

If you mean the obsoletes checks, you can turn that off ... but again, that's not recommended.

share|improve this answer
I changed it to 30d but it still checks for metadata before an installation. Is it needed to reload the config file? If yes, how? – hpn Nov 1 '11 at 16:36
yum has some checks so that it'll ignore the timeout and always check if yum.conf changes ... but apart from that "yum install" should only reload the metadata every 30 days (with your configuration). – James Antill Nov 18 '11 at 18:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.