dpkg --get-selections > mylist
dpkg --set-selections < mylist
get_pkg
#!/bin/bash
PACKAGE=$1
URI=`apt-cache show $PACKAGE | grep "Filename:" | cut -f 2 -d " " | grep "pool/main"`
wget http://192.168.123.12:3142/debian/$URI
夢想家活一身, 學無限~ 夢不息, 心不倦~ |
|
offline install
dpkg --get-selections > mylist dpkg --set-selections < mylist
get_pkg
»
|