[Yum-devel] repoquery question

James Antill james at fedoraproject.org
Thu Jan 12 16:51:38 UTC 2012


On Thu, 2012-01-12 at 16:31 +0000, Dan White wrote:
> Tried it.
> Does not work.
> 
> RHEL5 system
> 
> % yum list yum
> yum.noarch   3.2.22-37.el5  installed

 As Seth said, this only works on RHEL-6.

> # ./find-repos-of-install.py
> Loaded plugins: product-id, rhnplugin, versionlock
> Traceback (most recent call last):
>   File "./find-repos-of-install.py", line 51, in ?
>     if not my.setCacheDir(opts.tempcache):
> AttributeError: 'YumBase' object has no attribute 'setCacheDir'
> 
> Is something missing ?

 RHEL-5 doesn't have that call ... there are older versions of
find-repos-of-install that work in RHEL-5, or as a quick hack you can
just rm those two lines.



More information about the Yum-devel mailing list