PKG_DBDIR
if it's set, otherwise it defaults to
/var/db/pkg
.
The following commands are supported:
+CONTENTS
file together with the package they belong to into the package database.
This should be used only by
pkg_view(1).
+CONTENTS
files at package installation time.
Symbolic links also have their integrity checked against the recorded
value at package installation time.
If no additional argument is given, the files of all installed packages
are checked, else only the named packages will be checked (wildcards can
be used here, see
pkg_info(1)).
The packages'
+CONTENTS
files will be parsed and the
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.
Symbolic links are also checked, ensuring that the targets on disk are
the same as the contents recorded at package installation time.
PKG_PATH
for packages matching
pattern.
Print the URL of the best matching package to stdout for each pattern.
If a pattern is not matched, it is skipped and the command will return
a failure.
/dir
.
If the
-d
flag is given, then that directory path overrides
/dir
.
Can be used to work around limitations of /bin/sh and other
filename globbing mechanisms.
This option implements matching of
pkg-wildcards against arbitrary files and directories, useful mainly in
the build system itself.
See
pkg_info(1)
for a description of the pattern.
Example:
yui# cd /usr/pkgsrc/packages/i386ELF/All/
yui# ls unzip*
unzip-5.40.tgz unzip-5.41.tgz
yui# pkg_admin lsall 'unzip*'
/usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz
/usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
yui# pkg_admin lsall 'unzip5.40'
/usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz
/usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
yui# pkg_admin lsall 'unzip5.41'
/usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
yui# pkg_admin lsbest 'unzip5.40'
/usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
yui# pkg_admin lsall /usr/pkgsrc/packages/i386ELF/All/'{mit,unproven}-pthread*'
/usr/pkgsrc/packages/i386ELF/All/mit-pthreads-1.60b6.tgz
/usr/pkgsrc/packages/i386ELF/All/unproven-pthreads-0.15.tgz
/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.
This option is intended to be used for fixing inconsistencies between the records of depending and depended-on packages, such as can arise by the use of pkg_delete -f.
Packages that are not installed directly by the user but pulled in as dependencies are marked by setting ``automatic=YES''.
PKG_DBDIR
PKG_DBDIR
is the location of the package database directory.
The default package database directory is
/var/db/pkg
.
CERTIFICATE_ANCHOR_PKGS
CERTIFICATE_ANCHOR_PKGVULN
CERTIFICATE_CHAIN
GPG
PKGVULNDIR
PKGVULNURL
IGNORE_URL
/var/db/pkg/pkgdb.byfile.db
/var/db/pkg/<pkg>/+CONTENTS