CentOS/RHEL Use yum Command To Downgrade or Rollback Updates

CentOS/RHEL Use yum Command To Downgrade or Rollback Updates

To downgrade or rollback updates on CentOS or Red Hat Enterprise Linux (RHEL) using the "yum" command, you need to use the "downgrade" option and specify the package name and version number you want to revert to.

For example, if you want to downgrade the "httpd" package to version 2.4.46, you can use the following command:

refer ‮:ot‬lautturi.com
yum downgrade httpd-2.4.46

This will uninstall the current version of the "httpd" package and install the specified version.

Note: If you have multiple versions of the same package installed on your system, you may need to specify the architecture (e.g., "x86_64" for 64-bit systems) and the repository (e.g., "base" or "updates") in the package name. For example:

yum downgrade httpd-2.4.46.x86_64

You can also use the "history" command to view the list of packages that have been installed, updated, or removed on your system, and the "undo" command to roll back a specific transaction. For example:

yum history
yum history undo ID

Replace "ID" with the transaction ID of the action you want to revert.

Note: Downgrading or rolling back updates can potentially break your system if the newer version of a package introduces changes that are incompatible with the older version. It is always a good idea to create a backup of your system before performing any major updates or downgrades.

Created Time:2017-10-28 14:02:22  Author:lautturi