Changes between Version 9 and Version 10 of jazz/08-11-11


Ignore:
Timestamp:
Nov 12, 2008, 9:33:06 PM (16 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/08-11-11

    v9 v10  
    2525 *
    2626
    27 == debtree ==
    28 
     27== Debian ==
     28
     29 * 使用 debtree 產生目前套件相依情形
    2930{{{
    30 ~$ sudo dpkg --get-selections > etch.pkg.lst
     31~$ dpkg --get-selections | awk '{ print $1 }' > etch.pkg.lst
    3132~$ 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
     34digraph "etch" {
     35       rankdir=LR;
     36       node [shape=box];
     37EOF
     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
    3342}}}
    3443{{{