1 |
Thank you all this was realy great; I will try to rebuild the portage |
2 |
tree with the script that was speaked out and download the files I |
3 |
need using the package list; I believe that this will do all the work; |
4 |
if it got right i will send a message; Thanks, Allan |
5 |
|
6 |
On 9/28/05, Nick Rout <nick@×××××××.nz> wrote: |
7 |
> |
8 |
> On Wed, 28 Sep 2005 01:08:53 -0300 |
9 |
> Norberto Bensa wrote: |
10 |
> |
11 |
> > Dave Nebinger wrote: |
12 |
> > > Unfortunately Allen I don't remember exactly what the script was or |
13 |
> > > where I got it, but I think there's a reference to it in the Gentoo |
14 |
> > > Wiki. |
15 |
> > |
16 |
> > It is not that hard actually: |
17 |
> > |
18 |
> > comm -13 <(ls /usr/portage/distfiles | sort | uniq) \ |
19 |
> > <(for i in $(emerge -pufv world 2>&1 | grep ^http | awk '{ print $1 }') |
20 |
> > do |
21 |
> > echo $(basename $i) |
22 |
> > done | sort | uniq) |
23 |
> > |
24 |
> > That will print the files you'll need to download. Note however that it will |
25 |
> > only print the filenames. You'll have to add: |
26 |
> > |
27 |
> > http://distfiles.gentoo.org/distfiles/ |
28 |
> > |
29 |
> > and perhaps -in some cases- other sources/servers as not everything is in |
30 |
> > d.g.o |
31 |
> > |
32 |
> > Regards |
33 |
> |
34 |
> |
35 |
> portage knows where to download the files from, and you have told it |
36 |
> where the best mirrors are for you, why second guess it! |
37 |
> |
38 |
> How about this: |
39 |
> |
40 |
> Get a list of the packages you want to update from the target machine. |
41 |
> something like: |
42 |
> |
43 |
> emerge -uDp world|grep ebuild|awk '{print($4)}'>packlist |
44 |
> |
45 |
> take packlist to the connected machine and type: |
46 |
> |
47 |
> for package in `cat packlist` ; do DISTDIR=/where/ever/i/want emerge |
48 |
> --nodeps -f =$package; done |
49 |
> |
50 |
> The files will then be in /where/ever/i/want and you can put them on a |
51 |
> cd or whatever method you are using and take them away. |
52 |
> |
53 |
> --nodeps will make sure that your connected host doesn't substitute its |
54 |
> own idea of what the deps are (perhaps based on different USE flags) |
55 |
> |
56 |
> |
57 |
> You could also probably do something like: |
58 |
> |
59 |
> for package in `cat packlist` ; do DISTDIR="/where/ever/i/want" GENTOO_MIRRORS="local |
60 |
> /usr/portage/distfiles" emerge --nodeps -f =$package; done |
61 |
> |
62 |
> The GENTOO_MIRRORS="local /usr/portage/distfiles" should take files from |
63 |
> the local system in preference to downloading them, which will save your |
64 |
> bandwidth, although i am not 100% sure of the syntax. |
65 |
> |
66 |
> In other words let your network connected host choose where to download |
67 |
> from. |
68 |
> |
69 |
> -- |
70 |
> Nick Rout <nick@×××××××.nz> |
71 |
> |
72 |
> -- |
73 |
> gentoo-user@g.o mailing list |
74 |
> |
75 |
> |
76 |
|
77 |
-- |
78 |
gentoo-user@g.o mailing list |