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

Re: reutilizing downloaded packages



On Wed, 11 Feb 2004 22:50:25 +0530
Ritesh Raj Sarraf <rrs_rhlist@softhome.net> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wed, 11 Feb 2004 00:20:42 +0100
> Jan Suchy <moose@abu.ath.cx> wrote:
<snip>
> > #2 use apt-proxy. It caches both debs and package lists.
> >     apt-get update is then less painful because it
> >     downloads lists from the internet only on first use.
> > 
> > You're right that apt-proxy stores all downloaded packages
> > in the same tree directory structure as debian archives use.
> > 
> > But there's no need to setup that manually. Apt-proxy builds/
> > fills/updates/deletes it all automatically. You just need to
> > properly configure it. You can check my config at http://abu.ath.cx
> > if you're interested.
> 
> well, that's ofcourse right setting up apt-proxy. But I can't just
> invest my > 3gb of disk space just to mirror. What I think of as a
> solution is I run apt-get update on both the machines and then
> download the packages on one of them. Then I only share my
> /var/cache/apt/archives folder through NFS to the client. Then when I
> hit apt-get upgrade I hope it would just skip the packages which have
> already been downloaded. Probably it would only download additional
> packages required for the other machine.*NOTE* There's only one thing
> to note that I think, i.e. that if in between the time if the packages
> change of Debian's site, we'll have to do a re-update and
> re-download.. Correct me if I've mistaken!

That's what Jan was saying. Apt-proxy should not use any more disk space
than you already are by sharing your /var/cache/apt/archives folder.
Apt-proxy will actually save you time and bandwidth as it will also
share the package lists, in addition to previously downloaded files.

Yes, if the package lists and/or packages change between the update on
one machine and the update on the other machine (pretty rare for it to
change that fast), then you will have to re-update and re-download, but
this is something you would have to do regardless of whether you're
sharing your /var/cache/apt/archives directory or simply using
apt-proxy. 

In summary, apt-proxy takes a lot of the work out of sharing previously
downloaded files, while saving time and bandwidth. 

HTH,
Jacob

----- 
GnuPG Key: 1024D/16377135

Computers are like air conditioners -- they stop working properly if you
open Windows

Attachment: pgpLA0o7e9V5S.pgp
Description: PGP signature


Reply to: