ACC SHELL
<HTML>
<HEAD>
<TITLE>Querying</TITLE>
</HEAD>
<BODY>
<H1>4. <A NAME="s4"></A>Querying</H1>
<P>
<A HREF="RPM-Tips.html#toc4">Contents of this section</A></P>
<P></P>
<P>The <CODE>-q</CODE> option specifies query mode. </P>
<P>The following options specify information you want:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
&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
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>The following options specify what packages you want to query:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
name Installed package name
-a All installed packages
-f file Installed package owning file
-p package Query RPM package
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>Combine one of each of the above options to form a query. For example,
to list all the packages installed on your system:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
rpm -qa
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>To list all the configuration files enter:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
rpm -qac
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>To list all the documentation in the package owning <CODE>/usr/bin/jed</CODE> enter:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
rpm -qdf /usr/bin/jed
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P></P>
<HR>
<P>
<A HREF="RPM-Tips-5.html">Next</A> Chapter,
<A HREF="RPM-Tips-3.html">Previous</A> Chapter
<P>
Table of contents of <A HREF="RPM-Tips.html#toc4">this chapter</A>,
General <A HREF="RPM-Tips.html#toc">table of contents</A></P>
<P>
<A HREF="RPM-Tips.html">Top</A> of the document,
<A HREF="#0"> Beginning of this Chapter</A></P>
</BODY>
</HTML>
ACC SHELL 2018