Changes between Version 9 and Version 10 of jazz/08-11-11
- Timestamp:
- Nov 12, 2008, 9:33:06 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/08-11-11
v9 v10 25 25 * 26 26 27 == debtree == 28 27 == Debian == 28 29 * 使用 debtree 產生目前套件相依情形 29 30 {{{ 30 ~$ sudo dpkg --get-selections> etch.pkg.lst31 ~$ dpkg --get-selections | awk '{ print $1 }' > etch.pkg.lst 31 32 ~$ for i in `cat etch.pkg.lst `; do debtree --no-recommends --no-alternatives --no-provides --no-versions --no-conflicts $i; done > etch.pkg.debtree 32 ~$ cat etch.pkg.debtree | grep -v graph | sort | uniq > etch.pkg.debtree.dot 33 ~$ cat > etch.pkg.debtree.dot << EOF 34 digraph "etch" { 35 rankdir=LR; 36 node [shape=box]; 37 EOF 38 ~$ cat etch.pkg.debtree | grep -v graph | grep "" | sort | uniq | grep "color=blue" >> etch.pkg.debtree.dot 39 ~$ cat etch.pkg.debtree | grep -v graph | grep "" | sort | uniq | grep "color=purple" >> etch.pkg.debtree.dot 40 ~$ echo "}" >> etch.pkg.debtree.dot 41 ~$ dot -Tsvg -o etch.svg etch.pkg.debtree.dot 33 42 }}} 34 43 {{{