pkg_admin(1)

NAME
pkg_admin - perform various administrative tasks to the pkg system.

SYNOPSIS
command args ...

DESCRIPTION
This command performs various administrative tasks around the NetBSD Packages System. Available commands are:

rebuild
    Rebuild the package database mapping from scratch, scanning subdirectories in /var/db/pkg for +CONTENTS files, parsing them and writing the resulting absolute pathnames together with the package they belong to into the package database.

    This option is intended to be used for upgrading from non-pkgdb-pkg_* tools to pkgdb-pkg_* tools, further manipulation of the pkgdb will be done by pkg_add(1), pkg_delete(1) and pkg_create(1).

    Needs to be run as root.

check [pkg ...]
    Use this command to check the files belonging to some or all of the packages installed on the local machine against their MD5 checksum noted in their +CONTENTS files. If no additional argument is given, the files of all installed packages are installed, else only the named packages will be ckecked (wildcards can be used here, see pkg_info(1) ).

    The packages' +CONTENTS files will be parsed and the MD5 checksum will be checked for every file found. A warning message is printed if the expected checksum differs from the checksum of the file on disk.

dump
    Dump the contents of the package database, similar to pkg_info -F. Columns are printed for the keyfield used in the pkgdb - the filename -, and the data field - the package the file belongs to.

ENVIRONMENT

  PKG_DBDIR
Where to register packages instead of /var/db/pkg.

FILES
/var/db/pkg/pkgdb.byfile.db
/var/db/pkg/<pkg>/+CONTENTS

SEE ALSO
pkg_add(1), pkg_delete(1), pkg_info(1), pkg_create(1).

AUTHOR
The pkg_admin command was written by Hubert Feyrer.

HISTORY
The pkg_admin command first appeared in NetBSD 1.4.