Re: [gentoo-user] Downloading packages from a txt file

2005-08-24 Thread Willie Wong
On Thu, Aug 25, 2005 at 09:55:32AM +1200, Nick Rout wrote: > On Wed, August 24, 2005 11:14 pm, Fernando Canizo said: > The sed part transforms from a list all on one line with spaces separating > to a list one per line, ie: > > url1 url2 url3 > > to > > url1 > url2 > url3 > > Trouble is this gi

Re: [gentoo-user] Downloading packages from a txt file

2005-08-24 Thread Nick Rout
On Wed, August 24, 2005 11:14 pm, Fernando Canizo said: > El 24/ago/2005 a las 02:36 -0300, Nick me decía: >> Seriously this time: >> >> How about changing your strategy to this: >> >> Get a list of the packages you want to update from the target machine. >> something like: >> >> emerge -uDp world|

Re: [gentoo-user] Downloading packages from a txt file

2005-08-24 Thread Fernando Canizo
El 24/ago/2005 a las 02:36 -0300, Nick me decía: > Seriously this time: > > How about changing your strategy to this: > > Get a list of the packages you want to update from the target machine. > something like: > > emerge -uDp world|grep ebuild|awk '{print($4)}'>packlist > > take packlist to th

Re: [gentoo-user] Downloading packages from a txt file

2005-08-23 Thread Nick Rout
Seriously this time: How about changing your strategy to this: Get a list of the packages you want to update from the target machine. something like: emerge -uDp world|grep ebuild|awk '{print($4)}'>packlist take packlist to the connected machine and type: for package in `cat packlist` ; do DIS

Re: [gentoo-user] Downloading packages from a txt file

2005-08-23 Thread Nick Rout
i say plug the bloody computer into a network and be done with it. the darn things aren't much fun without connectivity anyway IMHO :-) On Wed, 24 Aug 2005 10:50:45 +0800 Ow Mun Heng wrote: > On Sat, 2005-08-20 at 08:32 -0700, Grant wrote: -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@ge

Re: [gentoo-user] Downloading packages from a txt file

2005-08-23 Thread Ow Mun Heng
On Sat, 2005-08-20 at 08:32 -0700, Grant wrote: > Do you know how to get 'emerge -fp world' to return only one path per > file or get wget to use the %20-separated alternate paths properly? > Try this.. it's a 2 step process, I believe it can be done in 1 step but, I'll let you figure it out. e

Re: [gentoo-user] Downloading packages from a txt file

2005-08-22 Thread Alex
On Monday 22 August 2005 14:52, Grant wrote: > That works for some of them but I get a lot of: > > 416 Requested Range Not Satisfiable Are the packages downloaded? Doing "cat links.txt | xargs wget -c" will try to download from *all* urls listed in links.txt and there are a few of them for each

Re: [gentoo-user] Downloading packages from a txt file

2005-08-22 Thread Grant
> > Do you know how to get 'emerge -fp world' to return only one path per > > file or get wget to use the %20-separated alternate paths properly? > > hmm... if you try: > > $ cat links.txt | xargs wget -c > > I know it's not delicate but it might work :) > > sorry but i can't be much of a help,

Re: [gentoo-user] Downloading packages from a txt file

2005-08-20 Thread Alex
On Saturday 20 August 2005 15:32, Grant wrote: > Do you know how to get 'emerge -fp world' to return only one path per > file or get wget to use the %20-separated alternate paths properly? hmm... if you try: $ cat links.txt | xargs wget -c I know it's not delicate but it might work :) sorry bu

Re: [gentoo-user] Downloading packages from a txt file

2005-08-20 Thread Grant
> > sort -u links.txt | xargs -n 1 -i{} sh -c 'for i in {}; do wget -c $i > > && break; done' > > How about this instead, > > $ wget -ci links.txt > > It always did the job for me :) > > -- > Cheers, Alex. Hi Alex, The problem is that the links.txt file was generated by 'emerge -fp world' and

Re: [gentoo-user] Downloading packages from a txt file

2005-08-20 Thread Alex
On Friday 19 August 2005 15:18, Grant wrote: > sort -u links.txt | xargs -n 1 -i{} sh -c 'for i in {}; do wget -c $i > && break; done' How about this instead, $ wget -ci links.txt It always did the job for me :) -- Cheers, Alex. -- gentoo-user@gentoo.org mailing list

[gentoo-user] Downloading packages from a txt file

2005-08-19 Thread Grant
Hello, a little while ago I asked this list for help with updating a machine with no network connection. The solution was to get a txt list of the package paths and then download them on a networked machine with this command: sort -u links.txt | xargs -n 1 -i{} sh -c 'for i in {}; do wget -c $i &