rpm [options] [package-or-file]Arguments explained
- -qa lists installed packages.
- -qi shows package info.
- -ql lists files from a package.
- -qf finds which package owns a file.
- -V verifies installed files.
Common examples
rpm -qf /usr/bin/bashShows the package that installed /usr/bin/bash.
rpm -ql bashDisplays files owned by the installed bash package.
| Field | Details |
|---|---|
| Command | rpm |
| Category | Package Management |
| Primary use | Queries and manipulates RPM package files and database entries. |
| Syntax | rpm [options] [package-or-file] |