Gentoo Archives: gentoo-user

From: Nick Rout <nick@×××××××.nz>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Downloading packages from a txt file
Date: Wed, 24 Aug 2005 05:41:24
Message-Id: 20050824171601.8175.NICK@rout.co.nz
In Reply to: [gentoo-user] Downloading packages from a txt file by Grant
1 Seriously this time:
2
3 How about changing your strategy to this:
4
5 Get a list of the packages you want to update from the target machine.
6 something like:
7
8 emerge -uDp world|grep ebuild|awk '{print($4)}'>packlist
9
10 take packlist to the connected machine and type:
11
12 for package in `cat packlist` ; do DISTDIR=/where/ever/i/want emerge
13 --nodeps -f =$package; done
14
15 The files will then be in /where/ever/i/want and you can put them on a
16 cd or whatever method you are using and take them away.
17
18 --nodeps will make sure that your connected host doesn't substitute its
19 own idea of what the deps are (perhaps based on different USE flags)
20
21
22 You could also probably do something like:
23
24 for package in `cat packlist` ; do DISTDIR="/where/ever/i/want" GENTOO_MIRRORS="local
25 /usr/portage/distfiles" emerge --nodeps -f =$package; done
26
27 The GENTOO_MIRRORS="local /usr/portage/distfiles" should take files from
28 the local system in preference to downloading them, which will save your
29 bandwidth, although i am not 100% sure of the syntax.
30
31 In other words let your network connected host choose where to download
32 from.
33
34 On Fri, 19 Aug 2005 08:18:08 -0700
35 Grant wrote:
36
37 > Hello, a little while ago I asked this list for help with updating a
38 > machine with no network connection. The solution was to get a txt
39 > list of the package paths and then download them on a networked
40 > machine with this command:
41 >
42 > sort -u links.txt | xargs -n 1 -i{} sh -c 'for i in {}; do wget -c $i
43 > && break; done'
44 >
45 > This worked great then, but something must have changed because that
46 > now only downloads about 12 or so files and then quits without an
47 > error. There are a lot more packages in links.txt to be downloaded.
48 > Does anyone know how to fix this?
49 >
50 > - Grant
51 >
52 > --
53 > gentoo-user@g.o mailing list
54
55 --
56 Nick Rout <nick@×××××××.nz>
57
58 --
59 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Downloading packages from a txt file Fernando Canizo <conan@××××××××××.ar>