Gentoo update (list of short commands)
I’m often looking for the right command when i start with Gentoo, so I’ve post here a shortlist of commands that i found on some sites. The first entire will recompile all ports, so keep in mind that will take a long time.
After update of ports who depending on gcc (usually i leave the “-a1″ option out)
emerge -a1 gcc
emerge -a1 glibc libtool
emerge -e system
Update the whole system and world
emerge -uDN system && emerge -uDN world
Often the library’s have to check for broken links
revdep-rebuild
After every update i run these to update the system enviroment variables.
env-update && source /etc/profile
Update your locate database (only if you use “locate”)
updatedb
Sometimes there will portage get a newer kernel or video drivers. Here i use the eselect command to upgrade on the higher version. (here i use nvidia, you might have to use ati or something similar
eselect opengl set nvidia
And the kernel
eselect kernel list (to show with kernel are available)
eselect kernel set (the number witch “list” have gave you out)
At last, how to upgrade your profile. Have the same syntax like the kernel select.
eselect profile list
eselect profile set (the number that “list” have gave you out).
Feel free to complete the list or make some corrections.








Also, the elogs after things emerge are sometimes important (and sometimes not). These are little logs that might tell you important actions to take after upgrading some packages. There are mail options in /etc/make.conf, but sometimes depending on your ISP, using ssmtp or something locally is useful. There is also a “custom” action you can perform with elogs, so this is my custom action that mails the elogs to an off-host e-mail address:
PORTAGE_ELOG_SYSTEM=”save custom”
PORTAGE_ELOG_COMMAND=”echo ~s[`hostname`] Package \${PACKAGE} merged with notice > /tmp/portage_elog ; cat \${LOGFILE} >> /tmp/portage_elog ; cat /tmp/portage_elog | mail -I user@domain.com ”
Try the mail config in make.conf, and if it doesn’t meet your needs, try a custom action like this.