1 |
Vitaly Ivanov wrote: |
2 |
> Happy offline-user must do it: |
3 |
> 1. emerge sync # may be via slow modem or by downloading |
4 |
> portage-${year}${month}${day}.tar.bz2 |
5 |
> 2. emerge -pf world > download.it # there is another bug |
6 |
|
7 |
File names are output on stderr. |
8 |
Use 2>&1 to redirect stderr to stdout. |
9 |
|
10 |
> 3. Go to internet kiosk |
11 |
> 4. wget -c -nd -i download.it |
12 |
> 5. Go to home and copy downloaded files to $DISTFILES/ dir |
13 |
> 6. Repeat steps 2-5 because offline-user has 64Mb CF only. |
14 |
> 6. emerge -uD world |
15 |
> 7. become happy! |
16 |
> |
17 |
> Please make offline-user life more happy :-) |
18 |
|
19 |
How many such users are there? Of course you can say that if Gentoo took |
20 |
better care of offline users, there would be more of them ;-) |
21 |
|
22 |
Anyway, it does not mean you should not get help. |
23 |
How about this one-liner? |
24 |
|
25 |
$ emerge -pf world 2>&1 |awk '/md5 src_uri ;-)/{okfiles[$NF]=1} |
26 |
/\/[:alnum:]/{nf=split($1,a,"/");wanted[a[nf]]=$0} END {for (f in wanted) if |
27 |
(!(f in okfiles)) {print wanted[f]} }' |
28 |
|
29 |
It displays the required files minus those tested OK against the md5 checksum. |
30 |
Use {print f} instead of {print wanted[f]} at the end to get file names |
31 |
without path, or even {split(wanted[f],a);print a[1]} to display the first |
32 |
path only. |
33 |
|
34 |
You can also save the script to a file, say 'fifi' and pipe into awk -f fifi |
35 |
|
36 |
Hth, |
37 |
-- |
38 |
/ Xavier Neys |
39 |
\_ Gentoo Documentation Project |
40 |
/ French & Internationalisation Lead |
41 |
\ http://www.gentoo.org/doc/en |
42 |
/\ |