Re: Re: yum: list/update to multiple versions of a package

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1201119578.6218.106.camel@cutter>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.