| Maximum RPM: Taking the Red Hat Package Manager to the Limit | ||
|---|---|---|
| Prev | Appendix C. Concise RPM Command Reference | Next |
RPM's query mode is used to display information about packages:
Format: rpm --query <options>
or
Format: rpm -q <options>
<packagename> — Query the named package.
-a — Query all packages.
-f <file>+ — Query package owning <file>.
-g <group>+ — Query packages with group <group>.
-p <packagefile>+ — Query (uninstalled) package <packagefile>.
--whatprovides <i> — Query packages that provide <i> capability.
--whatrequires <i> — Query packages that require <i> capability.
present on the command line, RPM will simply display the applicable package label(s):
-i — Display package information.
-l — Display package file list.
-s — Show file states (implies -l).
-d — List only documentation files (implies -l).
-c — List only configuration files (implies -l).
--dump— Show all available information for each file (must be used with -l, -c, or -d).
--provides — List capabilities that the package provides.
--requires, -R — List capabilities that the package requires.
--scripts— Print the various [un]install, verification scripts.
--queryformat <s> — Use <s> as the header format (implies -i).
--qf <s> — Shorthand for --queryformat.
| Главная |