RPM Package Manager
- rpmquery
- rpm verify packages
- How to remove a package without removing dependencies in RHEL
- List all files in an rpm package
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