Re: [gentoo-user] Fetch List

2012-06-05 Thread YoYo Siska
On Tue, Jun 05, 2012 at 01:37:11PM +0200, Silvio Siefke wrote:
 Hello,
 
 is there a option that i can build a list of Requirements to download of 
 a ebuild? 
 
 I want build inkscape, but i has only mobile connection at moment. Can i
 build a list which i can then later load in a cybercafe?
 
 In the Handbook i found only a list for world. Thank u. 

use -p -f   (pretend and fetchonly)

emerge --pretend --fetchonly package...

it will output a line per each file/url you need to fetch (and put in
the distfiles dir), one line can contain multiple alternate urls (if there are
alternative mirrors etc...), you need to fetch only one of them

IIRC, it has a small downside, that it also lists the files you allready
have downloaded in distfiles (ie those for which emerge -pv would show
0kB as size of downloads...) so you might check the list against what
you allready have...


yoyo




Re: [gentoo-user] Fetch List

2012-06-05 Thread Raffaele BELARDI
On 06/05/2012 01:37 PM, Silvio Siefke wrote:
 is there a option that i can build a list of Requirements to download of 
 a ebuild? 
 
 I want build inkscape, but i has only mobile connection at moment. Can i
 build a list which i can then later load in a cybercafe?
 
 In the Handbook i found only a list for world. Thank u. 

I'm sure there will be a better method, anyway:

# emerge -p --fetchonly inkscape | grep http | cut -d ' ' -f 1

(doesn't work for inkscape on my system because emerge spits an USE
changes error, but it works for other packages).

raffaele


Re: [gentoo-user] Fetch List

2012-06-05 Thread v_2e
  Hello!

On Tue, 5 Jun 2012 13:37:11 +0200
Silvio Siefke siefke_lis...@web.de wrote:

 Hello,
 
 is there a option that i can build a list of Requirements to download
 of a ebuild? 
 
  I usually use

emerge --pretend --fetchonly media-gfx/inkscape  files_to_fetch.txt

or in a short form

emerge -fp media-gfx/inkscape  files_to_fetch.txt

And after that I download the files with wget as follows:

cat files_to_fetch.txt | cut -d  -f 1| wget -c -i -

Note: if there are some errors during download, you may try to use
different fields in 'cut' -- like -f 2 or -f 3 and so on.

  Hope, this helps. :)

Regards,
Vladimir

- 
 v...@ukr.net