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.
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):
-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.
C.4 Verify Mode
RPM's verification mode is used to ensure that a package is still installed
properly:
Format: rpm - -verify <options>
or
Format: rpm -V <options>
or
Format: rpm -y <options>
The following options can be used on any build command:
- -short-circuit -- Skip straight to specified stage (only
for c and i).
- -clean -- Remove build tree when done.
- -sign -- Generate PGP signature.
- -buildroot <s> -- Use <s> as the build root.
- -buildarch <s> -- Use <s> as the build
architecture.
- -buildos <s> -- Use <s> as the build operating
system.
- -test -- Do not execute any stages.
- -timecheck <s> -- Set the time check to <s>
seconds (0 disables it).
C.9 Rebuild Mode
RPM's rebuild mode is used to rebuild packages from a source package file.
The source archives, patches, and icons that comprise the source package
are removed after the binary package is built. Rebuild mode implies
- -clean.
Format: rpm - -rebuild <options> <source-package>
(Note that -vv is the default for all rebuild mode commands.)