On Mon, 18 Jan 2016 15:28:27 +0100, Raffaele BELARDI wrote:

> > Download the latest portage snapshot on B
> > Unpack it on A
> > Run emerge -ufp @world on A and capture the output
> > Use that on B to download the files
> > Copy them back to A and emerge -u @world
> >
> > That avoids the use of a chroot altogether but involves two round
> > trips across the sneakernet. You could possible save some of that by
> > transferring the portage snapshot and download list as email
> > attachments, assuming A has email.

> Yes, I used that procedure in the past but it requires more human
> effort so I'd prefer the chroot approach; also I found that sometimes
> the list of files downloaded by system B was not complete and I had to
> further iterate the procedure. At the time I assumed it was due to the
> two systems being based on different architectures (~amd64 and ~x86),
> but did not really spend much time investigating.

The architecture is irrelevant, the fetching machine doesn't have to run
Gentoo, or even Linux you are simply giving it a list if URLs to fetch.
The output from emerge -f gives multiple URLs for each file. Instead of
taking only the first one, whch may be the cause of the failures, there
is an option to wget to not download duplicates, so you can pass it the
full list and it keeps trying until it succeeds.

As for the effort, you could automate part of the process with cron and
procmail scripts. Your current approach also requires more effort than
you are currently giving it, that's why it doesn't work :(


-- 
Neil Bothwick

Actually, Microsoft is sort of a mixture between the Borg and the Ferengi.

Attachment: pgpBoXTG1IyEI.pgp
Description: OpenPGP digital signature

Reply via email to