User:Jens3/emerge --exclude big packages

From Gentoo Wiki
Jump to:navigation Jump to:search

INFO: If there are mistakes, feel free to correct them!
INFO: After some testing this can be added to Knowledge_Base:Emerge_out_of_memory

When having a limited amount of ram there are some packages which need to be compiled on their own and with MAKEOPTS="-j1". Other packages can be compiled with 'MAKEOPTS="-jn" emerge --jobs=m' with m>1 and n>1.

The big packages should be listed in

root #MAKEOPTS="-j2" emerge --jobs=2 --exclude "`grep one-make-thread.conf /etc/portage/package.env | grep -v "^#" | cut -f 1 | tr '\n' ' '`" -DvuaN @world
root #MAKEOPTS="-j1" emerge --jobs=1 -DvuaN @world

Thanks to #gentoo for the help!

My commands for updating:

root # emerge --sync && MAKEOPTS="-j2" emerge --jobs=2 --exclude "`grep one-make-thread.conf /etc/portage/package.env | grep -v "^#" | cut -f 1 | tr '\n' ' '`" -DvuaN @world && emerge -DvuaN @world

See also