Pages

Friday, June 2, 2017

How to Use ‘Yum History’ to Find Out Installed or Removed Packages Info

YUM is an interactive, rpm based, high level package manager for RHEL/CentOS systems, it enables users to install new packages, remove/erase old/unwanted packages. It can automatically run system updates and does dependency analysis, and also perform queries on the installed packages and/or available packages plus so much more.
In this article, we will explain how to view history of YUM transactions in order to find out information about installed packages and those that where removed/erased from a system.

Below are some examples of how to use the YUM history command.

View Complete YUM History

To view a full history of YUM transactions, we can run the command below which will show us the: transaction id, login user who executed the particular action, date and time when the operation happened, the actual action and additional information about any thing wrong with the operation:
# yum history 
View Yum History
View Yum History

Use Yum to Find Package Info

The history sub-commands: info/list/summary can take a transaction ID or package name as an argument. Additionally, the list sub-command can take a special argument, all meaning – all transactions.
The previous history command is equivalent to running:
# yum history list all
And, you can view details of transactions concerning a given package such as httpd web server with the info command as follows:
# yum history info httpd
Yum - Find Package Info
Yum – Find Package Info
To get a summary of the transactions concerning httpd package, we can issue the following command:
# yum history summary httpd
Yum - Find Summary of Package
Yum – Find Summary of Package
It is also possible to use a transaction ID, the command below will display details of the transaction ID 15.


      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
                                                    ► Read more: http://adf.ly/1n5ZCh
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

No comments:

Post a Comment