[Yum] Re: yum: list/update to multiple versions of a package
seth vidal
skvidal at fedoraproject.org
Wed Jan 23 20:19:38 UTC 2008
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?
-sv
More information about the Yum
mailing list