If Not True Then False

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...
Categories:

13 Comments

Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.
help

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.

Grzegorz

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

reply Reply
JR

Hi Grzegorz,

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

reply Reply
Grzegorz

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

reply Reply
JR

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

reply Reply
JR

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?

reply Reply
JR

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?

reply Reply
sema

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

reply Reply
JR

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.

reply Reply
sema

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

reply Reply
ReynierPM

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?

reply Reply
sajin

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??

reply Reply