On 30 April 2014 18:46, Trent W. Buck <trentbuck(a)gmail.com> wrote:
Toby Corkindale <toby(a)dryft.net> writes:
Hi,
Linux distros using the apt package management system tend to cache
downloaded packages in /var/cache/apt/archives/
If you have many very similar machines set up, then you'll almost
certainly have a HTTP proxy cache setup for them to retrieve packages
through, to reduce huge duplication of downloads.
This essentially obsoletes the /var/cache/apt/archives, though. And
when you're running dozens of virtual machines, it'd be nice to avoid
storing all these duplicate files.
What's the right way to disable it?
I see I can adjust the max size and age via the
APT::Archives::Max{Age,Size} parameters, but what about just turning
it off altogether?
PS: if you use NFS instead of HTTP (thus, file: in sources.list),
it won't cache locally.
I'm not sure how that helps, unless I'm maintaining an actual debian
mirror locally? (As opposed to just caching the much smaller subset of
files that my servers use)