Наши партнеры








Книги по Linux (с отзывами читателей)

Библиотека сайта rus-linux.net

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.

  • <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.

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):

  • -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.