PKG_SORT(1)

NAME
pkg_sort - sort lines of package names in dependency order

SYNOPSIS
pkg_sort [-hq]

DESCRIPTION
The pkg_sort command reads lines of package names from the standard input and sorts them in dependency order. For every combination of packages A and B where the former is required by the latter, A will appear prior to B.

OPTIONS
The following command line arguments are supported:

-h
--help
    Show help and exit.

-q
--noconfig
    Do not read the configuration file. ($PREFIX/etc/pkgtools.conf)

ENVIRONMENT
PKG_DBDIR
    Alternative location for the installed package database. Default is “/var/db/pkg”.

PKGTOOLS_CONF
    Configuration file for the pkgtools suite. Default is “$PREFIX/etc/pkgtools.conf”.

FILES

/var/db/pkg
    Default location of the installed package database.

$PREFIX/etc/pkgtools.conf
    Default location of the pkgtools configuration file.

SEE ALSO
pkg_glob(1)

AUTHORS
Akinori MUSHA <knu@iDaemons.org>