Gentoo: system and security updates

First install gentoolkit

emerge gentoolkit

Then search for security updates using glsa-check:

glsa-check -t all

Check which packets would be installed:

glsa-check -p $(glsa-check -t all)

Then run the actual installation

glsa-check -f $(glsa-check -t all)

Or install them one by one:

glsa-check -f INSTALLNUM

Replace INSTALLNUM by the update number, for example 200608-15

System Updates:

Update portage tree

emerge --sync

Check if running processes are concerned and which packets would be installed

emerge --pretend --deep --update world

Install the updates

emerge --deep --update world