Re: reutilizing downloaded packages
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 11 Feb 2004 00:20:42 +0100
Jan Suchy <moose@abu.ath.cx> wrote:
> Sharing/copying /var/cache/apt/archives is possible.
> But how to make apt see all those new packages?
> apt-get update does this by fetching package lists
> from the internet. In your present solution you do
> apt-get update on both machines and that's slow.
> I see two solutions for this.
>
> #1 hack: If you use the same sources.list on both machines
> copy package lists between the machines along with
> the debs. It should be in /var/cache/apt/pkgcache and
> var/cache/apt/srcpkgcache. But I didn't ever try this.
> There could be more files that you need sync.
>
> #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!
rrs
- --
Ritesh Raj Sarraf
RESEARCHUT (www.researchut.com)
Happy GNU/Linux user since 1998
- ------
We are all born mad. Some remain so.
-- Samuel Beckett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAKmRZ4Rhi6gTxMLwRAlCLAKCgNEugZ7eK3Ht/mFlLJ9KMgXRYegCfbRVl
3HEpNtC95CjwoSqHgdhxZYo=
=0crv
-----END PGP SIGNATURE-----
Reply to: