Unable to downgrade from 7.2 to 7.1

Latest response

Hi

I'm running into trouble with an application after upgrading to 7.2

Now i would like to downgrade this server, but can't ...

All dependencies are OK, but the command "yum history undo xx" stops with :
Error: Trying to remove "systemd", which is protected

Has anyone a tip / hint / workaround to proceed with the undo ?

Kind regards,
Norbert

Responses

Hi Norbert,

If (and only if) "yum history undo ..." isn't actually going to uninstall systemd completely but it's really only downgrading it, like here:

---> Package systemd.x86_64 0:208-20.el7 will be a downgrade
---> Package systemd.x86_64 0:219-19.el7 will be erased
---> Package systemd-libs.x86_64 0:208-20.el7 will be a downgrade
---> Package systemd-libs.x86_64 0:219-19.el7 will be erased
---> Package systemd-sysv.x86_64 0:208-20.el7 will be a downgrade
---> Package systemd-sysv.x86_64 0:219-19.el7 will be erased

Then it should be safe to delete /etc/yum/protected.d/systemd.conf (or rename it to e.g. .bak) and try again. Be sure to review the transaction carefully before you confirm it!

Note: such downgrades aren't officially supported. Instead, broken systems should be recovered from backups.

Hi Radek,

That's it. I checked the transaction messages for the "downgrade" entries. The systemd messages are exactly as listed. So i fired the downgrade ... all worked well, no error messages and after the reboot even the application starts working :-)

Thanks a lot for this fast and helpful solution

Kind regards, Norbert

Great! Glad to hear you were able to make the app work again.

Regards, Radek

Tried it from RHEL 7.3 to 7.2 and worked like a charm, thank you very much! :)

Worked in a downgrade from 7.4 to 7.3. Thanks!!!

Above worked for me also on a 7.5->7.4 rollback. This is now captured in this kbase: https://access.redhat.com/solutions/3424281 .

Saved me from having to restore from backup...thanks!

Error: Trying to remove "systemd", which is protected

1) # cp -p /etc/yum/protected.d/systemd.conf /etc/yum/protected.d/systemd.conf.bak 2) # rm /etc/yum/protected.d/systemd.conf Worked in downgrade from 7.6 to 7.5 Thanks!!!!

Renaming as below helped me to downgrade from 7.8 to 7.7. Cheers !!!

mv /etc/yum/protected.d/systemd.conf /etc/yum/protected.d/systemd.conf.bak

RHEL downgrade from 7.8 to 7.7. Cheers !!!

mv /etc/yum/protected.d/systemd.conf /etc/yum/protected.d/systemd.conf.bak