commands
rpm — query RPM records
Queries local RPM database with -q; -ql lists files, -qf PATH finds owner. A query does not validate file contents. Installation needs appropriate dependencies and trust policy. Use the specified distribution and fresh private workspace; no sudo.
Formal Syntax & Structure
linux syntaxlinux
rpm -q PACKAGEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| -q | option | query |
| -l | option | list files |
| -f | option | query owning file |
| PACKAGE | operand | package name |
Return Value
exit status and output
Queries local RPM database with -q; -ql lists files, -qf PATH finds owner. A query does not validate file contents. Installation needs appropriate dependencies and trust policy.
Working Example
Example Snippetlinux
rpm -q bash