Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

Specifically, if I have a small virtual LAN with multiple VMs of each different distro - say three CentOS VMs, two Debian VMs, and assorted Ubuntu VMs - can Squid safely cache the updates for each with out interfering with one another?

I'm aware of squid-deb-proxy for Ubuntu, but I'm looking for something a little more general purpose - I think.

share|improve this question

Well... for what its worth: yes, Squid can easily be used to cache updates for RH-based distros such as CentOS, Fedora and Scientific Linux.

All that is required after initial setup of squid on the server itself is to point the client machines at the server by editing /etc/yum.conf and adding a line at the top that reads:


(insert ip/port numbers appropriate for your setup).

Some additional fine-tuning of squid may be desired in order to adjust the disk cache size, retention times, etc.

share|improve this answer
can you detail the specific squid configuration needed to cache rpm and other files? – Frederick Nord Sep 14 '15 at 9:32

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.