I used -C to upgrade while disconnected (yum had already downloaded all necessary packages during another run), and it died because it it couldn't resolve the mirror list hostname. With -C it should not be resolving names. It doesn't need the mirror list as I told it to run from cache! -C Tells yum to run entirely from cache - does not download or update any headers unless it has to to perform the requested action. # yum -C upgrade Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-7&arch=i386 error was [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
true enough - however the mirrorlist is outside of the 'cache only' scope b/c it has to set the repo up at all. It is something I intend to work on and make it behave a little more sensibly.
Please do. A related (?) problem: When my network was down, I tried to use yum, and found out that disabling repos did not prevent an attempt to access the list. -------------------------------------------------- [root@charlesc F-7-i386-DVD.iso]# yum --disablerepo=fedora provides dhcp Loading "installonlyn" plugin Loading "fedorakmod" plugin Loading "downloadonly" plugin Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-7&arch=i386 error was [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')> Cannot find a valid baseurl for repo: fedora -------------------------------------------------- Of course, as soon as I got the network back, it appeared to work correctly: -------------------------------------------------- [root@charlesc ~]# yum --disablerepo=fedora provides dhcp Loading "installonlyn" plugin Loading "fedorakmod" plugin Loading "downloadonly" plugin Loading "fastestmirror" plugin Loading mirror speeds from cached hostfile Loading mirror speeds from cached hostfile livna 100% |=========================| 2.1 kB 00:00 adobe-linux 100% |=========================| 951 B 00:00 updates 100% |=========================| 1.9 kB 00:00 core 100% |=========================| 2.3 kB 00:00 dhcp.i386 12:3.0.5-36.fc7 updates Matched from: dhcp dhcp.i386 12:3.0.5-35.fc7 installed Matched from: Provides-match: dhcp --------------------------------------------------
This is fixed in yum 3.2.5
I confirm that both problems are fixed. Thank you all.