pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[announcement] pkg_status-0.9



I've just released pkg_status-0.9 (wip/pkg_status).

This simple program provides the following features:
  -s:  checks installed packages against pkgsrc source tree.
       This feature is similar to pkg_chk -un and lintpkgsrc -i
       but works *drammatically* faster and provides better results
       (upgradable/downgradable etc.)
  -b:  checks installed packages against prebuilt binary packages
       summary (pkg_summary.{txt,gz,bz2}).
  -l: find and optionally removes automatically installed leaf packages.
      Again 'pkg_status -l' works much faster than pkg_leaves especially on
      platforms with slow fork(2), notably Interix.
  -k: different sanity checks, e.g. REQUIRES/PROVIDES coherence and
      others. More checks are coming.

Suggestions are welcome.

This tool is based on wip/pkg_summary-utils.

Detailed documentation is below:

====================================================================
pkg_status - compare versions of installed packages
against pkgsrc source tree or pkg_summary.{txt,gz,bz2}

usage:
  pkg_status -h
  pkg_status -V
  pkg_status -s [-ruaAQDp] [ [--] pkg_info_args ]
  pkg_status -b [-ruaAQD]  [ [--] pkg_info_args ]
  pkg_status -k [-mUd]     [ [--] pkg_info_args or pkg_admin_args ]
  pkg_status -l [-rtREn]

OPTIONS:
  -h         display this help message
  -V         display version
  -r         raw output
  -D         for debugging purposes, temp files are not removed
OPTIONS for -s|-b:
  -s         compare against pkgsrc source tree
  -b         compare against pkg_summary(5) database,
             a path to which is stored in PKG_SUMMARY environment variable
  -u         analyse packages marked as installed by user (the default, see -a)
  -a         analyse all installed packages (see -u)
  -A         by default up-to-date packages are skipped,
             with -A they are output too
  -Q         No noisy reminder about output format
  -p <file>  get PKGPATHs from <file> (instead of pkg_info -QPKGPATH).
             This option makes sense with -s, not with -b.
OPTIONS for -l:
  -l         list leaf packages installed automatically
  -t         output only PKGNAME
  -R         remove automatically installed leaf packages
  -E         the same as -R but with 'pkg_delete -A'
  -n         pass -n to pkg_delete
OPTIONS for -k:
  -m         check checksums of installed files (pkg_admin check)
  -U         check for REQUIRES/PROVIDES coherence (pkg_lint_summary -l)
  -d         check for presense of dependencies (pkg_lint_summary -d)
Environment:
   PKG_SUMMARY      - path to pkg_summary.{txt,gx,bz2},
                      it defaults to @PACKAGES@/All/pkg_summary.txt
   PKG_SRC_SUMMARY_CMD - command for generating micro summary,
                      it defaults to pkg_micro_src_summary,
                      reasonable (but slower) alternative is pkg_src_summary.
Example:
   pkg_status -h
   pkg_status -s
   pkg_status -b
   pkg_status -saQ
   pkg_status -bA
   pkg_status -bar
   pkg_status -s pkg_install bmake bootstrap-mk-files
   pkg_status -srA -- pkg_summary-utils
   pkg_status -sp /etc/interesting_pkgs.conf
   pkg_status -lEn
   pkg_status -km
   pkg_status -kUd

-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index