This is an old revision of the document!
RHEL 10 rpm command
Examine installed RPM packages
$ rpm -qa $ rpm -qa | wc -l $ rpm -qa "*kernel*"
Possible contents of an RPM package
- binary executables
- shared libraries
- man pages/info files/doc files
- configuration files
- systemd files
Mapping packages to files and vice versa
List the files in a package (you've seen this before):
$ rpm -ql shadow-utils | less
Identify the package containing a file:
$ rpm -qf /etc/passwd setup-2.14.5-7.el10.noarch $