Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Downloading all packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
easydisk
n00b
n00b


Joined: 30 May 2002
Posts: 7

PostPosted: Sun Aug 24, 2003 8:14 am    Post subject: Downloading all packages Reply with quote

Hello,

normally I have a script to download everything.

( how it works:
-I put all packages I have downloaded on my webserver http://127.0.0.1/gentoo, if gentoo can not find it here it goes to the next server (a gentoo mirror), old packages are not downloaded.
-and I have a script that find all pakcages and exclude games, docs and some other packages.
-and than run 4500 lines (a script :) ) with commands like:
emerge -f app-editors/kxmleditor || emerge -f kxmleditor
)
So I had around 4500 packages to download, that was finished in about 10 to 12 hours, but since I'm back from vacation 900 packages will take about 9 hours, so all packages will take about a couple of day's.

How can I speed up the process ? (and than, if possible not with use of the option "--nodeps") but for example skip md5sum checking or anything else.

It is no problem if there is a script that finds the necessary files to download in the /usr/portage without emerge. (so I have a list of files to download by hand (I make a script that wget will do it ..)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Aug 24, 2003 12:15 pm    Post subject: Reply with quote

easydisk,

You can get a download list in a file by doing emerge -p <something> > listfile.txt
then work through the listfile.

See emerge --help

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
easydisk
n00b
n00b


Joined: 30 May 2002
Posts: 7

PostPosted: Sun Aug 24, 2003 1:37 pm    Post subject: Reply with quote

That is very fast
(ermerge -f kde takes 3 minutes, emerge -p kde about 10 seconds :) )

But how do I get from the " [ebuild N ] kde-base/kdetoys-3.1.2 " line to the filename of this package ?

Just the 3th string in usr/portage/kde-base/kdetoys/files/digest-kdetoys-3.1.2 ? or do I have to do more ? Or is there a more easy way to make a download list of file names ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Sun Aug 24, 2003 1:58 pm    Post subject: Reply with quote

easydisk,

What about

emerge --fetchonly -u world

or

emerge --fetchonly -uD world

depending on your taste.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Sun Aug 24, 2003 2:33 pm    Post subject: Reply with quote

Use "-f" and "-p" together:

Code:
root@laureate:/etc# emerge -fp bash
Calculating dependencies ...done!

http://gentoo.oregonstate.edu/distfiles/bash-2.05b.tar.gz http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/bash-2.05b.tar.gz ftp://ftp.gnu.org/gnu/bash/bash-2.05b.tar.gz
http://gentoo.oregonstate.edu/distfiles/bash205b-004 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/bash205b-004 ftp://ftp.gnu.org/gnu/bash/bash-2.05b-patches/bash205b-004
http://gentoo.oregonstate.edu/distfiles/bash205b-002 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/bash205b-002 ftp://ftp.gnu.org/gnu/bash/bash-2.05b-patches/bash205b-002
http://gentoo.oregonstate.edu/distfiles/bash205b-003 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/bash205b-003 ftp://ftp.gnu.org/gnu/bash/bash-2.05b-patches/bash205b-003
http://gentoo.oregonstate.edu/distfiles/bash-2.05b-gentoo.diff.bz2 http://distro.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 ftp://sunsite.dk/mirrors/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 http://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 ftp://ftp.dale.ro/pub/mirrors/ftp.ibiblio.org/pub/Linux/distributions/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 ftp://ftp.oregonstate.edu/pub/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 ftp://gentoo.linux.no/pub/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 http://ftp.gentoo.or.kr/distfiles/bash-2.05b-gentoo.diff.bz2 http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles//bash-2.05b-gentoo.diff.bz2 ftp://ftp.rez-gif.supelec.fr/pub/Linux/distrib/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 http://gentoo.gnukorea.org/distfiles/bash-2.05b-gentoo.diff.bz2 http://mirrors.sunsite.dk/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 ftp://ftp.tu-clausthal.de/pub/linux/gentoo/distfiles/bash-2.05b-gentoo.diff.bz2 http://gentoo.oregonstate.edu/distfiles/bash-2.05b-gentoo.diff.bz2 http://gentoo.linux.no/distfiles/bash-2.05b-gentoo.diff.bz2 >>> md5 src_uri ;-) bash-2.05b.tar.gz
>>> md5 src_uri ;-) bash-2.05b-gentoo.diff.bz2
>>> md5 src_uri ;-) bash205b-002
>>> md5 src_uri ;-) bash205b-003
>>> md5 src_uri ;-) bash205b-004


Gives you lots of URLs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum