Creating a repository of Debian packages
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% [?]







on 04 Jul 2007 at 8:44 am # Vio
Hello friend, a question ... this will serve only option also with apt or aptitude? I say the following:
"It's a Python-based daemon, which keeps a copy of all requests apt to pass through the"
The truth that I have the system installed and all I got this via aptitude ... certainly not going to be that only works with apt, you do anything else ... just download the packages that install or after that I also recorded and got off before? I will investigate, but I wonder if you've already tried ... saludos.
[Reply]
on 04 Jul 2007 at 10:31 am # fher98
He saw that such
Apt-proxy will work with dpkg, apt or aptitude for it is in the file where all these sources will read their repositories. Solo almacena en el cache copia de los programas que has bajado a traves de el, los anteriores no cuenta.
I used a lot to upgrade servers in my office and my home, instead of 300 megs of downloading updates for each machine, down once in the server apt and upgrade the rest of there.
[Reply]