Prehistory
I had CentOS 8.4 4.18.0-305.3.1 installed.
Everything was good until I run yum -y update
without understanding what it means.
After that CentOS get upgraded to 8.5 4.18.0-348.2.1 version, which is not suitable for my purposes.
I have tried naive attempts to get OS version back to 8.4 4.18.0-305.3.1:
yum history undo.
switching to kernel version 4.18.0-305.3.1.
yum downgrade redhat-release
But nothing helped.
Is it possible to mount to the existing machine ISO with OS version I need, boot from that ISO and install CentOS 8.4 4.18.0-305.3.1 over existing OS 8.5?
Best Answer
Staying on CentOS 8.4 is not responsible patching policy.
Decide if you wish to use CentOS Stream or some other RHEL build.
Switching from CentOS 8 to 8 Stream is a matter of swapping the release repos and
dnf distro-sync
Or, switch to Alma, Rocky, RHEL, or Oracle EL with the tools they recommend.
Get the latest version into an usable state, whatever that means. You might be testing applications, repackaging or rebuilding software, or filing issues so other people can help with getting it working on updated RHEL.
I deferred avoided talking about recovering your CentOS 8.4 because it is an option that will take some work. Anaconda installer will not downgrade the existing install for you. Attempt
dnf history rollback
to revert to prior to the big update. Unfortunately, that may be a difficult transaction to complete. You may wish to reinstall new copy of the OS on the desired version and restore data. And review all the updates you are deferring. Come up with a plan to mitigate what they fix in some other way, such as building your own packages, or doing other security controls.