rpm -q (or --query)
options
|
Package Selection Options
| Page
|
pkg1 …
pkgN
| Query installed package(s)
| the Section called The Package Label
|
-p <file>(or
"-")
| Query package file
<file> (URLs
OK)
| the Section called -p <file>
— Query a Specific RPM Package File
|
-f <file>
| Query package owning
<file>
| the Section called -f <file>
— Query the Package Owning
<file>
|
-a
| Query all installed packages
| the Section called -a — Query All Installed Packages
|
--whatprovides <x>
| Query packages providing capability
<x>
| the Section called --whatprovides <x>:
Query the Packages That Provide Capability
<x>
|
-g <group>
| Query packages belonging to group
<group>
| the Section called -g <group>: Query
Packages Belonging To Group
<group>
|
--whatrequires <x>
| Query packages requiring capability
<x>
| the Section called --whatrequires <x>:
Query the Packages That Require Capability
<x>
|
Information Selection Options
| Page
|
<null>
| Display full package label
| the Section called The Package Label
|
-i
| Display summary package information
| the Section called -i — Display Package
Information
|
-l
| Display list of files in package
| the Section called -l — Display the Package's File
List
|
-c
| Display list of configuration files
| the Section called -c — Display the Package's List of
Configuration Files
|
-d
| Display list of documentation files
| the Section called -d — Display a List of the Package's
Documentation
|
-s
| Display list of files in package, with state
| the Section called -s — Display the State of Each File in the
Package
|
--scripts
| Display install, uninstall, verify scripts
| the Section called --scripts — Show Scripts Associated With a
Package
|
--queryformat (or --qf)
| Display queried data in custom format
| the Section called --queryformat — Construct a Custom Query
Response
|
--dump
| Display all verifiable information for each file
| the Section called --dump: Display All Verifiable Information for
Each File
|
--provides
| Display capabilities package provides
| the Section called --provides: Display Capabilities Provided by the
Package
|
--requires (or -R)
| Display capabilities package requires
| the Section called --requires: Display Capabilities Required by the
Package
|
General Options
| Page
|
-v
| Display additional information
| the Section called -v — Display Additional Information
|
-vv
| Display debugging information
| the Section called Getting a lot more information with
-vv
|
--root <path>
| Set alternate root to
<path>
| the Section called --root <path>: Use
<path> As An
Alternate Root
|
--rcfile <rcfile>
| Set alternate rpmrc file to
<rcfile>
| the Section called --rcfile <rcfile>: Use
<rcfile> As An
Alternate rpmrc File
|
--dbpath <path>
| Use <path> to
find the RPM database
| the Section called --dbpath <path>: Use
<path> To Find RPM
Database
|