I have an installation service in a central data centre and proxies in other data centres and need to pre-populate those proxies with the contents of the installation.

What's the best way to do this?

I've been thinking of writing a script along the lines of:

  • debootstrap - with --include option to include all additional packages above and beyond the minimal setup, run this once inside each DC to populate the proxy.

  • apt-proxy-import - apt-proxy can add debs directly into the cache, take them from an existing installs /var/cache/apt/archives dir.

  • Take the cache miss and have a slow first install?

  • As part of the site cleanup your question has been flagged, are you still having the issue or resolved it yourself with the script you suggest? – Mark Rooney Feb 25 '12 at 9:14

Have you considered using apt-proxy or apt-cacher-ng instead of squid? To make use of squid's caching, you could allow either of those through squid to the internet. All you'd have to do is to point your /etc/apt/sources.list to the correct apt-proxy/apt-cacher-ng servers. Ubuntu has an excellent wiki page on apt-proxy - https://help.ubuntu.com/community/AptProxy

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.