DEPGRAPH(1)

NAME
depgraph - script to show third party package dependencies and licensing information

SYNOPSIS
depgraph [-V] [-a] [-j] [-l] [-m] [-v] [-x] [component ...]

DESCRIPTION
The depgraph script displays the dependency graph for packages, and optionally candisplay version information, and licensing information, where known, for the individual packages. It is useful for finding out the installed versions of the packages installed on a system. The depgraph utility can also record some metadata about the machine on which the report is run. It can also output the information as a normal dependency graph, or, alternatively, in JSON format. This is useful for reporting into ingest engines, for further data analysis, and also to inform Software Bill Of Materials (SBOM) reporting.

OPTIONS
The following options are available:

-V  This option prints the version number of the utility to standard output, and exits.

-a  prints all metadata information, such as license, metadata, full name and version of each package, and machine uptime.

-j  Output the information to standard output formatted as standard JSON. This could be useful for further analysis of the data, or for SBOM reporting.

-l  Output the licensing information for each package that is selected.

-m  Output the metadata of the machine and build of the kernel onto standard output.

-v  When printing dependency graphs, output the name and version numbers of all selected packages.

-x  Allow internal debugging information to be displayed as the dependency graph is produced.

Packages may be selected by placing either their base name, or full name and version, on the command line, after any options. If no package names are proivided, then the information for all user-installed packages are reported. See pkg_info(1) and its option for more information on what constitutes a user-installed package.

EXIT STATUS
depgraph exits with status 2 if an unknown option is given, otherwise, with status 0.

SEE ALSO
awk(1), pkg_info(1), sed(1), uname(1), sysctl(8)

HISTORY
The depgraph program was first seen in NetBSD 12.

AUTHORS
The depgraph script was written by Alistair Crooks <agc@NetBSD.org>.