pkgchk(ADM) 19 June 1992 pkgchk(ADM) Name pkgchk - check accuracy of installation Syntax /usr/bin/pkgchk [ -l|-acfqv ] [ -nx ] [ -p path1 [ ,path2... ] [-i file ] [ pkginst... ] ] /usr/bin/pkgchk -d device [ -l|v ] [ -p path1 [,path2... ] [ -i file ] [ pkginst... ] ] /usr/bin/pkgchk -m pkgmap [ -e envfile ] [ -l|-acfqv ] [ -nx ] [-i file ] [ -p path1 [,path2... ] ] Description pkgchk checks the accuracy of installed files or, by use of the -l option, displays information about package files. The command checks the integrity of directory structures and files. Discrepancies are reported on standard error along with a detailed explanation of the problem. The first synopsis defined above is used to list or check the contents and/or attributes of objects that are currently installed on the system. Package names may be listed on the command line, or by default the entire contents of a machine will be checked. The second synopsis is used to list or check the contents of a package which has been spooled on the specified device, but not installed. Note that attributes cannot be checked for spooled packages. The third synopsis is used to list or check the contents and/or attributes of objects which are described in the indicated pkgmap. The option definitions are: -l Lists information on the selected files that make up a package. It is not compatible with the a, c, f, q, and v options. -a Audits the file attributes only: does not check file contents. Default is to check both. -c Audits the file contents only: does not check file attributes. Default is to check both. -f Corrects file attributes if possible. When pkgchk is invoked with this option it creates directories, named pipes, links and special devices if they do not already exist. -q Quiet mode. Does not give messages about missing files. -v Verbose mode. Files are listed as processed. -n Does not check volatile or editable files. This should be used for most post-installation checking. -x Searches exclusive directories only, looking for files which exist that are not in the installation software database or the indicated pkgmap file. If used with the -f option, hidden files are removed; no other checking is done. -p Only checks the accuracy of the pathname or pathnames listed. pathname can be one or more pathnames separated by commas (or by white space, if the list is quoted). -i Reads a list of pathnames from file and compares this list against the installation software database or the indicated pkgmap file. Pathnames which are not contained in file are not checked. -d Specifies the device on which a spooled package resides. de- vice can be a directory pathname or the identifiers for tape, floppy disk or removable disk (for example, /tmp or /dev/fd096ds15). -m Requests that the package be checked against the pkgmap file pkgmap. -e Requests that the pkginfo file named as envfile be used to resolve parameters noted in the specified pkgmap file. pkginst Specifies the package instance or instances to be checked. The format pkginst.* can be used to check all instances of a pack- age. When using this format, enclose the command line in sin- gle quotes to prevent the shell from interpreting the * charac- ter. The default is to display all information about all installed packages. Notes To remove hidden files only, use the -f and -x options together. To remove hidden files and check attributes and contents of files, use the -f, -x, -c, and -a options together. See also pkgadd(ADM), pkgask(ADM), pkginfo(ADM), pkgrm(ADM), pkgtrans(ADM)