Red Hat Bugzilla – Bug 223607
yum -C doesn't work offline
Last modified: 2014-01-21 17:56:58 EST
Description of problem:
option -C is described as "run entirely from cache, don't update cache"
yum -C info xterm
first connects to some network repositories. This behaviour is quite anoying on
slow connection and it would also be nice if I could query the package cache
when I am offline.
The same holds for the "search" command.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum -C info <anypackage>
2. watch network usage
1. disconnect from network
2. yum -C info <anypackage>
yum initiates some network communicaiton. When offline, error message appears:
Loading "installonlyn" plugin
Setting up repositories
Could not retrieve mirrorlist
http://mirrors.fedoraproject.org/mirrorlist?repo=core-6&arch=i386 error was
[Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Error: Cannot find a valid baseurl for repo: core
yom should work without network communication when invoked with the option -C
See also bug 189828.
I see the same problem with yum-3.1.6-2.fc7
Should be fixed for yum 3.1.7