How to List Contents of an RPM Package
To List Contents of an RPM File
If there is an RPM file available on local system, one can use the rpm
command like so:
rpm -qlp /path/to/package.rpm
To list Contents of an Installed Package
If there is a package already installed, contents listing can be done with rpm
:
rpm -ql package-name
or with dnf
(a Fedora replacement for the original yum
package manager):
dnf repoquery -l package-name
or with the repoquery
command from the yum-utils
package:
repoquery -l package-name