Re: yum --allow-downgrade syntax

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1207164693.15651.82.camel@cutter>
On Wed, 2008-04-02 at 14:19 -0500, Troy Dawson wrote:
> seth vidal wrote:
> > On Wed, 2008-04-02 at 11:15 -0500, Troy Dawson wrote:
> >> Hi,
> >> I've googled, I've read the help, I've read the wiki, I've even read the source
> >> code, and I just cannot figure out the syntax to the allow-downgrade plugin.
> >> Actually, through all my googling, I haven't actually read of anyone actually
> >> using it successfully.  Which rather blows my mind.
> >>
> >> Anyway, what is the correct syntax?
> >>
> ...
> > 
> > yum --allow-downgrade install somepkg-somever
> > 
> > that's the only odd part: you're INSTALLING a downgrade.
> > 
> > -sv
> 
> Still no luck.
> I'm sending the -e 10 -d 10 because it is rather short.
> 
> # yum list cups\*
> Loading "kernel-module" plugin
> Loading "allowdowngrade" plugin
> Setting up repositories
> Reading repository metadata in from local files
> Installed Packages
> cups.i386                                1:1.2.4-11.14.el5.3    installed
> cups-libs.i386                           1:1.2.4-11.14.el5.3    installed
> Available Packages
> cups.i386                                1:1.2.4-11.14.el5_1.6  fermi-security
> cups-devel.i386                          1:1.2.4-11.14.el5_1.6  fermi-security
> cups-libs.i386                           1:1.2.4-11.14.el5_1.6  fermi-security
> cups-lpd.i386                            1:1.2.4-11.14.el5_1.6  fermi-security
> 
> ## yum -e 10 -d 10 --allow-downgrade install cups-1.2.4-11.14.el5_1.6 
> cups-libs-1.2.4-11.14.el5_1.6
> Loading "kernel-module" plugin
> Loading "allowdowngrade" plugin
> Running "config" handler for "allowdowngrade" plugin
> Yum Version: 3.0.6
> COMMAND: yum -e 10 -d 10
> Installroot: /
> Ext Commands:
> 
>     cups-1.2.4-11.14.el5_1.6
>     cups-libs-1.2.4-11.14.el5_1.6
> Setting up Install Process
> Setting up repositories
> Reading repository metadata in from local files
> Setting up Package Sacks
> Reading Local RPMDB
> Parsing package install arguments
> Nothing to do
> #
> 
> I have tried it with the epoch on there (1:1.2.4-11.14.el5_1.6) and that is a 
> bit more interesting, because it does some checks only to declare that there is 
> no such package.
> 
> As you can see, this is yum version 3.0.6.  I've also tried it on 3.2.8.
> Am I still getting the syntax wrong?

just for fun - grab a copy of 3.2.13 and test it with there. That's the
last version I verified it on.

-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.