使用 debtree 產生目前套件相依情形
~$ dpkg --get-selections | awk '{ print $1 }' > etch.pkg.lst
~$ for i in `cat etch.pkg.lst `; do debtree --no-recommends --no-alternatives --no-provides --no-versions --no-conflicts $i; done > etch.pkg.debtree
~$ cat > etch.pkg.debtree.dot << EOF
digraph "etch" {
rankdir=LR;
node [shape=box];
EOF
~$ cat etch.pkg.debtree | grep -v graph | grep "" | sort | uniq | grep "color=blue" >> etch.pkg.debtree.dot
~$ cat etch.pkg.debtree | grep -v graph | grep "" | sort | uniq | grep "color=purple" >> etch.pkg.debtree.dot
~$ echo "}" >> etch.pkg.debtree.dot
~$ dot -Tsvg -o etch.svg etch.pkg.debtree.dot
