<HTML ><HEAD ><TITLE >Now what can I really do with RPM?</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK REL="HOME" TITLE="RPM HOWTO" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Using RPM" HREF="use.html"><LINK REL="NEXT" TITLE="Building RPMs" HREF="build.html"><LINK REL="STYLESHEET" TYPE="text/css" HREF="oswg.css"></HEAD ><BODY ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >RPM HOWTO: RPM at Idle</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="use.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="build.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="SECT1" ><H1 CLASS="SECT1" ><A NAME="RPM-DO" >5. Now what can I really do with RPM?</A ></H1 ><P > RPM is a very useful tool and, as you can see, has several options. The best way to make sense of them is to look at some examples. I covered simple install/uninstall above, so here are some more examples: </P ><P ></P ><UL ><LI STYLE="list-style-type: disc" ><P > Let's say you delete some files by accident, but you aren't sure what you deleted. If you want to verify your entire system and see what might be missing, you would do: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >rpm -Va </PRE ></TD ></TR ></TABLE ></LI ><LI STYLE="list-style-type: disc" ><P > Let's say you run across a file that you don't recognize. To find out which package owns it, you would do: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >rpm -qf /usr/X11R6/bin/xjewel </PRE ></TD ></TR ></TABLE ><P > The output would be sometime like: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >xjewel-1.6-1 </PRE ></TD ></TR ></TABLE ></LI ><LI STYLE="list-style-type: disc" ><P > You find a new koules RPM, but you don't know what it is. To find out some information on it, do: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >rpm -qpi koules-1.2-2.i386.rpm </PRE ></TD ></TR ></TABLE ><P > The output would be: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >Name : koules Distribution: Red Hat Linux Colgate Version : 1.2 Vendor: Red Hat Software Release : 2 Build Date: Mon Sep 02 11:59:12 1996 Install date: (none) Build Host: porky.redhat.com Group : Games Source RPM: koules-1.2-2.src.rpm Size : 614939 Summary : SVGAlib action game with multiplayer, network, and sound support Description : This arcade-style game is novel in conception and excellent in execution. No shooting, no blood, no guts, no gore. The play is simple, but you still must develop skill to play. This version uses SVGAlib to run on a graphics console. </PRE ></TD ></TR ></TABLE ></LI ><LI STYLE="list-style-type: disc" ><P > Now you want to see what files the koules RPM installs. You would do: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >rpm -qpl koules-1.2-2.i386.rpm </PRE ></TD ></TR ></TABLE ><P > The output is: </P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="90%" ><TR ><TD ><PRE CLASS="PROGRAMLISTING" >/usr/doc/koules /usr/doc/koules/ANNOUNCE /usr/doc/koules/BUGS /usr/doc/koules/COMPILE.OS2 /usr/doc/koules/COPYING /usr/doc/koules/Card /usr/doc/koules/ChangeLog /usr/doc/koules/INSTALLATION /usr/doc/koules/Icon.xpm /usr/doc/koules/Icon2.xpm /usr/doc/koules/Koules.FAQ /usr/doc/koules/Koules.xpm /usr/doc/koules/README /usr/doc/koules/TODO /usr/games/koules /usr/games/koules.svga /usr/games/koules.tcl /usr/man/man6/koules.svga.6 </PRE ></TD ></TR ></TABLE ></LI ></UL ><P > These are just several examples. More creative ones can be thought of really easy once you are familiar with RPM. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="use.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="build.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Using RPM</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Building RPMs</TD ></TR ></TABLE ></DIV ></BODY ></HTML >