RPM Package Manager

On RHEL, CentOS, Fedora, etc use RPM for package management. To find the package that provides a binary file, run

rpm -qf /usr/sbin/sendmail

To see the change log for an rpm package, run

rpm -q --changelog PKG_NAME

Example

rpm -q --changelog bind | grep CVE

To find which RPM package owns a file

root@server2 [~]# rpm -qf /lib64/libkeyutils-1.2.so
keyutils-libs-1.2-1.el5
root@server2 [~]#

To see scripts used by a package

rpm -q --scripts httpd

See yum

Need help with Linux Server or WordPress? We can help!

Leave a Reply

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