pkg_check man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

PKG_CHECK(8)		OpenBSD System Manager's Manual		  PKG_CHECK(8)

NAME
     pkg_check - check consistency of installed packages

SYNOPSIS
     pkg_check [-fimnqvx] [-D name[=value]]

DESCRIPTION
     pkg_check verifies as much information as it can about installed
     packages.

     pkg_check is not needed under normal circumstances, but it can be used to
     recover after a catastrophic system failure in the middle of a pkg_add(1)
     or pkg_delete(1).

     pkg_check performs the following checks:

     Packing-list sanity
	    Checks that /var/db/pkg only contains directories, that each
	    directory holds a packing-list, and that said packing-list is an
	    actual packing-list that matches the directory.

     Direct dependencies
	    Checks that all direct dependencies are recorded correctly,
	    specifically, that @depend and @wantlib match actual packages.  It
	    currently does not verify that @wantlib are reachable from the
	    base package.

     Reverse dependencies
	    Checks that all direct dependencies have corresponding reverse
	    dependencies.

     Files from packages
	    Checks that each file, link or directory in those packing-lists
	    actually exist, and that their checksum matches what's recorded in
	    the packing-list.

     Other files
	    Checks that there are no other random objects under /usr/local.

     By default, pkg_check will only perform very safe transformations, such
     as the removal of core-dumps.  -f or -i are the only way to perform
     further changes.

     The options are as follows:

     -D name[=value]
	     Extra options.  Recognized keywords include:

	     nosig     do not check digital signatures.

     -f	     Force the removal of bogus package information.

     -i	     Ask user whether to irrevocably remove bogus package information.

     -m	     Causes pkg_check to always display the progress meter in cases it
	     would not do so by default.

     -n	     Don't actually modify packages, just perform checks.

     -q	     Don't verify checksums for files, just check for their existence.

     -v	     Turn on verbose output.  Several -v may turn on more verbose
	     output.

     -x	     Disable progress meter.

SEE ALSO
     fsck(8)

AUTHORS
     This program was written by Marc Espie.

BUGS
     Work in progress.	The order of checks is not definitive, and more checks
     may be added.  Use with caution.

OpenBSD 4.9		       February 7, 2011			   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net