GSP
Quick Navigator

Search Site

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

Support
Customer Portal
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_LIBCHK(8) FreeBSD System Manager's Manual PKG_LIBCHK(8)

pkg_libchkcheck packages for links against missing libraries

pkg_libchk [-cmnoqv] [-j jobs] [-a]

pkg_libchk [-CcdgimnOoqrvx] [-j jobs] pkg-name ...

pkg_libchk -h

The pkg_libchk script uses pkg-info(8), ldd(1) and readelf(1) to check whether a package is linked against missing libraries or using compatibility libraries (matching */lib*/compat/*).

The following arguments are accepted:

jobs
The number of parallel process to perform library checks. The default is number of detected cores plus one.
pkg-name
Packages are package names or shell glob patterns matching these. Whatever works with pkg-info(8) is an acceptable package.

The following options are available:

, --all
Check all packages. This is the default action in case no pkg-name has been specified.
, --case-sensitive
See pkg-info(8).
, --clean
Create clean output without status messages.
, --dependencies
Also operate on the dependencies of the provided pkg-name.
, --glob
See pkg-info(8).
, --help
Displays the available options.
, --case-insensitive
See pkg-info(8).
jobs, --jobs jobs
Set the number of parallel processes to perform library checks.
, --no-filter
In this mode all the checks to detect false positives produced by ldd(1) are deactivated.

  • Indirect dependencies are no longer recognised as such.
  • Dependencies that are part of a package even though ldd(1) does not find them are no longer discarded - finding these dependencies usually just requires some runtime information ldd is not privy to.
  • Dependencies of unbranded elf(3) binaries are no longer distinguished from dependencies of native binaries.
, --no-compat
This deactivates detecting compatibility libraries.
, --by-origin
See pkg-info(8).
, --origin
Instead of the package name and version the package origin and flavour is printed.
, --quiet
Only print the names of affected packages. Do not print any details. This option is meant for machine readability.

This option cannot be combined with verbose output.

, --required-by
Also check packages that depend on the provided packages. This is a good idea when checking for the effects of a library update.
, --verbose
Be verbose about missing dependencies. Instead of rejecting indirect dependencies print them.

This option cannot be combined with quiet output.

, --regex
See pkg-info(8).

To check all your packages run:

pkg_libchk

To create plain output for everything connected to gtk.

pkg_libchk -q \*gtk\*

After upgrading a library, in this case icu, you can check all depending packages:

pkg_libchk -r icu

1
The script has terminated because it received SIGHUP, SIGINT or SIGTERM.
2
An unknown parameter has been supplied.
3
The incompatible parameters -v and -q have been supplied.
4
The parameter -j has been supplied without an acceptable number.

The pkg_libchk script first appeared in the collection. It was rewritten for the collection.

Dominic Fandrey <freebsd@k4m1.org>

29 July, 2024 FreeBSD 15.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.