Linux – stop a Gentoo “emerge world” to add a feature or use flag I forgot

gentoolinuxmaintenanceupdate

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?

Best Answer

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.