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 1EKZs8-0003fk-24 for garchives@archives.gentoo.org; Wed, 28 Sep 2005 11:13:12 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j8SB4He6014202; Wed, 28 Sep 2005 11:04:17 GMT Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j8SAuh3r011420 for ; Wed, 28 Sep 2005 10:56:44 GMT Received: by wproxy.gmail.com with SMTP id i6so31212wra for ; Wed, 28 Sep 2005 04:03:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ek+sTnIkz3SGbwiqYoKvTKSmXJ1hU4dSsSZbkaKy7dWJsZB0TWQ3u0gFkbw12zyRjjQe8pojqcslmJFLo62z60vbODYn3O61mke1P65vgCCdF0JgdUV0P9XbpQv/DaG3BKdMdxOHblZu0c/8d/7EqRlfDK9rjrsjPh5DSS85gRU= Received: by 10.54.159.13 with SMTP id h13mr76916wre; Wed, 28 Sep 2005 04:03:54 -0700 (PDT) Received: by 10.54.147.14 with HTTP; Wed, 28 Sep 2005 04:03:54 -0700 (PDT) Message-ID: <1cc2dc8305092804034d835c18@mail.gmail.com> Date: Wed, 28 Sep 2005 08:03:54 -0300 From: Allan Spagnol Comar To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Pratical question about portage tree In-Reply-To: <20050928163705.53E7.NICK@rout.co.nz> 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 Content-Disposition: inline References: <20050928025249.GA17684@cornholio.joat.com> <200509280108.53868.nbensa@gmx.net> <20050928163705.53E7.NICK@rout.co.nz> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id j8SAuh3r011420 X-Archives-Salt: a83a87ca-c352-44e3-91f7-54076ebcd5fa X-Archives-Hash: 85321e9456be733587e6aede453a843e Thank you all this was realy great; I will try to rebuild the portage tree with the script that was speaked out and download the files I need using the package list; I believe that this will do all the work; if it got right i will send a message; Thanks, Allan On 9/28/05, Nick Rout wrote: > > On Wed, 28 Sep 2005 01:08:53 -0300 > Norberto Bensa wrote: > > > Dave Nebinger wrote: > > > Unfortunately Allen I don't remember exactly what the script was or > > > where I got it, but I think there's a reference to it in the Gentoo > > > Wiki. > > > > It is not that hard actually: > > > > comm -13 <(ls /usr/portage/distfiles | sort | uniq) \ > > <(for i in $(emerge -pufv world 2>&1 | grep ^http | awk '{ print $1 }') > > do > > echo $(basename $i) > > done | sort | uniq) > > > > That will print the files you'll need to download. Note however that it will > > only print the filenames. You'll have to add: > > > > http://distfiles.gentoo.org/distfiles/ > > > > and perhaps -in some cases- other sources/servers as not everything is in > > d.g.o > > > > Regards > > > portage knows where to download the files from, and you have told it > where the best mirrors are for you, why second guess it! > > How about 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=/where/ever/i/want emerge > --nodeps -f =$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 its > own idea of what the deps are (perhaps based on different USE flags) > > > You could also probably do something like: > > for package in `cat packlist` ; do DISTDIR="/where/ever/i/want" GENTOO_MIRRORS="local > /usr/portage/distfiles" emerge --nodeps -f =$package; done > > The GENTOO_MIRRORS="local /usr/portage/distfiles" should take files from > the local system in preference to downloading them, which will save your > bandwidth, although i am not 100% sure of the syntax. > > In other words let your network connected host choose where to download > from. > > -- > Nick Rout > > -- > gentoo-user@gentoo.org mailing list > > -- gentoo-user@gentoo.org mailing list