GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PKG-CHECK(8) FreeBSD System Manager's Manual PKG-CHECK(8)

pkg check
sanity check installed packages

pkg check -B|-d|-s|-r [-nqvy] -a

pkg check -B|-d|-s|-r [-nqvy] [-Cgix] pattern


pkg check --{shlibs,dependencies,checksums,recompute} [--{dry-run,quiet,verbose,yes}] --all

pkg check --{shlibs,dependencies,checksums,recompute} [--{dry-run,quiet,verbose,yes}] [--{case-sensitive,glob,case-insensitive,regex}] pattern

pkg check -B or pkg check --shlibs regenerates the library dependency metadata for a package by extracting library requirement information from the binary ELF files in the package.

pkg check -d or pkg check --dependencies checks for and installs missing dependencies.

pkg check -r or pkg check --recompute recalculates and sets the checksums of installed packages. This command should only be used when the administrator has made modifications that invalidate a package checksum. Spontaneous checksum problems can indicate data or security problems.

pkg check -s or pkg check --checksums detects installed packages with invalid checksums. An invalid checksum can be caused by data corruption or tampering.

These options are supported by pkg check:
, --all
Process all packages.
, --shlibs
Regenerates the library dependency metadata for a package
, --case-sensitive
Use case sensitive standard or regular expression (-x) matching with pattern.
, --dependencies
Checks for and installs missing dependencies
, --glob
Treat pattern as a shell glob pattern.
, --case-insensitive
Use case insensitive standard or regular expression (-x) matching with pattern. This is the default unless CASE_SENSITIVE_MATCH has been set to true in pkg.conf.
, --dry-run
Only check for missing dependencies, do not install them.
, --recompute
Recalculates and sets the checksums of installed packages
, --checksums
Detects installed packages with invalid checksums
, --verbose
Be verbose.
, --quiet
Suppress most output, except for error messages and data that the command explicitly requests. This is primarily intended for scripting use.
, --regex
Treat pattern as a regular expression, using the "modern" or "extended" syntax described in re_format(7).
, --yes
Assume "yes" when asked for confirmation before installing missing dependencies.

These environment variables affect the execution of pkg check. See pkg.conf(5) for additional information.
 
 

See pkg.conf(5).

Regenerate the library dependency metadata of all installed packages from the library information in each package's binary ELF files:
pkg check -Ba

Test for missing dependencies needed by nano, installing any that are missing:

pkg check -d nano

Test the checksums of all installed packages to make sure none are corrupted:

pkg check -sa

pkg_create(3), pkg_printf(3), pkg_repos(3), pkg-keywords(5), pkg-lua-script(5), pkg-repository(5), pkg-script(5), pkg-triggers(5), pkg.conf(5), pkg(8), pkg-add(8), pkg-alias(8), pkg-annotate(8), pkg-audit(8), pkg-autoremove(8), pkg-backup(8), pkg-clean(8), pkg-config(8), pkg-create(8), pkg-delete(8), pkg-fetch(8), pkg-info(8), pkg-install(8), pkg-lock(8), pkg-query(8), pkg-register(8), pkg-repo(8), pkg-rquery(8), pkg-search(8), pkg-set(8), pkg-shell(8), pkg-shlib(8), pkg-ssh(8), pkg-stats(8), pkg-triggers(8), pkg-update(8), pkg-updating(8), pkg-upgrade(8), pkg-version(8), pkg-which(8)
May 25, 2018 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.