Question: A local debian mirror?
Posted by cpankonien on Wed 7 Sep 2005 at 08:32
I'd like to install a local Debian mirror on my network so that as I experiment with different things (and break them) I can reinstall faster, as well as make new package installs that much faster (new gigabit switch and nics!)
I've tried apt-mirror but this keep getting an error on startup, and the docs are a little thin. Any suggestions?
you could try apt-proxy. It is quite simple to install and configure.
You just need to change your /etc/apt/sources.list on client, to point to the apt-proxy machine, and it's done :)
[ Parent | Reply to this comment ]
It saved me loads of time and bandwidth and I believe it's a must have for any network with more than a couple of Debian machines.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
I have a bunch of debian machines and i keep my local debian mirror with apt-proxy and apt-move.
although my question is do you have any deb package of your own and do you want to put them in your local deb mirror. if so try using apt-ftparchive to build your local deb mirror properly
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View Steve's Scratchpad | View Weblogs ]
[ Parent | Reply to this comment ]
[ Send Message | View dopehouse's Scratchpad ]
apt-get install apt-get install apt-proxyand tune the config a little bit. My '/etc/apt-proxy/apt-proxy-v2.conf' (without comments):
[DEFAULT]
address = 192.168.0.187
port = 9999
min_refresh_delay = 1h
complete_clientless_downloads = 1
debug = all:4 db:0
timeout = 15
cache_dir = /home/aptproxy
cleanup_freq = 1d
max_age = 120d
max_versions = 1
[debian]
backends =
http://ftp2.de.debian.org/debian
http://ftp.de.debian.org/debian
http://ftp.us.debian.org/debian
ftp://ftp.uk.debian.org/debian
[debian-non-US]
backends =
http://ftp.de.debian.org/debian-non-US
http://ftp.uk.debian.org/debian-non-US
ftp://ftp.uk.debian.org/debian
[security]
backends =
http://ftp2.de.debian.org/debian-security
http://security.debian.org/debian-security
You can add or remove some servers. I'm from germany so I use the fpt2.de.* mirrors. An Important entry is the security entry, becaus it mirrors the security patches too. The 'adress' entry at the beginning is the apt-proxy ip-adress. Know my '/etc/apt/sources.list': deb http://192.168.0.187:9999/debian/ sarge main non-free contrib deb-src http://192.168.0.187:9999/debian/ sarge main non-free contrib deb http://192.168.0.187:9999/security sarge/updates main contrib non-freeThats all. Now make
apt-get update apt-get upgradeand everything looks like before, but if you make updates on more than just one machine, than you can see the ghosts of debian and apt working.
*Bad english, I know*
[ Parent | Reply to this comment ]
Following this guide. http://www.interparse.com/debianmirror/
Perhaps you could post what error you get, and I'll be able to help.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
Try building a Partial Debian GNU/Linux Mirror using apt-move etc.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
You also can get help on official forum: http://sourceforge.net/forum/forum.php?forum_id=197335
[ Parent | Reply to this comment ]
Change the settings of Squid to use a big cache size, change the maximum file size to keep (to be sure the big packages are kept) and be sure that Squid hold the packages long enough.
Of course, use everywhere the same repository and the download is at the same speed as the LAN speed!!!
linox.be
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Send Message | View dopehouse's Scratchpad ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
--For configuring LVM on non-Suse systems, I highly recommend Webmin and webmin-lvm packages. Best interface I've seen outside of Yast.
[ Parent | Reply to this comment ]