Query Mode

RPM's query mode is used to display information about packages:

Format: rpm --query <options>

or

Format: rpm -q <options>

Package Specification Options To Query Mode

No more than one of the following options may be present in every query command. They are used to select the source of the information to be displayed.

Information Selection Options To Query Mode

One or more of the following options may be added to any query command. They are used to select what information RPM will display. If no information selection option is present on the command line, RPM will simply display the applicable package label(s):