Saturday, May 23, 2015

rpm command to downgrade package

If you have installed latest version instead of current version you can use the following command.

rpm -Uvh --oldpackage [filename]

Example:
I am running Fedora 21, but I installed rpmfusion repository of Fedora 22. So to downgrade it I used following command.



rpm -Uvh --oldpackage rpmfusion-free-release-21.noarch.rpm


Preparing...                          ################################# [100%]
Updating / installing...
   1:rpmfusion-free-release-21-1      ################################# [ 50%]
Cleaning up / removing...
   2:rpmfusion-free-release-22-0.1    ################################# [100%]

The above lines are the transactions that took place while installing rpmfusion of Fedora 21.

No comments:

Post a Comment