**這個頁面不需註冊/登入也可以直接編輯的內容喔**
聚會期間會先用 http://pad.ubuntu-uk.org/h4 來打字,隔天再整理更新至此頁
honki:
心得分享:大家來看賈伯斯
Mat:
不需修改 /etc/apt/sources.list 就可以下載 apt-get source 程式碼
pkgname="$1"
debsrc="$2"
PKGDIR="$ROOT/$pkgname"
LISTS="$ROOT/tmp/lists"
STATUS="$ROOT/tmp/status"
CACHE="$ROOT/tmp/cache"
SOURCELIST="$ROOT/tmp/sources.list"
install -d $PKGDIR
install -d $CACHE/archives/partial
install -d $LISTS/partial
install -d $(dirname $STATUS) && touch $STATUS
install -d $(dirname $SOURCELIST) && echo "$debsrc" > $SOURCELIST
APT_OPTIONS="-qq"
APT_OPTIONS="$APT_OPTIONS -o Dir::State::Lists=$LISTS"
APT_OPTIONS="$APT_OPTIONS -o Dir::State::Status=$STATUS"
APT_OPTIONS="$APT_OPTIONS -o Dir::Etc::SourceList=$SOURCELIST"
APT_OPTIONS="$APT_OPTIONS -o Dir::Cache=$CACHE"
APT_OPTIONS="$APT_OPTIONS -o APT::Get::AllowUnauthenticated=true"
apt-get $APT_OPTIONS update
apt-get $APT_OPTIONS source $pkgname