Monday, 25 March 2013

yum downgrade

OK Found a nice yum command: downgrade.

Doesn't sound very useful, but it solved some of my trouble here:

…blablabla…
--> Finished Dependency Resolution
Error: Package: openssh-clients-5.3p1-81.el6_3.x86_64 (updates)
           Requires: openssh = 5.3p1-81.el6_3
           Installed: openssh-5.3p1-84.1.el6.x86_64 (@anaconda-CentOS-201303020151.x86_64/6.4)
               openssh = 5.3p1-84.1.el6
           Available: openssh-5.3p1-81.el6.x86_64 (base)
               openssh = 5.3p1-81.el6
           Available: openssh-5.3p1-81.el6_3.x86_64 (updates)
               openssh = 5.3p1-81.el6_3
 
The text  "Available: <package+version>" means the package can be installed, but yum doesn't want to, since it's not the latest version (-81). Latest version is already installed (-84).

Luckily it's easy to revert to the previous version when a package depends on that.

Just yum downgrade openssh-5.3p1-81.el6.x86_64
 
yum then understands it's actually your meaning to install a not-newest package :D

No comments:

Post a Comment