327 lines
4.8 KiB
HTML
327 lines
4.8 KiB
HTML
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
<HTML
|
||
|
><HEAD
|
||
|
><TITLE
|
||
|
>RPM: Redhat Package Management System</TITLE
|
||
|
><META
|
||
|
NAME="GENERATOR"
|
||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
||
|
REL="HOME"
|
||
|
TITLE="GNU/Linux Command-Line Tools Summary"
|
||
|
HREF="index.html"><LINK
|
||
|
REL="UP"
|
||
|
TITLE="Mini-Guides"
|
||
|
HREF="mini-guides.html"><LINK
|
||
|
REL="PREVIOUS"
|
||
|
TITLE="Mini-Guides"
|
||
|
HREF="mini-guides.html"><LINK
|
||
|
REL="NEXT"
|
||
|
TITLE="Checking the Hard Disk for errors"
|
||
|
HREF="checking-the-hard-disk.html"></HEAD
|
||
|
><BODY
|
||
|
CLASS="SECT1"
|
||
|
BGCOLOR="#FFFFFF"
|
||
|
TEXT="#000000"
|
||
|
LINK="#0000FF"
|
||
|
VLINK="#840084"
|
||
|
ALINK="#0000FF"
|
||
|
><DIV
|
||
|
CLASS="NAVHEADER"
|
||
|
><TABLE
|
||
|
SUMMARY="Header navigation table"
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
CELLPADDING="0"
|
||
|
CELLSPACING="0"
|
||
|
><TR
|
||
|
><TH
|
||
|
COLSPAN="3"
|
||
|
ALIGN="center"
|
||
|
>GNU/Linux Command-Line Tools Summary</TH
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="mini-guides.html"
|
||
|
ACCESSKEY="P"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="80%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="bottom"
|
||
|
>Chapter 20. Mini-Guides</TD
|
||
|
><TD
|
||
|
WIDTH="10%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="bottom"
|
||
|
><A
|
||
|
HREF="checking-the-hard-disk.html"
|
||
|
ACCESSKEY="N"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"></DIV
|
||
|
><DIV
|
||
|
CLASS="SECT1"
|
||
|
><H1
|
||
|
CLASS="SECT1"
|
||
|
><A
|
||
|
NAME="RPM"
|
||
|
></A
|
||
|
>20.1. RPM: Redhat Package Management System</H1
|
||
|
><P
|
||
|
></P
|
||
|
><P
|
||
|
></P
|
||
|
><DIV
|
||
|
CLASS="VARIABLELIST"
|
||
|
><DL
|
||
|
><DT
|
||
|
>Checking</DT
|
||
|
><DD
|
||
|
><P
|
||
|
> Installed RPM's</P
|
||
|
></DD
|
||
|
></DL
|
||
|
></DIV
|
||
|
><P
|
||
|
>Use the <EM
|
||
|
> rpm -V</EM
|
||
|
> option to check whether or not a package has been modified. </P
|
||
|
><P
|
||
|
>For example:</P
|
||
|
><TABLE
|
||
|
BORDER="1"
|
||
|
BGCOLOR="#E0E0E0"
|
||
|
WIDTH="100%"
|
||
|
><TR
|
||
|
><TD
|
||
|
><FONT
|
||
|
COLOR="#000000"
|
||
|
><PRE
|
||
|
CLASS="SCREEN"
|
||
|
>rpm -V textutils</PRE
|
||
|
></FONT
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><P
|
||
|
>If none of the files from the textutils package have changed then rpm will exit without outputting any data. If, on the other hand, the program has changed, you may see something like this:</P
|
||
|
><TABLE
|
||
|
BORDER="1"
|
||
|
BGCOLOR="#E0E0E0"
|
||
|
WIDTH="100%"
|
||
|
><TR
|
||
|
><TD
|
||
|
><FONT
|
||
|
COLOR="#000000"
|
||
|
><PRE
|
||
|
CLASS="SCREEN"
|
||
|
>U.5....T /bin/cat</PRE
|
||
|
></FONT
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><P
|
||
|
>This isn't as cryptic as it appears. The line returned from <EM
|
||
|
> rpm -V</EM
|
||
|
> contains any number of eight characters plus the full path to the file. Here are the characters and their meaning:<A
|
||
|
NAME="AEN11507"
|
||
|
HREF="#FTN.AEN11507"
|
||
|
><SPAN
|
||
|
CLASS="footnote"
|
||
|
>[1]</SPAN
|
||
|
></A
|
||
|
></P
|
||
|
><P
|
||
|
></P
|
||
|
><UL
|
||
|
><LI
|
||
|
><P
|
||
|
>S --- File size differs</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>M --- Mode differs (includes permissions and file type)</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>5 --- MD5 sum differs</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>D --- Device major/minor number mis-match</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>L --- ReadLink(2) path mis-match</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>U --- User ownership differs</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>G --- Group ownership differs</P
|
||
|
></LI
|
||
|
><LI
|
||
|
><P
|
||
|
>T --- mTime differs</P
|
||
|
></LI
|
||
|
></UL
|
||
|
><DIV
|
||
|
CLASS="TIP"
|
||
|
><P
|
||
|
></P
|
||
|
><TABLE
|
||
|
CLASS="TIP"
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="25"
|
||
|
ALIGN="CENTER"
|
||
|
VALIGN="TOP"
|
||
|
><IMG
|
||
|
SRC="../images/tip.gif"
|
||
|
HSPACE="5"
|
||
|
ALT="Tip"></TD
|
||
|
><TH
|
||
|
ALIGN="LEFT"
|
||
|
VALIGN="CENTER"
|
||
|
><B
|
||
|
>Mandriva Users Note</B
|
||
|
></TH
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
> </TD
|
||
|
><TD
|
||
|
ALIGN="LEFT"
|
||
|
VALIGN="TOP"
|
||
|
><P
|
||
|
>Mandriva <SPAN
|
||
|
CLASS="PRODUCTNAME"
|
||
|
>Linux</SPAN
|
||
|
> uses a customised version of <SPAN
|
||
|
CLASS="ACRONYM"
|
||
|
>RPM</SPAN
|
||
|
> called urpmi (It consists of the urpm* commands, urpmi to install, urpme to remove and urpmf and urpmq to query). </P
|
||
|
><P
|
||
|
>This customised version has advantages over standard RPM, including automatic-dependency solving and Debian apt-get style functions (ability to download programs over the internet and have all dependencies resolved automatically). </P
|
||
|
><P
|
||
|
>The urpm* commands are all described in detail in Mandriva's documentation and various sources online.</P
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></DIV
|
||
|
></DIV
|
||
|
><H3
|
||
|
CLASS="FOOTNOTES"
|
||
|
>Notes</H3
|
||
|
><TABLE
|
||
|
BORDER="0"
|
||
|
CLASS="FOOTNOTES"
|
||
|
WIDTH="100%"
|
||
|
><TR
|
||
|
><TD
|
||
|
ALIGN="LEFT"
|
||
|
VALIGN="TOP"
|
||
|
WIDTH="5%"
|
||
|
><A
|
||
|
NAME="FTN.AEN11507"
|
||
|
HREF="rpm.html#AEN11507"
|
||
|
><SPAN
|
||
|
CLASS="footnote"
|
||
|
>[1]</SPAN
|
||
|
></A
|
||
|
></TD
|
||
|
><TD
|
||
|
ALIGN="LEFT"
|
||
|
VALIGN="TOP"
|
||
|
WIDTH="95%"
|
||
|
><P
|
||
|
>Note that the list under section 24.1.2 comes from the <SPAN
|
||
|
CLASS="ACRONYM"
|
||
|
>RPM</SPAN
|
||
|
> manual page, see [11] in the <A
|
||
|
HREF="references.html"
|
||
|
><I
|
||
|
>Bibliography</I
|
||
|
></A
|
||
|
> for further details.</P
|
||
|
></TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
><DIV
|
||
|
CLASS="NAVFOOTER"
|
||
|
><HR
|
||
|
ALIGN="LEFT"
|
||
|
WIDTH="100%"><TABLE
|
||
|
SUMMARY="Footer navigation table"
|
||
|
WIDTH="100%"
|
||
|
BORDER="0"
|
||
|
CELLPADDING="0"
|
||
|
CELLSPACING="0"
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="mini-guides.html"
|
||
|
ACCESSKEY="P"
|
||
|
>Prev</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="index.html"
|
||
|
ACCESSKEY="H"
|
||
|
>Home</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="checking-the-hard-disk.html"
|
||
|
ACCESSKEY="N"
|
||
|
>Next</A
|
||
|
></TD
|
||
|
></TR
|
||
|
><TR
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="left"
|
||
|
VALIGN="top"
|
||
|
>Mini-Guides</TD
|
||
|
><TD
|
||
|
WIDTH="34%"
|
||
|
ALIGN="center"
|
||
|
VALIGN="top"
|
||
|
><A
|
||
|
HREF="mini-guides.html"
|
||
|
ACCESSKEY="U"
|
||
|
>Up</A
|
||
|
></TD
|
||
|
><TD
|
||
|
WIDTH="33%"
|
||
|
ALIGN="right"
|
||
|
VALIGN="top"
|
||
|
>Checking the Hard Disk for errors</TD
|
||
|
></TR
|
||
|
></TABLE
|
||
|
></DIV
|
||
|
></BODY
|
||
|
></HTML
|
||
|
>
|