Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Speeding up your gnome/kde/[big package] installation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Fri Sep 12, 2003 11:10 pm    Post subject: Speeding up your gnome/kde/[big package] installation Reply with quote

For sake of example, we're using Gnome. I also use a handy little application called screen. There's lots of information in the forums on screen, if you don't know what it is.

Basically, this is a little technique to fetch and compile a large package concurrently. Since a large package is made up of many little applications, portage - more specifically, emerge - has everything we need to do this.

Code:
# emerge gnome -p
 
These are the packages that I would merge, in order:
 
Calculating dependencies ...done!
[ebuild     U ] gnome-base/ORBit2-2.8.1 [2.6.3]
[ebuild     U ] gnome-base/libbonobo-2.4.0 [2.2.3]
[ebuild     U ] gnome-base/libbonoboui-2.4.0 [2.2.4]
...snip...
[ebuild     U ] gnome-base/gnome-2.4 [2.2.2-r1]


Note the first application to be updated. We're going to have 2 'processes', one fetching and one compiling. We obviously don't want both processes to start fetching the same application and we don't want to wait either! So, for the purpose of the fetching process, we pretend we already fetched the first application:

Code:
# screen
# emerge -i gnome-base/ORBit2-2.8.1 && emerge -f gnome


Ctrl-A d, and that's fetching the rest of Gnome 2.4!

Now to start off the compilation. We also remind portage that ORBit2 wasn't really installed:

Code:
# screen
# emerge -c gnome-base/ORBit2-2.8.1 && emerge gnome


Ctrl-A d, and that's compiling Gnome 2.4!

Gnome is being fetched whilst compiled, thus bringing the donwloading and compilation into a concurrent operation and driving down that installation time.

I'm off to bed... it should be ready by the morning. :)
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
lucida
Apprentice
Apprentice


Joined: 20 Feb 2003
Posts: 191

PostPosted: Fri Sep 12, 2003 11:15 pm    Post subject: Reply with quote

You can also use "screen -r" to attach previous screen session.

And, screen wouldn't speed up the compiling process. If you mean "downloading while compiling", unless you are using a 56K modem, the time saving can be ignored...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks 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