Skip to content
TrySitePrice

CentOS/RHEL Use yum Command To Downgrade or Rollback Updates

Best/Tutorial

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
  1. To downgrade a package, use the yum downgrade command along with the package name:
yum downgrade
  1. To remove the lock and allow the package to be updated again in the future, use the following command:
yum versionlock delete