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-seperated) (pkgbase) from .SRCINFO files provided on the command-line. If no files are specified, input is taken from stdin.

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

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

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

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

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