[Yum] Re: yum: list/update to multiple versions of a package
Derrick Brashear
shadow at gmail.com
Wed Jan 23 20:33:13 UTC 2008
On Jan 23, 2008 3:19 PM, seth vidal <skvidal at fedoraproject.org> wrote:
>
> On Wed, 2008-01-23 at 12:37 -0500, Derrick Brashear wrote:
> > I have 3.2.8-2 from fc8
> > I modified my yum.conf to include this variable.
> >
> > yum --installroot /var/lib/mock/fedora-8-x86_64/root provides
> > kernel-devel
> >
> > returns nothing
> >
> > yum -d2 --installroot /var/lib/mock/fedora-8-x86_64/root provides
> > kernel-devel
> > has some debugging output, but does actually list 10 such packages,
> > sans version info.
> >
> > So I'd expect yum list to have these all (if i list all the packages
> > which provide). Instead, I see only the most recent package from each
> > repo.
> >
> > Is there a way to get it to really show me all versions, including
> > dups, in every repository?
> >
> > (I keep an old kernels archive for this project)
> >
>
> okay 'yum provides' doesn't produce a list of nevra it returns the list
> of pkg in a form you can easily cut and paste to install the most
> current one.
>
> if you're doing a search like that you'll want to do:
>
> yum provides whatever
>
> the name.arch it outputs on the left of the results. Take that to list
> out all the versions you want. Example:
>
> yum provides kernel-devel
> kernel-devel.i686 : Development package for building kernel modules to
> match the kernel
>
> yum list kernel-devel.i686
> Available Packages
> kernel-devel.i586 2.6.23.9-85.fc8 updates
> kernel-devel.i586 2.6.23.1-42.fc8 fedora
> kernel-devel.i686 2.6.23.1-42.fc8 fedora
> kernel-devel.i686 2.6.23.9-85.fc8 updates
>
>
> does this help?
>
The issue is I see there (as here) one version for each rpm+variant+arch per
repo.
One repo (my archive) has, say, 3 versions of kernel-devel x86_64 (for fc8;
the fc7 x86_64 repo has many many more); I want to get a list of containing
all N versions, not just the most recent in the given repo for the given
rpm+arch+variant.
I am getting a list which looks like the one you're getting.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.baseurl.org/pipermail/yum/attachments/20080123/c77e507c/attachment-0001.htm
More information about the Yum
mailing list