DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

pkgchk(1M)


pkgchk -- check accuracy of installation

Synopsis

   pkgchk [-b bufsize] [-l | -acqv] [-nx] [-p path1[,path2 . . . ] [-i file] [pkginst . . . ]
   

pkgchk [-b bufsize] -d device [-l | v] [-p path1[,path2 . . . ] [-i file] [pkginst . . . ]

pkgchk -m pkgmap [-e envfile] [-l | -acqv] [-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 the files. Discrepancies are reported on stderr 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:


-a
Audits the file attributes only, does not check file contents. Default is to check both.

-b bufsize
Specifies the buffer size passed to cpio to copy a package image from a device (such as a tape drive) to a temporary work area on disk. By default, the buffer size is taken from /etc/device.tab; and, if this value fails, the command is re-tried with a buffer size of 512. The -b option overrides the value in /etc/device.tab; if the buffer size you supply fails, the command is attempted again with a buffer size of 512.

-c
Audits the file contents only, does not check file attributes. Default is to check both.

-l
Lists information on the selected files that make up a package. It is not compatible with the a, c, f, g, and v options.

-n
Does not check volatile or editable files. This should be used for most post-installation checking.

-q
Quiet mode. Does not give messages about missing files.

-v
Verbose mode. Files are listed as processed.

-x
Searches exclusive directories only, looking for files that exist that are not in the installation software database or the indicated pkgmap file. An exclusive directory is a directory created by and for a package; it should contain only files delivered with a package. If any non-package files are found in an exclusive directory, pkgchk reports an error.

-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 that are not contained in ``inputfile'' are not checked.

-d
Specifies the device on which a spooled package resides. device can be a directory pathname, the identifiers for a tape or other removable medium (for example, /var/tmp, /dev/rmt0, or /dev/rmt/ctape1), or ``-'' which specifies packages in datastream format read from standard input.

-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
A short string used to designate an abbreviation for the package name. (The term ``package instance'' is used loosely: it refers to all instantiations of pkginst, even those that do not include instance identifiers.)

See pkginfo(1) and pkginfo(4).

To indicate all instances of a package, specify 'pkginst.*', enclosing the command line in single quotes, as shown, to prevent the shell from interpreting the * character. Use the token all to refer to all packages available on the source medium.

Exit codes


0
Successful completion of script.

1
Fatal error. Installation process is terminated at this point.

Files


/usr/lib/locale/locale/LC_MESSAGES/uxpkg
language-specific message file [See LANG on environ(5).]

References

compver(4), copyright(4), depend(4), installf(1M), pkgadd(1M), pkgask(1M), pkginfo(1), pkginfo(4), pkgmap(4), pkgrm(1M), pkgtrans(1), space(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004