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

When juju Install juju fetches packages for a unit, does it make use of the host system's APT cache? I'm asking this because in my case, bandwidth is limited and I am doing some charm development.

It is not really an option to have Juju continuously fetching packages every time I want to test a charm. Is there some way of having Juju cache the packages it fetches so that it doesn't have to download them all each time?

share|improve this question
up vote 4 down vote accepted

If you're using juju locally then it automatically caches debs using squid-deb-proxy.

Juju has an option to allow you to use other apt proxies on your network, see:

You basically define it in your ~/.juju/environments.yaml for the specific environment, like so:

share|improve this answer
Great, thanks! After the first couple of deploys, I noticed decreased network usage so I assumed something was up :) – Nathan Osman Nov 20 '11 at 20:57

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.