Debian Codegraph @

html/usage4.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <title>debtree - Package dependency graphs</title>
6 </head>
7
8 <body>
9 <h1>debtree &mdash; package dependency graphs on steroids</h1>
10
11 <table>
12 <tbody valign="top">
13 <tr>
14 <td>
15 <h3><a href="index.html">Introduction</a></h3>
16
17 <h3>Advanced usage examples</h3>
18
19 <ol>
20 <li><a href="usage1.html">Create a build dependency graph</a></li>
21 <li><a href="usage2.html">Visualize what would happen when installing a package</a></li>
22 <li><a href="usage3.html">Dependencies on virtual packages</a></li>
23 <li><b>Reverse dependencies</b></li>
24 </ol>
25 <hr />
26
27 <p>
28 A reverse dependency graph shows why a package is installed: what other
29 packages depend on it.
30 </p><p>
31 This graph shows only installed packages (the <tt>-I</tt> option), with
32 the reverse dependencies in light blue. By default only one level of reverse
33 dependencies is displayed. In this example three levels are included as a
34 result of using the option <tt>--rdeps-depth=3</tt>. To show <i>only</i>
35 reverse dependencies, add the option <tt>--max-depth=0</tt>.
36 </p><p>
37 The colors of the arrows have the same meaning as for "forward" dependencies.
38 The inclusion of Recommends is controlled by the <tt>--no-recommends</tt>
39 option; displaying reverse dependencies of type Suggests is not supported.
40 </p><p>
41 The graph will always include all <i>direct</i> reverse dependencies
42 (both on the package itself and all virtual packages provided by it).
43 In the example some packages depend on <tt>apt</tt> itself, and others
44 on <tt>libapt-pkg-...</tt>.
45 </p><p>
46 As shown for <tt>debconf</tt>, the number of <i>indirect</i> reverse
47 dependencies that gets displayed, is by default limited to five, but that
48 can be changed by using the option <tt>--max_rdeps=<i>n</i></tt>. When
49 the individual packages are not shown, the number of packages per type of
50 dependency is shown next to their arrows.
51 </p><p>
52 It is possible to generate graphs that show all reverse dependencies,
53 both installed and not installed, but be warned that such graphs are
54 likely to explode in size.
55 </p><p>
56 Additional examples can be found in
57 <a href="http://alioth.debian.org/~fjp/log/posts/debtree-next_-_More_steroids.html">the author's blog</a>.
58 </p>
59
60 </td>
61 <td width="10" />
62 <td width="400">
63
64 <p><tt><font size="-1">
65 $ debtree -I --rdeps-depth=3 apt
66 </font></tt></p>
67 <hr />
68 <img src="thumbs/usage4.png" alt="Dependency graph for pidentd" />
69 <hr />
70 <table>
71 <tr>
72 <td>Generated .dot file:</td>
73 <td><a href="usage4.dot">DOT</a></td>
74 </tr><tr>
75 <td>Full-sized images:</td>
76 <td><a href="usage4.ps" target="_blank">PS</a>&nbsp;|&nbsp;PNG&nbsp;|&nbsp;<a href="usage4.svg" target="_blank">SVG</a></td>
77 </tr>
78 </table>
79
80 </td>
81 </tr>
82 </tbody>
83 </table>
84
85 </body>
86 </html>