| PKG_ADMIN(1) | General Commands Manual | PKG_ADMIN(1) |
pkg_admin —
pkg_admin |
[-bqSVv] [-C
config] [-d
lsdir] [-K
pkg_dbdir] [-s
sfx_pattern] command [args
...] |
-blsall and lsbest.-C
config-d
lsdirlsall and
lsbest.-K
pkg_dbdirPKG_DBDIR configuration
option with the value pkg_dbdir.-qpkg_admin prints a ‘.’ to standard
output to indicate progress. This option suppresses this progress
indicator.-Slsall and lsbest
to be the null suffix.-s
sfx_patternlsall and
lsbest. The default pattern is
".t[bg]z".-V-vThe following commands are supported:
audit
[-eis] [-t
type] [pkg] ...-e is
given, override the CHECK_END_OF_LIFE option from
pkg_install.conf(5)
with “yes”. If
-i is given, any advisory ignored by
IGNORE_URL in
pkg_install.conf(5)
is included but flagged as “ignored”. If
-s is given, check the signature of the
pkg-vulnerabilities file before using it. -t
restricts the reported vulnerabilities to type
type.audit-pkg
[-eis] [-t
type] [pkg] ...audit, but check only the given package names
or patterns.audit-batch
[-eis] [-t
type] [pkg-list] ...audit-pkg, but read the package names or
patterns one per line from the given files.audit-history
[-s] [-t
type] [pkgbase] ...check
[pkg ...]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.
check-license
conditioncheck-pkg-vulnerabilities
[-s] file-s is given, also
check the embedded signature.check-signature
file ...check-single-license
licenseconfig-var
variabledigest
file ...dumppkg_info -F. Columns are printed for the key field
used in the pkgdb - the filename -, and the data field - the package the
file belongs to.fetch-pkg-vulnerabilities
[-su]-s is given the signature. If all checks are
passed, write it to pkgdb. If -u is given, the
fetch is conditional and the file transfer is only done if the remote
version is newer than the one in pkgdb.findbest
pattern ...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.gpg-sign-package
pkg spkglsall
/dir/pkgpatternlsbest
/dir/pkgpattern-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 'unzip≥5.40'
/usr/pkgsrc/packages/i386ELF/All/unzip-5.40.tgz
/usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
yui# pkg_admin lsall 'unzip≥5.41'
/usr/pkgsrc/packages/i386ELF/All/unzip-5.41.tgz
yui# pkg_admin lsbest 'unzip≥5.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
pmatch
pattern pkgrebuildrebuild-treeThis 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.
set
variable=value pkg ...unset to remove a variable.
Packages that are not installed directly by the user but pulled in as dependencies are marked by setting “automatic=YES”.
x509-sign-package
pkg spkg key certunset
variable pkg ...pkg_admin command first appeared in
NetBSD 1.4.
pkg_admin command was written by Hubert Feyrer.
| August 22, 2020 | NetBSD 9.3 |