PKG_BIN_SUMMARY(1)

NAME
pkg_bin_summary wrapper for pkg_info that outputs a package summary

SYNOPSIS
pkg_bin_summary [OPTIONS] [-- [PKG_INFO_ARGS]] [packages...]

DESCRIPTION
pkg_bin_summary is a wrapper for 'pkg_info -X' that outputs build information and installation information variables as well some special variables for installed or binary packages, e.g. ASSIGNMENTS (settings to build multivariant packages), PLIST (a list of files of the package) and REQUIREDBY. By default it is equivalent to pkg_info -Xa.

OPTIONS

-h  Display help message.

-e  By default summary for all installed packages is output if no packages were specified as arguments. If -e is applied, pkg_bin_summary does nothing in this case and exits immediately.

-a fields
    add to the output the specified fields, fields are separated by space or comma.

-f fields
    output only specified fields, fields are separated by space or comma.

-r fields
    remove from output the specified fields, fields are separated by space or comma.

-k algorithms
    Generate checksums for packages using digest(1) and make them a part of output summary. FILE_CKSUM field is added to summary that has the following format:
      FILE_CKSUM=<ALGO> <CKSUM> where ALGO is is an algorithm supported by digest(1), for example, md5, sha1 etc., and CKSUM is a checksum.

PKG_INFO_ARGS are
    options passed to pkg_info(1) that default to -a. In addition to these options -X is always applied to pkg_info as well as -B if needed. "--" is required if PKG_INFO_ARGS is not empty.

EXAMPLES
  pkg_bin_summary -f PKGNAME,automatic,REQUIREDBY |
  pkg_grep_summary -e REQUIREDBY |
  pkg_grep_summary -s automatic yes
  pkg_bin_summary -a automatic,ASSIGNMENTS
  pkg_bin_summary -r 'DESCRIPTION REQUIRES PROVIDES' -- -u
  pkg_bin_summary -a automatic -r REQUIRES 'lib*'
  pkg_bin_summary -f PKGNAME,PKGPATH,DEPENDS,ASSIGNMENTS |
  pkg_summary2deps -pdt |
  tsort
  find /usr/pkgsrc/packages/All -name '*.tgz' |
  xargs pkg_bin_summary -e -a PLIST
  ls -1 | grep '[.]tgz$' | xargs pkg_bin_summary -e -k 'sha1 rmd160'

ENVIRONMENT

TMPDIR
    Directory for temporary files, by default /tmp is used.

SEE ALSO
pkg_summary-utils(7), pkg_summary(5), digest(1)

AUTHOR
Aleksey Cheusov <vle@gmx.net>