Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Can I stop a Gentoo "emerge world" to add a feature or use flag I forgot? If so, how much pain am I in for, and what steps would you recommend for safely getting the system back on its feet?

Thanks.

share|improve this question
    
Ouch, not sure why this got down voted. If you would enlighten me with a comment I'd appreciate it. –  Charlie Flowers Jun 9 '09 at 18:48
3  
If you indeed use gentoo on servers (I consider a full blown build environment a security risk). You should be building binaries on a dedicated host and install those on the servers that need them. That way you will still have the pros of gentoo (custom binaries with only the support you want) but won't need to compile on every host. Downvoting is because it very much sounds like a desktop system (I'd guess, wasn't me) :) –  Server Horror Jun 9 '09 at 18:52
1  
OK, thanks. It is based off a desktop system I'm learning on ... maybe I need to read the "rules" of serverfault a bit more, which I'll do now. –  Charlie Flowers Jun 9 '09 at 19:14
add comment

3 Answers

It is perfectly safe...

but, when you change global USE flags. You may as well run a emerge -auDN world. That'll re-emerge anything that was built with different flags than what you have now.

When that is finished, it is also often a good idea to do a revdep-rebuild (from gentoolkit to ensure that libraries are in good shape.

Finally, when all this is done, you can optionally do a emerge -pv --depclean to remove any packages which are no longer required.

share|improve this answer
add comment

yes, you can stop an emerge with Ctrl+C at anytime. if emerge is on the compile phase, there's no problem, "make" and "make install" run in a separate directory. but if emerge is on the final "installing..." phase, when it copies the installed files to the system, some of the files may have been already merged, and that may cause an inconsistency; but if you're going to change the USE flags and reemerge the package, that's fine too.

so, in summary, you can stop an "emerge world" anytime, it won't mess up with your system.

share|improve this answer
add comment

You can run emerge --resume when an emerge fails or stops for some reason, and it should pick up right where it left off. Also note that you can use --skipfirst to skip the first package in case it fails but you want to continue emergeing all other packages.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.