sunnyD wrote: ↑2022/06/30 05:58:36
Code: Select all
# yum history list libtdb.i686
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
256 | install libtdb-1.3.18-1. | 2022-06-27 09:56 | Install | 1 EE
history list
... the output of
rpm -qf /usr/lib/*.
Code: Select all
...
file /usr/lib/libconfig++.so.9.1.3 is not owned by any package
file /usr/lib/libtdb.so.1.3.16 is not owned by any package
libtdb-1.3.18-1.el7.i686
One downside of "rpm -qf" is that it does not show the name of a file that belongs to a package.
In your output there was one line that lists name of package: "libtdb-1.3.18-1.el7.i686"
All other lines were "file
filename is not owned by any package".
It is also interesting that yum transaction (ID=256) did install only one package and that it did have some extra output (EE).
One can see details of that transaction with:
Since we are pretty sure that we do not need the libtdb.i686, we should remove it.
Either with
yum remove libtdb.i686 or
yum history undo 256
The latter removes also packages that were installed as dependencies in the transaction.
If I would install libtdb.i686 on CentOS 7 that has no 32-bit packages, then yum would install glibc.i686 and nss-softokn-freebl.i686 as dependencies. Three packages.
Do you get a long list with
rpm -qa | grep i686 ?
One can parse the names from the output of rpm and do something:
Code: Select all
rpm -qf /usr/lib/* | grep "is not owned by any package" | while read A B C ; do echo ${B} ; done
In that I did just "echo" the name.
Alas, on system that has no 32-bit packages there are files (and directories) I have at least one directory that "is not owned by any package", yet it contains files that are from a package. So, simple doing something
for every hit is not proper. One can get complex though:
Code: Select all
rpm -qf /usr/lib/* | grep "is not owned by any package" | while read A B C ; do echo ${B} ; [[ -d ${B} ]] || ls -l ${B} /usr/lib64/${B#/usr/lib/}; done