Red Hat Bugzilla – Bug 166367
yum tries to contact repository even if -C (cache) is specified
Last modified: 2014-01-21 17:52:30 EST
Description of problem:
When not online, and specifying -C in the command line, yum still tries to
contact a repository. When online, -C works well and reads from cache, but still
contacts a repository.
This is applicable when someone is offline and tries to search for some package
in the yum cache, doing for example:
yum -C search gxine
Version-Release number of selected component (if applicable):
I tried with these versions of yum:
* yum-2.3.4-0 (updates/fc4/testing)
* yum-2.4.0-0 (updates/fc4/testing)
Steps to Reproduce:
1. go offline or block your internet connection to the outside
2. yum -C search <package>
yum tries to contact a repository and waits for a very long time (or forever, I
didn't wait it for finish). Network activity shows that yum is trying to contact
some server on port 80.
yum should read only from the cache.
Thanks for the bug report. This particular bug has already been reported
into our bug tracking system, but please feel free to report any further
bugs you find.
*** This bug has been marked as a duplicate of 150843 ***