Merge pull request #565 from rafasc/ra/fetch-log-format
[aurutils.git] / man1 / aur-graph.1
blob7bbe90153c2327091d46e1c0e5a18bf9a510c4b5
1 .TH AUR-GRAPH 1 2018-05-05 AURUTILS
2 .SH NAME
3 aur\-graph \- print package/dependency directed graph
5 .SH SYNOPSIS
6 .SY "aur graph" .SRCINFO [.SRCINFO...]
7 .YS
9 .SH DESCRIPTION
10 .B aur\-graph
11 takes package information from
12 .B. SRCINFO
13 files and prints them as
14 .I pkgbase<TAB>dependency
15 pairs. Any dependencies are converted from
16 .B pkgname
18 .BR pkgbase ,
19 or skipped if absent from the input.
21 .SH EXAMPLES
22 The paired output is suitable as input for
23 .BR tsort (1),
24 provided no cycles are present. For example:
25 .EX
27   $ cd ~/.cache/aurutils/sync
28   $ aur graph */.SRCINFO | tsort | tac
30 .EE
32 .B .SRCINFO
33 files may be concatenated before processing to improve performance:
34 .EX
36   $ cat */.SRCINFO | aur graph | tsort | tac
38 .EE
40 .B provides
41 and versioned dependencies are fully supported. This
42 may be used to verify dependency chains from
43 .BR aur\-depends (1).
44 For example:
45 .EX
47   aur sync --print <package> | xargs printf '%s/.SRCINFO\n' | xargs aur graph
49 .EE
51 .SH SEE ALSO
52 .BR aur (1),
53 .BR aur\-depends (1),
54 .BR aur\-sync (1),
55 .BR awk (1),
56 .BR tsort (1)
58 .SH AUTHORS
59 .MT https://github.com/AladW
60 Alad Wenter
61 .ME
63 .\" vim: set textwidth=72: