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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
>
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list

Reply via email to