|
发表于 2005-10-9 22:31:20
|
显示全部楼层
Use apt-proxy:
#apt-get install apt-proxy
apt-proxy starts up automatically installation. (See Apt-proxy home page: http://apt-proxy.sourceforge.net)
Next, edit the add_backend/debian/ section of /etc/apt-proxy/apt-proxy.conf so that it points to geographically close package mittors. (U may check and see http://debian.org/mirror/list for a list of package mirrors.)
Now edit /etc/sources.list on the client machines to point to the apt-peoxy server.
The default port is 9999:
deb http://ip-or-hostname:9999/main stable main contrib non-free
deb http://ip-or-hostname:9999/non-US stable/non-US main contrib non-free
deb http://ip-or-hostname:9999/security stable/updates main contrib non-free
Run apt-get update on the client machines,and u're in bussiness.Every time a client machine on your LAN installs a new program,it will be cached on the apt-proxy server.Subsequent requests for the same package will bu served bu the lical cache.
Most of the default settings in /etc/apt-proxy/apt-proxy.conf , other than the package source, are just fine,except fot one thing:the"update" frequency,which specifies how often to download the latest packages list ,This is the default:
# Maximum frequency of Packages/etc. update from back end(minutes)
# Keep high to speed things up.
BACKEND_FREQ=240
I set mine to 1440;once a day is plenty. There's really not so much happening that more frequent update are nessary. The main reason to check as often as once a day is to stay on top of security updates. |
|