Product SiteDocumentation Site

5.6.3. Downgrade to a Previous Version

yum downgrade is available to allow to go back to the previous version of the specified software available in the repositories.
# rpm -q vorbis-tools
vorbis-tools-1.2.0-8.fc12.i686
# yum downgrade vorbis-tools
...
Resolving Dependencies
--> Running transaction check
---> Package vorbis-tools.i686 1:1.2.0-6.fc12 set to be updated
---> Package vorbis-tools.i686 1:1.2.0-8.fc12 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================
Package            Arch          Version       Repository                Size
===========================================================================================
Downgrading:
 vorbis-tools          i686       1:1.2.0-6.fc12                   fedora             157 k

Transaction Summary
===========================================================================================
Erase             0 Package(s)
Reinstall         0 Package(s)
Downgrade         1 Package(s)

Total download size: 157 k
Is this ok [y/N]:y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 157 k
vorbis-tools-1.2.0-6.fc12.i686.rpm                                   157 kB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : 1:vorbis-tools-1.2.0-6.fc12.i686                           1/2 
  Cleaning       : 1:vorbis-tools-1.2.0-8.fc12.i686                           2/2 

Erased:
  vorbis-tools.i686 1:1.2.0-8.fc12                                                      
Installed:
  vorbis-tools.i686 1:1.2.0-6.fc12                                                      
Complete!
# rpm -q vorbis-tools
vorbis-tools-1.2.0-6.fc12.i686

Use in conjunction with repo updates-testing

The [updates] repository only keeps the last versión of the package, so to use yum downgrade reliably you should enable [updates-testing] repository and issue a yum update ... and then, if it does not work, you can rollback to the previous version in [updates] or in [fedora] repo with yum downgrade ....
Another alternative is to keep a local repository with these versions with yum-plugin-local extension.