| 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 — package dependency graphs on steroids</h1> |
| 10 |
|
| 11 |
<table> |
| 12 |
<tbody valign="top"> |
| 13 |
<tr> |
| 14 |
<td> |
| 15 |
|
| 16 |
<h3><a href="index.html">Introduction</a></h3> |
| 17 |
|
| 18 |
<h3>Example: debconf</h3> |
| 19 |
|
| 20 |
<ol start="0"> |
| 21 |
<li><a href="debconf0.html">Graph from apt-cache (for comparison)</a></li> |
| 22 |
<li><a href="debconf1.html">Basic graph (only hard dependencies and conflicts)</a></li> |
| 23 |
<li><a href="debconf2.html">Basic graph with Recommends</a></li> |
| 24 |
<li><a href="debconf3.html">Basic graph with Recommends and Suggests</a></li> |
| 25 |
<li><a href="debconf4.html">Basic graph with Recommends and showing alternatives</a></li> |
| 26 |
<li><a href="debconf5.html">Default graph (showing Recommends, alternatives and versions)</a></li> |
| 27 |
<li><a href="debconf6.html">Default graph with Suggests</a></li> |
| 28 |
<li><b>Default graph with Suggests and versioned Conflicts</b></li> |
| 29 |
<li><a href="debconf8.html">Default graph (rotated)</a></li> |
| 30 |
</ol> |
| 31 |
<hr /> |
| 32 |
|
| 33 |
<p> |
| 34 |
Note the nice relationships around <tt>whiptail</tt> etc. with again the |
| 35 |
Suggests a single arrow, but the Conflicts and Provides showing the correct |
| 36 |
individual relationships. |
| 37 |
</p><p> |
| 38 |
The versioned conflicts from <tt>perl-base</tt> are hard to miss... |
| 39 |
</p><p> |
| 40 |
This graph could be extended even further. |
| 41 |
The <tt>no-skip</tt> and <tt>show-all</tt> options can be used to also show |
| 42 |
packages that by default are excluded or for which the dependencies are not |
| 43 |
expanded. However, in a lot of cases this will only reduce the usability of |
| 44 |
the graph. (Although in the case of debconf the result with |
| 45 |
<tt>-S -VC --show-all</tt> is still quite nice.) |
| 46 |
</p><p> |
| 47 |
It is more likely that you'll want additional packages to be excluded or not |
| 48 |
expanded because the graph is too big or complex. The contents of a graph can |
| 49 |
be limited by: |
| 50 |
</p> |
| 51 |
<ul> |
| 52 |
<li> |
| 53 |
including less information, for example by not showing recommended packages |
| 54 |
or conflicts, or using the <tt>show-installed</tt> option; |
| 55 |
</li><li> |
| 56 |
limiting the depth of the graph (note that with limit lower than 3 or 4 the |
| 57 |
result will probably not be very useful); |
| 58 |
</li><li> |
| 59 |
adding packages to one of the configuration files in <tt>/etc/debtree/</tt>; |
| 60 |
</li><li> |
| 61 |
some combination of these methods. |
| 62 |
</li> |
| 63 |
</ul> |
| 64 |
|
| 65 |
<p> |
| 66 |
Some packages, especially meta packages like <tt>kde</tt>, have such a large |
| 67 |
number of dependencies that it is almost impossible to produce a useful graph. |
| 68 |
</p> |
| 69 |
|
| 70 |
</td> |
| 71 |
<td width="10" /> |
| 72 |
<td width="400"> |
| 73 |
|
| 74 |
<p><tt><font size="-1"> |
| 75 |
$ debtree --with-suggests --versioned-conflicts debconf |
| 76 |
</font></tt></p> |
| 77 |
<hr /> |
| 78 |
<img src="thumbs/debconf7.png" alt="Dependency graph for debconf" /> |
| 79 |
<hr /> |
| 80 |
<table> |
| 81 |
<tr> |
| 82 |
<td>Generated .dot file:</td> |
| 83 |
<td><a href="debconf7.dot" target="_blank">DOT</a></td> |
| 84 |
</tr><tr> |
| 85 |
<td>Full-sized images:</td> |
| 86 |
<td><a href="debconf7.ps" target="_blank">PS</a> | PNG | <a href="debconf7.svg" target="_blank">SVG</a></td> |
| 87 |
</tr> |
| 88 |
</table> |
| 89 |
<p><font size="-1"><a href="aptitude7.html">Equivalent graph for aptitude</a></font></p> |
| 90 |
|
| 91 |
</td> |
| 92 |
</tr> |
| 93 |
</tbody> |
| 94 |
</table> |
| 95 |
|
| 96 |
</body> |
| 97 |
</html> |