PKG_SUBGRAPH_DEPS(1)

NAME
pkg_subgraph_deps takes a dependency graph of packages on input and outputs subgraph

SYNOPSIS
pkg_subgraph_deps [OPTIONS] [files...]

DESCRIPTION
pkg_subgraph_deps takes a dependency graph of packages on input and outputs a subgraph consisting of dependent (by default) packages, that is packages that depend on listed ones directly or indirectly. The dependency graph is represented as a list or graph edges (one per line) or isolated nodes (one per line). Graph edge consists of package pair with optional dependency type (first token). By default the dependency type is output if given on input. Example of input graph
   jpeg emacs
   tiff emacs
   libXaw emacs
   libXpm emacs
   libungif emacs
   png emacs
   perl emacs
   jpeg tiff
   perl libungif
   libjudy
   runawk Example of input graph DEPENDS lang/runawk parallel/paexec BUILD_DEPENDS devel/mk-configure parallel/paexec BUILD_DEPENDS sysutils/checkperms lang/runawk BUILD_DEPENDS sysutils/checkperms devel/libmaa DEPENDS devel/libmaa parallel/paexec BUILD_DEPENDS devel/mk-configure lang/runawk BUILD_DEPENDS sysutils/checkperms devel/libtool-base BUILD_DEPENDS lang/f2c devel/libtool-base BUILD_DEPENDS sysutils/checkperms devel/mk-configure BUILD_DEPENDS sysutils/checkperms parallel/paexec BUILD_DEPENDS devel/libtool-base devel/libmaa BUILD_DEPENDS sysutils/checkperms lang/f2c

OPTIONS

-h  Display help message.

-f <file>
    Specify a filename that contains packages, one package per line.

-p <packages>
    Specify packages separated by space character.

-r  By default dependent packages are output. With this option dependencies are output.

-x  By default packages specified with a help of -p or -f options are output. With this option they are skipped.

-n  Output only packages without information about dependencies between them.

-v  Invert condition.

-1  Only direct dependencies or dependent packages are output.

-t  Produce output compatible with tsort(1) command

EXAMPLES
pkg_info -Xa | pkg_summary2deps -nd | pkg_subgraph_deps -xr -p 'graphviz emacs'

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

AUTHOR
Aleksey Cheusov <vle@gmx.net>