If you are curious about who installed a specific package using yum, this procedure will help you with that.
First of all you have to locate yum configuration file. In my case is file located here /QOpenSys/etc/yum/yum.conf
[main]
cachedir=/QOpenSys/var/cache/yum
keepcache=1
debuglevel=2
logfile=/QOpenSys/var/log/yum.log
exactarch=1
obsoletes=1
history_list_view=users
#history_list_view=cmds
proxy_username=DE-SVC-VMC
proxy_password=ynBkjTDgko8445ds.QXL1rRT
proxy=http://wsa.Xix.cz:8080
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /QOpenSys/etc/yum/repos.d
In this case, we are interested in the history_list_view option. If history_list_view is set to users, then the listing will include a column with the user name.
The yum history list all command will then list all transactions performed using yum.
bash-5.2$ yum history list all
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
178 | <hlpatxd> | 2025-02-05 15:52 | Reinstall | 1
177 | <hlpatxd> | 2025-01-31 10:36 | Update | 1
176 | <hlpatxd> | 2025-01-30 08:37 | Update | 3
175 | <hlpatxd> | 2024-12-30 11:49 | Update | 10
174 | <hlpatox> | 2024-12-19 17:00 | Install | 5
173 | <hlpatxd> | 2024-12-10 15:50 | I, U | 11
172 | <hlpatxd> | 2024-11-25 15:15 | Update | 9
171 | <hlpatxd> | 2024-10-29 10:35 | Update | 8
170 | <hlpatxd> | 2024-10-23 10:26 | Update | 4
...
...
12 | <hlpatxd> | 2021-08-26 08:25 | Update | 1
11 | <hlpatxd> | 2021-08-26 08:25 | Update | 1
10 | <hlpatxd> | 2021-08-26 08:24 | Update | 1
9 | <hlpatxd> | 2021-08-26 08:24 | Update | 1
8 | <hlpatxd> | 2021-08-26 08:24 | Update | 2
7 | <hlpatxd> | 2021-08-26 08:22 | Update | 1
6 | <hlpatxd> | 2021-08-26 08:21 | Install | 1
5 | <hlpatxd> | 2021-08-12 15:19 | I, U | 6
4 | <hlpatxd> | 2021-08-12 15:18 | Update | 1
3 | <hlpatxd> | 2021-08-12 14:56 | Install | 1
2 | <hlpatxd> | 2021-08-07 19:14 | Update | 1
1 | <hlpatxd> | 2021-08-07 18:39 | Install | 3
to show only lines for specific user grep program will help you .
bash-5.2$ yum history list all |grep hlpatox
174 | <hlpatox> | 2024-12-19 17:00 | Install | 5
22 | <hlpatox> | 2022-01-04 01:37 | Install | 3
You can then view the details for specific transaction ID with info option :
bash-5.2$ yum history info 22
Transaction ID : 22
Begin time : Tue Jan 4 01:37:43 2022
Begin rpmdb : 61:ebb8d3f2c7e033010fd7fed7d243777133ebc787
End time : 01:37:46 2022 (3 seconds)
End rpmdb : 64:30509840c9c39fd8ba67b6ca72022cbda469845a
User : <hlpatox>
Return-Code : Success
Command Line : install git
Transaction performed with:
Updated rpm-4.13.1-12.ppc64 ?
Updated yum-3.4.3-19.noarch @?ibm
Packages Altered:
Install git-2.26.2-3.ppc64 @?ibm
Dep-Install less-551-1.ppc64 @ibm/7.3
Dep-Install libpcre2-8-0-10.35-1.ppc64 @ibm/7.3
history info
By setting history_list_view=cmds in the yum configuration file, you will then see the commands in the list.
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
178 | reinstall logrotate | 2025-02-05 15:52 | Reinstall | 1
177 | upgrade libsqlite3-0 | 2025-01-31 10:36 | Update | 1
176 | upgrade coreutils-gnu li | 2025-01-30 08:37 | Update | 3
175 | upgrade libexpat1 libfre | 2024-12-30 11:49 | Update | 10
174 | install bob | 2024-12-19 17:00 | Install | 5
173 | upgrade git python2-rpm | 2024-12-10 15:50 | I, U | 11
172 | upgrade liblua5_3 mc php | 2024-11-25 15:15 | Update | 9
171 | upgrade libgcc_s1 libstd | 2024-10-29 10:35 | Update | 8
170 | upgrade liblzma5 mc upda | 2024-10-23 10:26 | Update | 4
169 | upgrade php-cli php-comm | 2024-09-30 10:07 | Update | 6
168 | upgrade php-cli php-comm | 2024-09-18 14:36 | Update | 6
167 | upgrade curl libarchive1 | 2024-08-21 13:59 | I, U | 11
166 | upgrade php-cli php-comm | 2024-08-21 13:57 | Update | 7
165 | install unzip | 2024-08-21 13:38 | Install | 1