copying *.deb files into /var/cache/apt/archives ?

Marius Gedminas marius at pov.lt
Tue Jul 27 19:55:46 UTC 2010


On Wed, Jul 28, 2010 at 05:45:35AM +0800, Goh Lip wrote:
> On 07/27/2010 09:06 PM, Mihamina Rakotomandimby wrote:
> >> a24061 at ducksburg.com :
> >> If I do a distribution upgrade on my machine at work, then copy the
> >> /var/cache/apt/archives/*.deb files onto a USB hard drive, take it
> >> home, and copy them into /var/cache/apt/archives there (where the
> >> network connection is much slower), would the distribution upgrade
> >> successfully pick them up (to save downloading time)?
> >
> > When I made that, it worked.
> >
> 
> Strange that it could work just like that.

No it isn't.  That's the way apt works.

> (make sure nothing is 
> downloaded). Adam, if that works out as Mihamina said, would appreciate 
> if you let us know, or others could confirm this as well.

I've been doing this for years, on Debian and on Ubuntu machines.

> If not, then at the directory where the deb files are copied to,
> sudo dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz

There's never a Packages.gz in /var/cache/apt/archives; it's just a
bunch of files.

Marius Gedminas
-- 
"question = (to) ? be : !be;" -- Shakespeare
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100727/eae90957/attachment.sig>


More information about the ubuntu-users mailing list