CentOS / RHEL See Detailed History Of yum history Commands

CentOS / RHEL See Detailed History Of yum history Commands

To view a detailed history of "yum" commands on a CentOS or RHEL system, you can use the following command:

yum history

This will display a summary of the "yum" transactions that have been performed on the system, including the transaction ID, date, command, and package name(s).

To view more detailed information about a specific transaction, you can use the "yum history info" command followed by the transaction ID. For example, to view detailed information about transaction ID 1, you can use the following command:

yum history info 1

This will display a detailed report of the "yum" transaction, including the user who performed the transaction, the command that was run, the packages that were installed or removed, and any dependencies that were resolved.

You can also use the "yum history undo" command followed by the transaction ID to undo a specific transaction. For example, to undo transaction ID 1, you can use the following command:

yum history undo 1

This will revert the changes made by the transaction, including installing or removing any packages and resolving any dependencies.

Keep in mind that the "yum history" commands are only available if the "yum-plugin-history" package is installed on the system. If this package is not installed, you will need to install it using the "yum install" command before you can use these commands.

Created Time:2017-10-27 14:56:36  Author:lautturi