AUR-GRAPH(1)

NAME
aur-graph - print package/dependency directed graph

SYNOPSIS
aur graph [.SRCINFO...]

DESCRIPTION
aur-graph prints out a partial ordering of packages (tab-separated) (pkgbase) specified in .SRCINFO files. If no files are listed on the command-line, input is taken from standard input.

OPTIONS
Options can be specified with the -v parameter. Every option requires a single -v parameter prepending it.

CHECKDEPENDS=[1|0], DEPENDS=[1|0], MAKEDEPENDS=[1|0]
    When enabled (set to 1), list included checkdepends, depends, or makedepends. For a split package, only global dependencies corresponding to pkgbase are printed. Defaults to 0 for CHECKDEPENDS and 1 for DEPENDS and MAKEDEPENDS.

PRINTALL=[0,1]
    List all global dependencies for a pkgbase. Any encountered dependencies are printed as-is, that is, no version comparisons are done by aur-graph, nor are results limited to pkgbase encountered in specified .SRCINFO files.

EXAMPLES
aur-graph supports provides and versioned dependencies. This can be used to verify output from tools with no or limited support for such dependencies, for example aur-depends(1):

        $ mkdir build; cd build
        $ aur depends <package> | xargs -d '\n' aur fetch
        $ aur graph */.SRCINFO >/dev/null

aur-graph output is suitable as input for tsort(1), provided no cycles are present. The resulting topologically ordered list can be used to build packages in the correct order. For example:

        $ cd build
        $ aur graph */.SRCINFO | tsort | tac > deps.txt
        $ aur build -a deps.txt

To improve performance, .SRCINFO files may be concatenated before processing:

        $ cat */.SRCINFO | aur graph | tsort | tac

SEE ALSO
aur(1), aur-build(1), aur-depends(1), awk(1), tac(1), tsort(1)

AUTHORS
Alad Wenter (https://github.com/AladW)