Who installed which packages when

Just a quick how-to this morning…

# for id in $(yum history list all | grep showard | awk '{print $1}' | head -1); do echo "****************************************************"; yum history info ${id}; done
****************************************************
Loaded plugins: product-id, rhnplugin, search-disabled-repos, security, subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Transaction ID : 80
Begin time     : Tue Apr  3 15:16:32 2018
Begin rpmdb    : 758:d90892142d02902addf6ded363eb2d5e0df4afef
End time       :            15:16:36 2018 (4 seconds)
End rpmdb      : 760:eeaf95b903154edb389d567b58b7fc81936faf1d
User           :  
Return-Code    : Success
Command Line   : install graphviz-2.26.0-4.el6.x86_64
Transaction performed with:
    Installed     rpm-4.8.0-55.el6.x86_64                   @exp-prod-rhel-x86_64-server-6
    Installed     subscription-manager-1.18.10-1.el6.x86_64 @exp-prod-rhel-x86_64-server-6
    Installed     yum-3.2.29-81.el6.noarch                  @exp-prod-rhel-x86_64-server-6
    Installed     yum-metadata-parser-1.1.2-16.el6.x86_64   @anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.3
Packages Altered:
    Install     graphviz-2.26.0-4.el6.x86_64 @exp-prod-rhel-x86_64-server-optional-6
    Dep-Install libXaw-1.0.11-2.el6.x86_64   @exp-prod-rhel-x86_64-server-6
history info
#

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.