Re: offline downloading...

Ewan Mac Mahon <[email protected]> Fri, 25 Oct 2002 14:44:17 +0100
Newsgroups gmane.linux.gentoo.newbies
Message-ID <[email protected]>
On Fri, Oct 25, 2002 at 09:25:20AM +0530, Vardhan Varma wrote:
> 
> 
> Hi,
<snip> 
>   My Q is : how to get list of source tgz to download for basic 
>   use-profile and kde-profile. my friend is not running gentoo.

This is an unpleasant kudge, but it does do the job; if you look near th
bottom of /etc/make.conf you'll find some commented examples of how to
change the command used to fetch sources. Add (not commented) one like
this:
FETCHCOMMAND='echo ${URI} >> /root/fetchurls'

Then run emerge --fetchonly <packages>. As emerge tries to download the
packages it will run the echo and append the URIs to the named file, which
you can then feed into wget on your friend's box. One important note is
that you will get (at least) two URIs for each tarball, one for the gentoo
mirror copy, and one for the original location; so you need to run wget with 
the --no-clobber option otherwise it will download everything twice.

Ewan