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由 datahunter 在 日, 06/11/2011 - 00:12 發表
dpkg --get-selections > mylist dpkg --set-selections < mylist
get_pkg
xargs由 datahunter 在 日, 06/11/2011 - 00:08 發表最後更新: 2022-08-01 介紹xargs reads items from the standard input, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is /bin/echo)
»
nagios - nrpe由 datahunter 在 六, 05/11/2011 - 22:18 發表最後更新: 2018-05-29 介紹
»
![]() |