Peter's Blog

Redefining the Impossible

Building Gentoo


Building Gentoo packages does take a while, even for something simple you have to wait for .configure to run which takes a couple of minutes. To live with this I have learnt a couple of things.

First was the nohup command which works like this:

 nohup emerge huge-package & 

which will build the huge package and dump all the output to a file called nohup.out. This is useful for me if I build using a ssh shell which is likely to disconnect and cause the build to halt. With nohup I don't need to worry about that, the build is disconnected from the login shell.

Next is the at command:

 at 03:00 >>emerge huge-package <CTRL-D> 

This will emerge the huge package at 3am so it should be ready the next day. When the command finishes I get emailed the results. I tried using this last night to build a kernel but I typed:

 make bZImage 

instead of:

 make bzImage 

and it failed, so it'll have to wait for another night.


Filed under: gentoo linux ssh

Comments are Closed