Application Packaging Developer's Guide

Examples—Verifying the Integrity of a Package

This example shows the command you should use to verify the integrity of an installed package.

$ pkgchk pkg-abbrev

If there are errors, the pkgchk command prints them. Otherwise, it does not print anything and returns an exit code of 0. If you do not supply a package abbreviation, then it will check all of the packages on the system.

Alternately, you could use the -v option, which will print a list of files in the package if there are no errors. For example:

$ pkgchk -v SUNWcadap

If you need to verify a package that is installed on a client system's root file system, use this command:

$ pkgchk -v -R root-path pkg-abbrev