[SOLVED] How to revert an upgraded package (yum - CentOS, RHEL etc.)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to revert an upgraded package (yum - CentOS, RHEL etc.)
I suppose I should know the "appropriate" way to do this but I am not sure so I will ask...
Last evening I upgraded several CentOS 7.5 machines (physical and virtual) with the latest bunch of updates in the repos. Included was an upgrade of Firefox to 60.2.1.esr from 60.2.0esr. I have found that if I access a site such as this forum which requires credentials - which I have stored in the FF password manager with a master password - I can login OK. However, once I close FF all of my saved credentials disappear. Using a backup of my profile I have confirmed that the upgrade of FF is responsible and I am pursuing resolution on that front.
I restored a backup copy of one of my virtual machines, excluded firefox in /etc/yum.conf and installed the various other upgrade packages. All seems OK including Firefox which of course was NOT upgraded. I could do the same with my main workstation as I luckily made my end of month OS snapshot just a couple of days ago. Still, it seems there should be a less big hammer way to revert a single package.
I suppose could "find" the rpm package for FF 60.2.0, erase the current version and do a yum localinstall. I am just wondering if there is a better way?
Just run "yum downgrade firefox". You'll probably want to add an "exclude" for that exact version of firefox in the /etc/yum.repos.d file to prevent it from being automatically upgraded again, e.g., "exclude=firefox-60.2.1-1". You can also just use "exclude=firefox" to prevent all future updates (and accept the security consequences).
I thought there was something simple like that. My mind just got in a muddle when all my credentials disappeared. I of course have them backed up 6 ways to Sunday including in a text file which I store in Switzerland. But I did NOT want to have to key them back into FF. I will create a new FF profile in the offending version - on a test machine - and add a few credentials to see what happens. The release notes spoke of a fix for a bug which allowed OLD credentials, stored before a master password was set, to be access in clear text. My profile goes back to Netscape Navigator on Win NT so who knows...
This is a strange issue. FF 60.2.0 (no .anything) on Ubuntu Mate 18.04 runs my profile just fine. No issue with loosing stored credentials. I plan to back up FF until the next update and then test that on a separate machine. I do NOT want to permanently stop upgrading it. Just until this is resolved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.