YUM Downgrade Packages on Fedora, CentOS, Red Hat (RHEL) - Comment Page: 1

This is quick tip, howto downgrade packages using YUM (example) on Fedora, CentOS, Red Hat (RHEL). This works simply with yum downgrade command and is very usefull when package(s) downgrade is needed some reason. YUM Downgrade Basic Usage Downgrade is very straightforward when package have not any dependencies, which affect the downgrade. YUM Downgrade Single Package yum downgrade package Example: yum downgrade hunspell-mr.noarch Setting up Downgrade Process Resolving Dependencies --> Running transaction check ---> Package hunspell-mr.noarch 0:20060920-5.fc13 set to be downgraded ---> Package hunspell-mr.noarch 0:20060920-6.fc14 set to be erased -->...

13 comments on “YUM Downgrade Packages on Fedora, CentOS, Red Hat (RHEL) - Comment Page: 1

    1. Hello, i downgraded one of my packages… and can’t upgrade it back to what it was. Any solution to this? yum update/upgrade does not work
      thx for help

      • Hi Grzegorz,

        Could you post more info about error what you get, when you try to update it?

        • Sorry to make fuss… i solved problem. I had new package with verion 5.2 and downgraded it to 5.1. Couldnt upgrade to 5.2 anymore since 5.2 got considered as “too buggy” and was removed from centos repositories. (php-tidy package).
          So it seems its fine now. But maybe a warning for others who accidently downgrade and can’t upgrade.
          Thank you for your interest in the matter

          • No problem at all :) Glad to hear that you got it to work.

    2. Is there a way to downgrade to a specific version of the package?

      • Hi Vadim,

        Yes it should be possible, if this specific package (and dependencies) still found from repo. Do you have some example case which package you want downgrade?

    3. how to downgrade existing RHEL 5.9 to RHEL 5.8

      • Hi venkata,

        Check /var/log/yum.log and find upgraded packages and try to downgrade those. Btw. do you have some reason why you want to downgrade?

    4. Hi JR, I know this is not exactly the subject, but I would like to ask you for help: I installed Fedora 17(via CD) over Fedora 14. I made the mistake of not backing up info. Then I had to use Photorec to recover the photos I had. But my wife had some other info she would like to have again. My question is: is there a way to make like a rollback of the operative system? Would it help to get my old info back? Thanks a lot for your reply

      • Hi sema,

        This depends on, how you installed Fedora 17? Did you used clean install or upgrade?

        If you cleaned all disks, then it might be almost impossible to get your data back. It’s possible that your data is still on your disk, but you might need some data recovery professional help to get your data back.

        • Yes, clean installation :-/ Could you advise a good professional help?

    5. I’m having some issues with php-pecl-mongo-1.5.0-1.el6.remi.5.5.i686 library and decide to downgrade and for that I did this:

      yum downgrade php-pecl-mongo-1.5.0-1.el6.remi.5.5.i686 –enablerepo=remi,remi-php55
      Loaded plugins: fastestmirror, security
      Setting up Downgrade Process
      Loading mirror speeds from cached hostfile
      * base: centos.secrel.com.br
      * epel: mirror.cedia.org.ec
      * extras: centos.secrel.com.br
      * remi: mirror.1000mbps.com
      * remi-php55: mirror.1000mbps.com
      * updates: mirrors.ucr.ac.cr
      Only Upgrade available on package: php-pecl-mongo-1.5.0-1.el6.remi.5.5.i686
      Nothing to do

      But can’t, any advice on this?

    6. I have upgraded some packages using yum update openssl* command.For this up gradation I used REDHAT 6.6 ISO image as local repository.My current installed OS is 6.5.
      Please find the below commands for the total changes happened in server.

      [root@sh-oam1 log]# yum history
      Loaded plugins: product-id, security, subscription-manager
      This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
      ID | Login user | Date and time | Action(s) | Altered
      6 | root | 2015-03-08 09:07 | Install | 1
      5 | root | 2015-03-08 09:04 | I, U | 23
      4 | root | 2015-03-08 09:02 | Update | 1
      3 | root | 2015-03-03 16:03 | Install | 2
      2 | root | 2015-03-03 16:02 | Install | 1 <
      1 | System | 2015-01-27 01:46 | Install | 584 >

      But now I have to downgrade these packages to the earlier default REDHAT 6.5 packages. How can I do this down grade?

      If I create local repo using REDHAT 6.5 ISO image and execute again

      yum update openssl* , would it resolve this issue?????

      what about reverting back using yum downgrade or yum history commands??


Leave a Reply to JR Cancel reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Exit mobile version