1 |
On Wed, August 24, 2005 11:14 pm, Fernando Canizo said: |
2 |
> El 24/ago/2005 a las 02:36 -0300, Nick me decía: |
3 |
>> Seriously this time: |
4 |
>> |
5 |
>> How about changing your strategy to this: |
6 |
>> |
7 |
>> Get a list of the packages you want to update from the target machine. |
8 |
>> something like: |
9 |
>> |
10 |
>> emerge -uDp world|grep ebuild|awk '{print($4)}'>packlist |
11 |
>> |
12 |
>> take packlist to the connected machine and type: |
13 |
>> |
14 |
>> for package in `cat packlist` ; do DISTDIR=/where/ever/i/want emerge |
15 |
>> --nodeps -f =$package; done |
16 |
>> |
17 |
>> The files will then be in /where/ever/i/want and you can put them on a |
18 |
>> cd or whatever method you are using and take them away. |
19 |
>> |
20 |
>> --nodeps will make sure that your connected host doesn't substitute its |
21 |
>> own idea of what the deps are (perhaps based on different USE flags) |
22 |
> |
23 |
> Could work, but i think he says he has debian in connected machine. |
24 |
|
25 |
yes thats a bit of a barrier, although having debian doesn't stop him |
26 |
installing portage AFAIK. A long time ago in a galaxy far away there was a |
27 |
howto on installing portage on other distros. |
28 |
|
29 |
> |
30 |
> (hasn't?) |
31 |
> |
32 |
> Anyway i would be great if 'emerge' has clean option like |
33 |
> '--print-uris' from apt-get so one could just use 'wget' or whatever |
34 |
> they find on connected machine. |
35 |
|
36 |
you mean like: |
37 |
|
38 |
emerge -fp target 2>&1|grep -v Calculating|grep -v '...done!'|sed -e 's/\ |
39 |
/\n/g' |
40 |
|
41 |
The sed part transforms from a list all on one line with spaces separating |
42 |
to a list one per line, ie: |
43 |
|
44 |
url1 url2 url3 |
45 |
|
46 |
to |
47 |
|
48 |
url1 |
49 |
url2 |
50 |
url3 |
51 |
|
52 |
Trouble is this gives a list with many alternatives for each url |
53 |
(depending on the number of mirrors shown in the ebuild. |
54 |
|
55 |
You then need a script to download each url ONLY if one of the earlier |
56 |
url's for the same file hasn't worked. |
57 |
|
58 |
>Other idea could be to have a script |
59 |
> that downloads the gentoo-way using what emerge print now, checking |
60 |
> mirrors, etc. Like a tiny version of emerge. |
61 |
> |
62 |
> -- |
63 |
> Fernando Canizo - http://www.lugmen.org.ar/~conan/ |
64 |
> <ciaranm> antialiasing? |
65 |
> <ciaranm> the alcohol does that for you |
66 |
> -- |
67 |
> gentoo-user@g.o mailing list |
68 |
> |
69 |
> |
70 |
|
71 |
|
72 |
-- |
73 |
gentoo-user@g.o mailing list |