[Yum-devel] [PATCH 1/2] yum -C should use the system cachedir.

James Antill james at fedoraproject.org
Tue Apr 17 14:25:47 UTC 2012

On Tue, 2012-04-17 at 14:34 +0200, Zdeněk Pavlas wrote:
> <documentation>
> --cacheonly
> If you're using this as a user yum will not use the tempcache for
> the user but will only use the system cache in the system cachedir.
> </documentation>
> setCacheDir() sets up the user tempcache when UID != 0.
> Thus, we should avoid calling it with --cacheonly.

 This was specifically changed to do this (hence the comment) because
people were complaining that they did:

yum makecache
yum -C search foo

...and the "cached" command would fail as it was using the system cache
(the bash completion does this, AIUI).

More information about the Yum-devel mailing list