> > When using -f (--fetchonly) and -p (--pretend) together emerge dumps all
> > possible download urls for each package it knows about. I think this is
> > documented somewhere. Have you synced the portage tree though? It would
> > not be wise to freshen up just one subdirectory on /usr/portage tree.
> > You need to get a recent snapshot and update manually. This link has a
> > little more on it:
> > http://gentoo-wiki.com/TIP_Downloading_distfiles_on_another_machine
> >
> > It would be something like:
> > wget http://gentoo.osuosl.org/snapshots/portage-(most recent date).tar.bz2
> > # ... transfer to your target machine using cd or usb stick ...
> > # on target machine put it into /var/tmp
> > # then:
> > cd /var/tmp
> > tar fxj portage-(most recent date).tar.bz2
> > cd portage
> > # ... run this:
> > /usr/lib/portage/bin/portageq portdir
> > # and check that it returns a sane value like /usr/portage and:
> > rsync -av --progress --stats --delete --delete-after
> > --exclude='/distfiles' --exclude='/packages' --exclude='/local' .
> > `/usr/lib/portage/bin/portageq portdir`
> > cd ..
> > rm -rf portage
> > rm -f portage-(most recent date).tar.bz2
> > # ... and now you got a recent portage snapshot to work with ...
> > emerge -vuDfp world <-- to see what you get out of date
> >
> > i havent tested this but the code in the middle i got out of
> > emerge-webrsync so i guess it should work.
> >
> > Eugene.
> 
> Your suggestions worked great except I had to use '/usr/portage'
> instead of '/usr/lib/portage/bin/portageq portdir' with the rsync
> command.
> 
> I ended up with what seemed like a nice links.txt file, but 'wget -i
> links.txt' from the networked machine returns all 403 and 404 errors.
> I thought this might have something to do with the fact that the
> floppy I used to transfer the links.txt file was vfat, so I formatted
> it ext2 with the same results.  It's always something like this:
> 
> Connecting to distfiles.gentoo.org[156.56.247.195]:80... connected.
> HTTP request sent, awaiting response... 403 Forbidden
> 15:49:30 ERROR 403: Forbidden.
> 
> - Grant

Looking a little closer at the output of 'wget -i links.txt' :

--17:14:20--  
http://distfiles.gentoo.org/distfiles/sysvinit-2.86.tar.gz%20http:/distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/sysvinit-2.86.tar.gz%20ftp:/ftp.cistron.nl/pub/people/miquels/software/sysvinit-2.86.tar.gz%20ftp:/sunsite.unc.edu/pub/Linux/system/daemons/init/sysvinit-2.86.tar.gz
           => `sysvinit-2.86.tar.gz'
Connecting to distfiles.gentoo.org[216.165.129.135]:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:14:20 ERROR 404: Not Found.

In links.txt each of the paths for any given file are concatenated
(correct usage?) with a space character, and wget is trying to fetch
the entire string.  Does anyone know how to make wget use this file
properly?

- Grant
--
gentoo-user@gentoo.org mailing list

Reply via email to