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 PACKAGE

Parameters & Attributes

NameTypeDescription
-qoptionquery
-loptionlist files
-foptionquery owning file
PACKAGEoperandpackage 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
Linux Reference