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_VERSION(8) FreeBSD System Manager's Manual PKG_VERSION(8)

pkg_versionsummarise installed versions of packages

pkg_version [-coqUv] [-j jobs] [-l limchar] [-L limchar] [-a | [-CdgiOrx] pkg-name ...]

pkg_version -P [-coqv] [-j jobs] [-l limchar] [-L limchar] [-a | [-CdgiOrx] pkg-name ...]

pkg_version -I [index] [-coqv] [-j jobs] [-l limchar] [-L limchar] [-a | [-CdgiOrx] pkg-name ...]

pkg_version -R [-coqUv] [-j jobs] [-l limchar] [-L limchar] [-a | [-CdgiOrx] pkg-name ...]

pkg_version -h

The pkg_version script is a pkg-version(8) wrapper capable of greatly improving the performance of using the ports(7) tree as the version source by querying version numbers in parallel.

For most of the behaviour pkg-version(8) can be consulted. Noteworthy differences are:

  • Multiple package arguments can be provided
  • Origins (if -o is used) contain the flavour of the installed package
  • If -l limchar and -q are given, only package identifiers are output
  • The -t and -T arguments are not supported

The following arguments are accepted:

index
The index file to compare installed package versions to. Defaults to /usr/ports/INDEX-N with N being the major FreeBSD version number. See pkg-version(8).
jobs
The number of processes to use in parallel to run pkg-version(8) queries.
limchar
A single character constraining which packages are output.
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).
[index], --index [index]
Use index file to determine if a package is out of date. See pkg-version(8).
jobs, --jobs jobs
Specify the amount of parallel jobs the script will attempt run. The default is number of detected cores.
limchar, ---like limchar
Display only packages with the given version status, see pkg-version(8).
limchar, ---not-like limchar
Display only packages unlike the given version status, see pkg-version(8).
, --by-origin
See pkg-info(8).
, --origin
Instead of the package name and version the package origin and flavour is printed.
, --ports
Use ports(7) to determine if a package is out of date. See pkg-version(8).
, --quiet
Produce less output, see pkg-version(8). In combination with -l it suppresses printing limchar behind matched packages.
, --remote
Use repository catalogue to determine if a package is out of date. See pkg-version(8).
, --required-by
Also check packages that depend on the provided packages.
, --no-repo-update
Disable automatic update of the repository catalogue. See pkg-version(8).
, --verbose
Be verbose, see pkg-version(8). Use twice to be extra verbose.
, --regex
See pkg-info(8).

Check all packages whether they are out of date:

pkg_version

List all out of date GPU firmware packages, without any visual clutter:

pkg_version -ql\< gpu-firmware-\*

pkg-info(8), pkg-version(8), ports(7)

The pkg_version script first appeared in the collection.

Dominic Fandrey <freebsd@k4m1.org>

18 November, 2023 FreeBSD 14.3-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.