I have a machine which is not connected to the internet. I still want to execute some yum
commands from time to time.
YUM does like to update the mirrorlist every so often, resulting in errors like:
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os error was' from yum-dump.py! Please check your yum configuration.
Is there a parameter in yum.conf
or elsewhere to make yum stop updating the mirrorlist?
Best Answer
I believe this behavior is governed by this parameter:
So I'd try either a 0d, -1, or set the value to something that's really long, 1000d (1000 days).
Example
You can then update the cache when you do have access to the internet:
References