how to turn off yum updates
Hi,
I'm facing some difficulutlies with yum install. When ever I try to install something with yum install it will start updating the repos and taking much time. How should i turn off this updates. it is very much time consuming and waste.. |
well those aren't yum updates, but the metadata. Try increasing the metadata_expire value for the repos which is, in seconds, the maximum age of the repo contents.
|
You could also run yum with the "--cacheonly" ("-C") option to make it try to perform the operation using only the cached data.
|
Quote:
|
Quote:
yum install mod_security -C mod_security-2.5.12-4.fc15.i686: Caching enabled but no local cache of /var/cache/yum/i386/16/fedora/packages/mod_security-2.5.12-4.fc15.i686.rpm from fedora |
Looks like info for that package is not in your cache, so you can't use the -C option.
|
Another thought, what about scheduling a daily cron job to run:
Code:
yum makecache Then it should be updated in the background daily without causing any delay for you. Best of both worlds as your cache remains current without delays to you. :) |
All times are GMT -5. The time now is 08:05 PM. |