close

有是您的組織單位裡不止一台 Debian Linux,每一台都要連外更新又浪費頻寬

debmirror 這個套件,可以讓您的其中一台 Debian Linux Server 成為 APT Source Site。

 

# apt-get install debmirror

# gpg --keyring /usr/share/keyrings/debian-archive-keyring.gpg --export| gpg --import

or

# gpg --keyserver keyring.debian.org --recv-keys 6070D3A1

# cp /usr/share/keyrings/debian-archive-keyring.gpg ~/.gnupg/trustedkeys.gpg

將底下指令加入排程就可以定期 mirror

debmirror -p -v -a i386 -d lenny -e rsync -r :debian -h ftp.tw.debian.org /var/www/debian
debmirror -p -v -a i386 -d lenny/updates -e http -r /debian-security -h security.debian.org /var/www/security
debmirror -p -v -a i386 -d lenny/volatile -e http -r /debian-volatile -h volatile.debian.org /var/www/volatile

修改 apt source.list

deb http://localhost/debian/ lenny main non-free contrib
deb-src http://localhost/debian/ lenny main non-free contrib

deb http://localhost/security/ lenny/updates main contrib non-free
deb-src http://localhost/security/ lenny/updates main contrib non-free

deb http://localhost/volatile lenny/volatile main contrib non-free
deb-src http://localhost/volatile lenny/volatile main contrib non-free


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 James Wu 的頭像
    James Wu

    James's Privacy Corner

    James Wu 發表在 痞客邦 留言(0) 人氣()