From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E83Ly-0003eB-My for garchives@archives.gentoo.org; Wed, 24 Aug 2005 22:04:15 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7OM2GIp009163; Wed, 24 Aug 2005 22:02:16 GMT Received: from www.rout.co.nz (203-79-82-53.adsl-wns.paradise.net.nz [203.79.82.53]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7OLtirb012456 for ; Wed, 24 Aug 2005 21:55:45 GMT Received: from www.rout.co.nz (localhost [127.0.0.1]) by www.rout.co.nz (Postfix) with ESMTP id 5EF568B6EC for ; Thu, 25 Aug 2005 09:55:32 +1200 (NZST) Received: from 192.168.1.2 (SquirrelMail authenticated user nick) by www.rout.co.nz with HTTP; Thu, 25 Aug 2005 09:55:32 +1200 (NZST) Message-ID: <4731.192.168.1.2.1124920532.squirrel@www.rout.co.nz> In-Reply-To: <20050824111406.GB4532@lugmen.org.ar> References: <49bf44f105081908186b330b36@mail.gmail.com> <20050824171601.8175.NICK@rout.co.nz> <20050824111406.GB4532@lugmen.org.ar> Date: Thu, 25 Aug 2005 09:55:32 +1200 (NZST) Subject: Re: [gentoo-user] Downloading packages from a txt file From: "Nick Rout" To: gentoo-user@lists.gentoo.org User-Agent: SquirrelMail/1.4.4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 (Normal) Importance: Normal Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id j7OM2GJA009163 X-Archives-Salt: e925bcb9-7f71-41ef-813b-b7554abdd786 X-Archives-Hash: 851d17b003af1f06bdec39c5d60ba508 On Wed, August 24, 2005 11:14 pm, Fernando Canizo said: > El 24/ago/2005 a las 02:36 -0300, Nick me dec=EDa: >> 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 DISTDIR=3D/where/ever/i/want emerge >> --nodeps -f =3D$package; done >> >> The files will then be in /where/ever/i/want and you can put them on a >> cd or whatever method you are using and take them away. >> >> --nodeps will make sure that your connected host doesn't substitute it= s >> own idea of what the deps are (perhaps based on different USE flags) > > Could work, but i think he says he has debian in connected machine. yes thats a bit of a barrier, although having debian doesn't stop him installing portage AFAIK. A long time ago in a galaxy far away there was = a howto on installing portage on other distros. > > (hasn't?) > > Anyway i would be great if 'emerge' has clean option like > '--print-uris' from apt-get so one could just use 'wget' or whatever > they find on connected machine. you mean like: emerge -fp target 2>&1|grep -v Calculating|grep -v '...done!'|sed -e 's/\ /\n/g' The sed part transforms from a list all on one line with spaces separatin= g to a list one per line, ie: url1 url2 url3 to url1 url2 url3 Trouble is this gives a list with many alternatives for each url (depending on the number of mirrors shown in the ebuild. You then need a script to download each url ONLY if one of the earlier url's for the same file hasn't worked. >Other idea could be to have a script > that downloads the gentoo-way using what emerge print now, checking > mirrors, etc. Like a tiny version of emerge. > > -- > Fernando Canizo - http://www.lugmen.org.ar/~conan/ > antialiasing? > the alcohol does that for you > -- > gentoo-user@gentoo.org mailing list > > --=20 gentoo-user@gentoo.org mailing list