* [gentoo-user] write 'emerge -f' to a file
@ 2007-01-19 16:18 Jens Kubieziel
2007-01-19 16:56 ` Alan McKinnon
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Jens Kubieziel @ 2007-01-19 16:18 UTC (permalink / raw
To: gentoo-user
Hi,
a friend of mine wants to use Gentoo, but has a poor internet connection.
We are thinking about a convenient way to get packages. We thought about
redefining $FETCHCOMMAND to something like 'FETCHCOMMAND="echo ${URI}
> package.file'. But that (and also other tries) did not work. What is
the best way
to get a file of download-URLs to feed to wget?
Thanks for any recommendations
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] write 'emerge -f' to a file
2007-01-19 16:18 [gentoo-user] write 'emerge -f' to a file Jens Kubieziel
@ 2007-01-19 16:56 ` Alan McKinnon
2007-01-19 17:09 ` Daniel da Veiga
2007-01-19 17:17 ` Etaoin Shrdlu
2 siblings, 0 replies; 7+ messages in thread
From: Alan McKinnon @ 2007-01-19 16:56 UTC (permalink / raw
To: gentoo-user
On Friday 19 January 2007 18:18, Jens Kubieziel wrote:
> Hi,
>
> a friend of mine wants to use Gentoo, but has a poor internet
> connection. We are thinking about a convenient way to get packages.
> We thought about redefining $FETCHCOMMAND to something like
> 'FETCHCOMMAND="echo ${URI}
>
> > package.file'. But that (and also other tries) did not work. What
> > is
>
> the best way
> to get a file of download-URLs to feed to wget?
>
> Thanks for any recommendations
FETCHCOMMAND is what portage uses to fetch stuff. Once it has run,
portage expects $stuff to be there. What you have done is made sure the
portage won't try to download it at all, so of course it won't work.
I normally run 'emerge -pvf' to get a list of URIs to download, then
bash it into shape to get a text file listing, and send that to wget -i
Something like:
emerge -pvf world > emerge.lst
cat emerge.lst | cut -f1 -d' ' | sort | uniq > emerge.1.lst
[inspect emerge.1.lst manually and remove cruft]
wget -i emerge.1.lst
This can of course be improved tremendously. It only tries the first URI
for any given file (because of the cut), and it always attempts to
download every file for every package to be merged (as I haven't found
an easy way to get just a list of stuff not in distfiles)
I'm sure you could do a better job with a bit of work, this just happens
to suit my particular needs
alan
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] write 'emerge -f' to a file
2007-01-19 16:18 [gentoo-user] write 'emerge -f' to a file Jens Kubieziel
2007-01-19 16:56 ` Alan McKinnon
@ 2007-01-19 17:09 ` Daniel da Veiga
2007-01-19 20:50 ` Avaricen
2007-01-19 23:30 ` Jens Kubieziel
2007-01-19 17:17 ` Etaoin Shrdlu
2 siblings, 2 replies; 7+ messages in thread
From: Daniel da Veiga @ 2007-01-19 17:09 UTC (permalink / raw
To: gentoo-user
On 1/19/07, Jens Kubieziel <kubieziel@googlemail.com> wrote:
> Hi,
>
> a friend of mine wants to use Gentoo, but has a poor internet connection.
> We are thinking about a convenient way to get packages. We thought about
> redefining $FETCHCOMMAND to something like 'FETCHCOMMAND="echo ${URI}
> > package.file'. But that (and also other tries) did not work. What is
> the best way
> to get a file of download-URLs to feed to wget?
>
> Thanks for any recommendations
There are many ways of doying this, and what you've tried will most
certainly not work :-), try something like:
http://gentoo-wiki.com/TIP_Downloading_distfiles_on_another_machine
There are more tips regarding this at the Wiki, check Google too...
--
Daniel da Veiga
Computer Operator - RS - Brazil
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/IT/P/O d-? s:- a? C++$ UBLA++ P+ L++ E--- W+++$ N o+ K- w O M- V-
PS PE Y PGP- t+ 5 X+++ R+* tv b+ DI+++ D+ G+ e h+ r+ y++
------END GEEK CODE BLOCK------
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] write 'emerge -f' to a file
2007-01-19 16:18 [gentoo-user] write 'emerge -f' to a file Jens Kubieziel
2007-01-19 16:56 ` Alan McKinnon
2007-01-19 17:09 ` Daniel da Veiga
@ 2007-01-19 17:17 ` Etaoin Shrdlu
2007-01-19 23:29 ` Jens Kubieziel
2 siblings, 1 reply; 7+ messages in thread
From: Etaoin Shrdlu @ 2007-01-19 17:17 UTC (permalink / raw
To: gentoo-user
On Friday 19 January 2007 17:18, Jens Kubieziel wrote:
> Hi,
>
> a friend of mine wants to use Gentoo, but has a poor internet
> connection. We are thinking about a convenient way to get packages. We
> thought about redefining $FETCHCOMMAND to something like
> 'FETCHCOMMAND="echo ${URI}
>
> > package.file'. But that (and also other tries) did not work. What is
>
> the best way
> to get a file of download-URLs to feed to wget?
Not sure of what you mean, isn't that something that can be constructed
massaging the output of emerge -fp ?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] write 'emerge -f' to a file
2007-01-19 17:09 ` Daniel da Veiga
@ 2007-01-19 20:50 ` Avaricen
2007-01-19 23:30 ` Jens Kubieziel
1 sibling, 0 replies; 7+ messages in thread
From: Avaricen @ 2007-01-19 20:50 UTC (permalink / raw
To: gentoo-user
Daniel da Veiga wrote:
> On 1/19/07, Jens Kubieziel <kubieziel@googlemail.com> wrote:
>> Hi,
>>
>> a friend of mine wants to use Gentoo, but has a poor internet
>> connection.
>> We are thinking about a convenient way to get packages. We thought about
>> redefining $FETCHCOMMAND to something like 'FETCHCOMMAND="echo ${URI}
>> > package.file'. But that (and also other tries) did not work. What is
>> the best way
>> to get a file of download-URLs to feed to wget?
>>
>> Thanks for any recommendations
>
> There are many ways of doying this, and what you've tried will most
> certainly not work :-), try something like:
>
> http://gentoo-wiki.com/TIP_Downloading_distfiles_on_another_machine
>
> There are more tips regarding this at the Wiki, check Google too...
>
I have a poor internet connection, I've found emerge --fetchonly to be
great. There's also a TIP for portage on dialup on the Gentoo wiki. Do a
search for it on Google. Hope this helps.
Best Regards.
Avaricen
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] write 'emerge -f' to a file
2007-01-19 17:17 ` Etaoin Shrdlu
@ 2007-01-19 23:29 ` Jens Kubieziel
0 siblings, 0 replies; 7+ messages in thread
From: Jens Kubieziel @ 2007-01-19 23:29 UTC (permalink / raw
To: gentoo-user
2007/1/19, Etaoin Shrdlu <shrdlu@unlimitedmail.org>:
> Not sure of what you mean, isn't that something that can be constructed
> massaging the output of emerge -fp ?
Well, I actually never tried emerge -f with the -p-option.
But it works like charm.
Thanks a lot.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] write 'emerge -f' to a file
2007-01-19 17:09 ` Daniel da Veiga
2007-01-19 20:50 ` Avaricen
@ 2007-01-19 23:30 ` Jens Kubieziel
1 sibling, 0 replies; 7+ messages in thread
From: Jens Kubieziel @ 2007-01-19 23:30 UTC (permalink / raw
To: gentoo-user
2007/1/19, Daniel da Veiga <danieldaveiga@gmail.com>:
> http://gentoo-wiki.com/TIP_Downloading_distfiles_on_another_machine
> There are more tips regarding this at the Wiki, check Google too...
As I wrote in my other answer it works. Thanks for your hints.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-01-19 23:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-19 16:18 [gentoo-user] write 'emerge -f' to a file Jens Kubieziel
2007-01-19 16:56 ` Alan McKinnon
2007-01-19 17:09 ` Daniel da Veiga
2007-01-19 20:50 ` Avaricen
2007-01-19 23:30 ` Jens Kubieziel
2007-01-19 17:17 ` Etaoin Shrdlu
2007-01-19 23:29 ` Jens Kubieziel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox