Skip to main content
IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM developerWorks : Linux : Education - Tutorials
LPI certification 102 exam prep, Part 1
ZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
5. rpm, the (R)ed Hat (P)ackage (M)anager
  


Verifying an installed package page 14 of 16


Similarly to checking the integrity of an rpm, you can also check the integrity of your installed files using rpm -V. This step makes sure that the files haven't been modified since they were installed from the rpm:


# rpm -V xsnow

Normally this command displays no output to indicate a clean bill of health. Let's spice things up and try again:


# rm /usr/X11R6/man/man1/xsnow.1x.gz

# cp /bin/sh /usr/X11R6/bin/xsnow

# rpm -V xsnow
S.5....T   /usr/X11R6/bin/xsnow
missing    /usr/X11R6/man/man1/xsnow.1x.gz

This output shows us that the Xsnow binary fails MD5 sum, file size, and mtime tests. And the man page is missing altogether! Let's repair this broken installation:


# rpm -e xsnow
removal of /usr/X11R6/man/man1/xsnow.1x.gz failed: No such file or directory

# rpm -ivh xsnow-1.41-1.i386.rpm 
xsnow                       ##################################################

Main menuSection menuFeedbackPreviousNext
Privacy Legal Contact