Gentoo Archives: gentoo-user

From: Alan McKinnon <alan@××××××××××××××××.za>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] howto update portage/packages without an internet connection
Date: Fri, 18 Aug 2006 09:33:03
Message-Id: 1155893303.6358.43.camel@localhost.localdomain
In Reply to: Re: [gentoo-user] howto update portage/packages without an internet connection by Neil Bothwick
1 On Fri, 2006-08-18 at 08:51 +0100, Neil Bothwick wrote:
2 > On Thu, 17 Aug 2006 22:48:04 -0300, Bira wrote:
3 >
4 > > Get a friend with a Gentoo machine and an internet connection to do an
5 > > "emerge --fetchonly" in the packages you want and burn you a CD with
6 > > the zipped files Portage will download. Then copy the files over to
7 > > your /usr/portage/distfiles directory and emerge normally.
8 >
9 > That will only work for certain if your friend has an identical setup,
10 > both in terms of USE flags and packages installed.
11
12 The best way to do this is to use emerge to tell you exactly what
13 sources it wants to download, get this info into a file then use wget on
14 a different machine to read this file and download the sources:
15
16 emerge -pvf world 2>&1 > emerge.txt
17
18 gives a list of files to be downloaded. Bash this file into shape with
19 something like
20
21 cat emerge.txt | cut -f1 -d' ' | grep -e '^http://' | sort | \
22 uniq > emerge1.txt
23
24 Use wget on the other machine to do the downloads:
25
26 wget -c -i emerge1.txt
27
28 copy these downloads to /usr/portage/distfiles on the gentoo machine and
29 run
30
31 emerge -avuND world
32
33 It might even succeed! I do this, as the company pipe is only 512k and
34 it's maxed out during office hours. To be polite to everyone else I
35 download after hours using the above and a neat cron job. It's more work
36 for me, but hey, at least I get to keep my friends at work :-)
37
38 alan
39
40
41 --
42 gentoo-user@g.o mailing list