Skip to content

How to find which package contains specific library file?

To find which package contains specific library file just follow the below commands.

$ pwd
/usr/lib

$ yum whatprovides */libcrypto.so.6
Loaded plugins: aliases, changelog, downloadonly, 12345-sis, security, tmprepo, verify, versionlock
openssl098e-0.9.8e-17.el6.x86_64 : A compatibility version of a general cryptography and TLS library
Repo : installed
Matched from:
Filename : /usr/lib64/libcrypto.so.6

OR

$ yum whatprovides */libssl.so.6
Loaded plugins: aliases, changelog, downloadonly, 12345-sis, security, tmprepo, verify, versionlock
openssl098e-0.9.8e-17.el6.x86_64 : A compatibility version of a general cryptography and TLS library
Repo : installed
Matched from:
Filename : /usr/lib64/libssl.so.6