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 ##################################################