Upgrading Multiple Machines With approx
If you have multiple Debian machines to administer, approx can help you get them updated and upgraded more quickly and using less bandwidth. approx is an archive/proxy server for Debian repositories, fetching packages on demand and caching them locally. This means that you only have to grab the package once for your entire local network: after that, other machines can get it from the approx server.Tip of the Trade: Multiple Debian machines to administer? approx can help you get them updated and upgraded more quickly, and it uses less bandwidth.
Install the package on the machine you want to use as a server, via apt-get with sudo apt-get install approx. Once it's installed, edit /etc/approx/approx.conf to set your repository names:
debian http://http.uk.debian.org/debian security http://security.debian.org/debian-security non-us http://non-us.debian.org/debian-non-US
On your client machine, edit /etc/hosts to set localproxy to the IP address of your server:
10.0.0.3 approxThen edit /etc/apt/sources.list to work via the server:
deb http://approx:9999/debian stable main non-free contrib deb-src http://approx:9999/debian etch main non-free contrib deb http://approx:9999/security stable/updates main non-free contrib deb-src http://approx:9999/security etch/updates main contrib non-free deb http://approx:9999/non-us stable main non-free contrib
Finally, restart the approx server with /etc/init.d/approx restart, and run apt-get update on the client machine. Note that initially you may get time-out problems: Try again if you need to. After the first run, subsequent runs should be much faster.
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...