Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am using VirtualBox with Ubuntu 12.04 as the host and CentOS 6.3 as the guest OS. apt-cacher-ng is configured on the host OS for caching the packages.

I did a bit of googling, but could not figure out how to cache the CentOS guest packages on the Ubuntu host using apt-cacher-ng. How to configure this?

Also, what is the preferred approach to cache the packages in CentOS?

share|improve this question
Are you aware that CentOS uses Yum repositories? It's a completely different design from APT repositories, so I doubt that you'll get this to work. Would setting up a regular HTTP proxy such as Squid also do the job for you? – gertvdijk Feb 1 at 17:10
CentOS doesn't use apt, at least not by default, does it? If so, apt-cacher-ng isn't going to help you. You'll need to start with the CentOS method to cache packages, and then see about getting that method to work on Ubuntu. Or alternatively, take a look at more general web caching with squid. – Robie Basak Feb 1 at 17:10
apt-cacher-ng works for caching rpm's out of the box, but is supposedly buggy. I'm experimenting with it now. I did find that you have to tell your CentOs install to use the proxy: edit your /etc/yum.conf file to include the line proxy=yourhost:yourport – SW1 Apr 7 at 23:34

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.