CentOS/RHEL Use yum Command To Downgrade or Rollback Updates

To downgrade or rollback updates on CentOS/RHEL, you can use the following steps:

  1. Install the yum-plugin-versionlock package to enable yum to lock packages at a specific version:
yum install yum-plugin-versionlock
  1. Lock the current version of a package by using the following command:
yum versionlock [package_name]
  1. To downgrade a package, use the yum downgrade command along with the package name:
yum downgrade [package_name]
  1. To remove the lock and allow the package to be updated again in the future, use the following command:
yum versionlock delete [package_name]

Leave a Comment