Verifying Packages
If you suspect that a package has become corrupt, perhaps because of removing one of its files, you can have RPM verify the package to ensure that everything is as it should be. At the very least, RPM verifies that the files it installed are still installed and have not been changed (unless they're configuration files), and that all the package's dependencies are installed. Depending on the package, it can also verify that package or system configuration files are correct, or anything else a package needs done.
To verify a package, use the -V option of rpm:
$ rpm -V apache S.5….T c /etc/httpd/conf/httpd.conf missing /etc/rc.d/rc0.d/K15httpd missing /etc/rc.d/rc1.d/K15httpd missing /etc/rc.d/rc2.d/K15httpd missing /etc/rc.d/rc3.d/S85httpd ...
Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.