To check the accuracy of a spooled package instead of an installed package, use the pkgchk(1M) command.
The checks made for a spooled package are limited because not all information can be audited until a package is installed.
To check the accuracy of a spooled package,
pkgchk -d spool_dir_name pkgname
spool_dir_name is the directory into which the package was spooled (or the device onto which it was spooled) and pkgname is the name of the package to check.
For example, to look in the spool directory spooldir
and check the accuracy of a package named pkgA, enter:
pkgchk -d spooldir pkgA
To check the packages that comprise a set, run pkginfo(1) to determine the name of each package in the set, and then run pkgchk for the individual packages.