5d53bb85 |
1 | #!/bin/bash |
2 | set -e |
3 | |
4 | url_base="http://ports.ubuntu.com/ubuntu-ports/" |
5 | paths=`apt-cache show "$@" | grep '^Filename:' | awk '{print $2}'` |
6 | for p in $paths; do |
7 | base=`basename $p` |
8 | wget -nv "${url_base}${p}" |
9 | echo "exctacting $base" |
10 | dpkg-deb -x "$base" . |
11 | done |