To downgrade or rollback updates on CentOS/RHEL, you can use the following steps:
- Install the yum-plugin-versionlock package to enable yum to lock packages at a specific version:
yum install yum-plugin-versionlock
- Lock the current version of a package by using the following command:
yum versionlock [package_name]
- To downgrade a package, use the yum downgrade command along with the package name:
yum downgrade [package_name]
- To remove the lock and allow the package to be updated again in the future, use the following command:
yum versionlock delete [package_name]