How to downgrade a package in linux

yum downgrade

[root@node1 ~]# yum downgrade openssh*
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Setting up Downgrade Process
Loading mirror speeds from cached hostfile
* base: mirror.nbrc.ac.in
* elrepo: mirrors.nayatel.com
* epel: ftp.riken.jp
* extras: mirror.nbrc.ac.in
* updates: mirrors.viethosting.vn
No Match for available package: openssh-askpass-5.3p1-117.el6.x86_64
No Match for available package: openssh-ldap-5.3p1-117.el6.x86_64
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
–> Running transaction check
—> Package openssh.x86_64 0:5.3p1-117.el6 will be a downgrade
—> Package openssh.x86_64 0:5.3p1-118.1.el6_8 will be erased
—> Package openssh-clients.x86_64 0:5.3p1-117.el6 will be a downgrade
—> Package openssh-clients.x86_64 0:5.3p1-118.1.el6_8 will be erased
—> Package openssh-server.x86_64 0:5.3p1-117.el6 will be a downgrade
—> Package openssh-server.x86_64 0:5.3p1-118.1.el6_8 will be erased
–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================
Downgrading:
openssh x86_64 5.3p1-117.el6 base 276 k
openssh-clients x86_64 5.3p1-117.el6 base 442 k
openssh-server x86_64 5.3p1-117.el6 base 328 k

Transaction Summary
=============================================================================================================================================================
Downgrade 3 Package(s)

Total download size: 1.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): openssh-5.3p1-117.el6.x86_64.rpm | 276 kB 00:00
(2/3): openssh-clients-5.3p1-117.el6.x86_64.rpm | 442 kB 00:01
(3/3): openssh-server-5.3p1-117.el6.x86_64.rpm | 328 kB 00:01
————————————————————————————————————————————————————-
Total 252 kB/s | 1.0 MB 00:04
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : openssh-5.3p1-117.el6.x86_64 1/6
Installing : openssh-server-5.3p1-117.el6.x86_64 2/6
Installing : openssh-clients-5.3p1-117.el6.x86_64 3/6
Cleanup : openssh-clients-5.3p1-118.1.el6_8.x86_64 4/6
Cleanup : openssh-server-5.3p1-118.1.el6_8.x86_64 5/6
Cleanup : openssh-5.3p1-118.1.el6_8.x86_64 6/6
Verifying : openssh-server-5.3p1-117.el6.x86_64 1/6
Verifying : openssh-5.3p1-117.el6.x86_64 2/6
Verifying : openssh-clients-5.3p1-117.el6.x86_64 3/6
Verifying : openssh-5.3p1-118.1.el6_8.x86_64 4/6
Verifying : openssh-server-5.3p1-118.1.el6_8.x86_64 5/6
Verifying : openssh-clients-5.3p1-118.1.el6_8.x86_64 6/6

Removed:
openssh.x86_64 0:5.3p1-118.1.el6_8 openssh-clients.x86_64 0:5.3p1-118.1.el6_8 openssh-server.x86_64 0:5.3p1-118.1.el6_8

Installed:
openssh.x86_64 0:5.3p1-117.el6 openssh-clients.x86_64 0:5.3p1-117.el6 openssh-server.x86_64 0:5.3p1-117.el6

Complete!
[root@node1 ~]#

Advertisements
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s