[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pbuilder - how to use existing apt cache?

> > Since I'm behind a 64-k ISDN line, I would like pbuilder to use cached
> > packages from /var/cache/apt/archives, if available instead of
> > unconditionally downloading all the stuff. But unfortunately,
> > /var/cache/apt/archives doesn't seem to be accessible from within the
> > chroot.
> > 
> > Well, I could run dpkg-scanpackages on /var/cache/apt/archives and make
> > the files available through a local web server which then could be added
> > to the pbuilderrc as OTHERMIRROR. But wouldn't pbuilder try MIRRORSITE
> > first anyway, so that OTHERMIRROR remains completely unused?
> > 
> > Is there a 'canonical' way to achive what I'm asking for?
> I simply use APTCACHE=/var/cache/apt/archives/, it copies the contents
> into the chroot first and copies back the newly downloaded debs.

I'll add this into the FAQ section of the documentation. 
I initially thought it should be obvious, but apparently isn't.


Reply to: