CentOS/RHEL Use yum Command To Downgrade or Rollback Updates
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- To downgrade a package, use the yum downgrade command along with the package name:
yum downgrade- To remove the lock and allow the package to be updated again in the future, use the following command:
yum versionlock delete 