Name

pkgchk

Synopsis

/usr/sbin/pkgchk [-d device] [options]pkginst

pkgchk checks the integrity of installed packages by comparing the information in the package file to what is actually on the system. With the -d option, it checks the packages on a particular device but cannot check the file attributes of the packages therein. The pkginst is a package name, possibly followed by .* to indicate all instances of the package.

Options

-a

Check file attributes only, do not check file contents.

-c

Check file contents only, do not check file attributes.

-d device

Use device as the source for the package to be checked.

-e file

Resolve parameters in the given package map file using information in the environment file file.

-f

Correct file attributes. With -x, remove hidden files.

-i file

Read pathnames from file and compare the list against the installation database or against the given package map file.

-l

List information on the files that make up a package. May not be used with -a, -c, -f, -g, or -v.

-m pkg-map-file

Check the package against pkg-map-file which is a package map file (see pkgmap(4)).

-M

Do not use $root_path/etc/vfstab for determining a client’s mount points. Rather, assume that the mount points are correct on the server.

-n

Do not check files that are editable or are likely to change during normal operation. Intended for post-installation checking.

-p path

Check only the path listed. You can check multiple paths by separating pathnames with a comma, or quoting the list and ...

Get Unix in a Nutshell, 4th 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.