Debian maintaining multiple servers to date with apt-proxy

When running a local network with Debian machines running on either servers or clients, the upgrade and installation process becomes slow, either by the bandwidth and other factors. If so apt-proxy can help us.

Apt-proxy

Is a daemon based on Python, which saves a copy of all requests apt to go through it, and then save a copy of the files locally, so only need to download the file. Deb once.

Installation is simple, type the following command on the machine you want to use as a proxy server, the old routine:

  apt-get install apt-proxy 

After installation is complete we will have a daemon listening on port 9999.

Downloaded packages are stored by default in / var / cache / apt-proxy, this and many other options, including Internet servers of whom downloaded packages, and the port interface through which apt-proxy listens, you can set in / etc/apt-proxy/apt-proxy-v2.conf.

The only change is to be set up / etc / apt / sources.list for all machines running Debian can update and install packages from our server.

file: / etc / apt / sources.list
  deb http://172.21.1.131:9999/debian lenny main contrib non-free 
  deb-src http://172.21.1.131:9999/debian lenny main contrib non-free 

  deb # http://ftp.debian.org/debian/ lenny main contrib non-free 
  # deb-src http://ftp.debian.org/debian/ lenny main contrib non-free 

  # Multimedia w32codecs 

  lenny main deb http://www.debian-multimedia.org 

  deb # http://ftp.debian.org/debian/ etch main contrib non-free 
  # deb-src http://ftp.debian.org/debian/ etch main contrib non-free 

  # deb http://security.debian.org/ etch / updates main contrib non-free 
  # deb-src http://security.debian.org/ etch / updates main contrib non-free 

As you can see, the file from previous editing what I sarge, then and now etch lenny / testing and etch comment. Here we must pay attention to the first two lines, which upgraded my system from a repository of my LAN.

Now, the next time we update the rest of machines with apt-get update and apt-get upgrade (or aptitude) should be the local network speeds to 100Mbps.

"... And I'm virtually Braindead, Sociability ..."

Popularity: 10% [?]