When updating a package using emerge or ebuild, how do I avoid clobbering my config files?
Portage now includes config file management support by default. Type emerge –help config for more details. The (overly) simple answer is that if a package installs foo somewhere under /etc, and another foo already exists there, then the new foo will instead be renamed to ._cfgxxxx_foo in that directory. A useful tool for examining and updating any protected config files is etc-update, currently obtained by emerge app-admin/gentoolkit.