Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently running Ubuntu 12.04. How would I go about caching all downloads? And if Linux does not have this built in, then what are good tools for this?

Please note that this isn't a browser related question, I want any program attempting to access the net to retrieve cached data instead. Also, I am not running a server; I want to do this with a single home PC.

share|improve this question
This sounds very difficult or impossible do to for "all internet downloads", although it should be possible if you limit your scope (ie. only http requests) – lk- Aug 22 '12 at 19:15
@lk I'm aiming at caching http and apt-get requests – aggregate1166877 Aug 22 '12 at 19:26
I found a program named apt-proxy. Its purpose is specifically to cache apt downloads on a network. It can be found here – aggregate1166877 Aug 12 '13 at 7:34
up vote 3 down vote accepted

I think you are looking for a caching web proxy like polipo or squid. Although it's called a proxy-server you don't need a separate system to run it. It just means that it is a special software that can serve a client a particular service (In this case caching already downloaded data). A client is also a software that can run on the same system as the server or request the service remotely.

In your case i recommend polipo. You can find it in the ubuntu repository. Just install it and set the proxy-server in your browser settings to


of course you can request data with other software than a browser over the proxy, too.

share|improve this answer
I tried polipo, and it works like a charm. Thanks :) – aggregate1166877 Aug 22 '12 at 19:54

Your Answer


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.