Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have setup one computer on our network as the file server. Because Internet here in Tanzania is both slow and expensive I would like that one system to download all the updates and then the other 10 computers on the network to get those update files from the server. I'm a bit of a noobie to Ubuntu, but really want to learn how to get this working smoothly so as to help other NGOs and schools here in Tanzania. Brendon

share|improve this question
    
possible duplicate of Best way to cache apt downloads on a LAN? –  Lekensteyn Jun 28 '11 at 19:25
add comment

2 Answers

Great news, this is a simple setup.

1) On the system you want to host all of the files, install "squid-deb-proxy"

2) On all of the systems (including the system from step 1), install "squid-deb-proxy-client"

That's it, now all of your clients will use the one system to get updates/install packages, and if that system doesn't have the file it (the server) will go out and get the file.

share|improve this answer
add comment

On your server, install the package apt-cacher-ng.

If you have a firewall, open port 3142 to client machines.

On each client, run

 echo "Acquire::http { Proxy \"http://<serveripaddress>:3142\"; };" | sudo tee /etc/apt/apt.conf.d/02proxy

to enable the caching.

If you need to disable caching on a client for some reason, you can simply run

sudo rm /etc/apt/apt.conf.d/02proxy
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.