rpm -qc: Lists all configuration files in a package.
✦ rpm -qd: Lists all documentation files in a package. These are usually
the online manual pages (also known as man pages).
✦ rpm -qf: Displays the name of the package (if any) to which a specified
file belongs.
✦ rpm -qi: Displays detailed information about a package ( version
number, size, installation date, and a brief description).
✦ rpm -ql: Lists all the files in a package. For some packages, you see a
very long list.
✦ rpm -qs: Lists the state of all files in a package. (The state of a file can
✦ rpm -qd: Lists all documentation files in a package. These are usually
the online manual pages (also known as man pages).
✦ rpm -qf: Displays the name of the package (if any) to which a specified
file belongs.
✦ rpm -qi: Displays detailed information about a package ( version
number, size, installation date, and a brief description).
✦ rpm -ql: Lists all the files in a package. For some packages, you see a
very long list.
✦ rpm -qs: Lists the state of all files in a package. (The state of a file can
be one of the following: normal, not installed, or replaced.)
rpm -q --whatprovides /etc/vsftpd.conf RPM then prints the name of the package that provides the file
rpm -q --whatrequires openssl
The output from this command shows all the RPM packages that need the openssl package.