4.
Querying
RPM-Tips.html#toc4
Contents of this section
The
-q
option specifies query mode.
The following options specify information you want:
&lt;nothing>    Name, version, release
-i              Name, description, builder, build date, etc
-l              List of files in package
-d              List of documentation
-c              List of configuration files
The following options specify what packages you want to query:
name            Installed package name
-a              All installed packages
-f file         Installed package owning file
-p package      Query RPM package
Combine one of each of the above options to form a query.  For example,
to list all the packages installed on your system:
rpm -qa
To list all the configuration files enter:
rpm -qac
To list all the documentation in the package owning
/usr/bin/jed
enter:
rpm -qdf /usr/bin/jed
RPM-Tips-5.html
Next
Chapter,
RPM-Tips-3.html
Previous
Chapter
Table of contents of
RPM-Tips.html#toc4
this chapter
,
General
RPM-Tips.html#toc
table of contents
RPM-Tips.html
Top
of the document,
#0
Beginning of this Chapter
