I am considering using LibreSSL instead of OpenSSL for CentOS 7. Since this machine will be very limited in what services it runs, I wondered whether OpenSSL could be removed entirely.
#> rpm -qa | grep ssl openssl-libs-1.0.1e-42.el7.9.x86_64 openssl-1.0.1e-42.el7.9.x86_64
Okay, so try
#> rpm -q --whatrequires openssl-libs-1.0.1e-42.el7.9.x86_64 no package requires openssl-libs-1.0.1e-42.el7.9.x86_64 #> rpm -q --whatrequires openssl-1.0.1e-42.el7.9.x86_64 no package requires openssl-1.0.1e-42.el7.9.x86_64
#> sudo yum remove openssl-libs-1.0.1e-42.el7.9.x86_64
This gives lots of lines such as this:
--> Processing Dependency: perl(IPC::Cmd) >= 0.42 for package: perl-File-Fetch-0.42-2.el7.noarch --> Running transaction check ---> Package perl-File-Fetch.noarch 0:0.42-2.el7 will be erased
etc ad nauseum, then
Error: Trying to remove "systemd", which is protected Error: Trying to remove "yum", which is protected
I wasn't expecting removing OpenSSL to happen without complaint, but why does
rpm -q --whatrequires fail to report these depenencies?
How do I list all packages which require, directly or indirectly, a given package?
By this I mean: if package X were to be removed, and package/file Y will be removed if X is removed, and package Z depends on Y, how do I list all such Z for any given X?