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


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.

| improve this answer | |

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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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