rpm -q ( or
--query) options |
Package Selection Options |
Page |
pkg1 ... pkgN |
Query installed package(s) |
![[*]](crossref.png) |
-p <file>(or ``-'') |
Query package file
<file> (URLs OK) |
![[*]](crossref.png) |
-f <file> |
Query package owning <file> |
![[*]](crossref.png) |
-a |
Query all installed packages |
![[*]](crossref.png) |
--whatprovides <x> |
Query packages providing capability
<x> |
![[*]](crossref.png) |
-g <group> |
Query packages belonging to group
<group> |
![[*]](crossref.png) |
--whatrequires <x> |
Query packages requiring capability
<x> |
![[*]](crossref.png) |
Information Selection Options |
Page |
<null> |
Display full package label |
![[*]](crossref.png) |
-i |
Display summary package information |
![[*]](crossref.png) |
-l |
Display list of files in package |
![[*]](crossref.png) |
-c |
Display list of configuration files |
![[*]](crossref.png) |
-d |
Display list of documentation files |
![[*]](crossref.png) |
-s |
Display list of files in package, with state |
![[*]](crossref.png) |
--scripts |
Display install, uninstall, verify scripts |
![[*]](crossref.png) |
--queryformat (or --qf) |
Display queried data in
custom format |
![[*]](crossref.png) |
--dump |
Display all verifiable information for each file |
![[*]](crossref.png) |
--provides |
Display capabilities package provides |
![[*]](crossref.png) |
--requires (or -R) |
Display capabilities package requires |
![[*]](crossref.png) |
General Options |
Page |
-v |
Display additional information |
![[*]](crossref.png) |
-vv |
Display debugging information |
![[*]](crossref.png) |
--root <path> |
Set alternate root to
<path> |
![[*]](crossref.png) |
--rcfile <rcfile> |
Set alternate rpmrc file to
<rcfile> |
![[*]](crossref.png) |
--dbpath <path> |
Use <path> to find the
RPM database |
![[*]](crossref.png) |