[Yum-devel] repoquery question
Dan White
ygor at comcast.net
Thu Jan 12 16:31:58 UTC 2012
Tried it.
Does not work.
RHEL5 system
% yum list yum
yum.noarch 3.2.22-37.el5 installed
# ./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 ?
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
----- seth vidal <skvidal at fedoraproject.org> wrote:
> On Thu, 12 Jan 2012 15:29:54 +0000 (UTC)
> Dan White <ygor at comcast.net> wrote:
>
> > Is there a way to list installed RPM's and also indicate the repo
> > they came from ?
> >
> > I am admining some Red Hat boxes and had some doomsayers start
> > grouching about adding some EPEL packages to the mix, so I have to
> > identify what came from where.
> >
>
>
> In rhel6 just run:
>
> yum list installed
>
> the column on the far right will identify the repo they came from (if
> you installed the pkgs using yum)
>
> In rhel5 it's not as easy - but there's a script in the yum-utils git
> repo called:
> find-repos-of-install.py
>
> which should produce the lists you want.
>
> give it a try.
> -sv
More information about the Yum-devel
mailing list