Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I update a package in Gentoo Linux?

share|improve this question

This is what you need to read, an intro to portage, the package manager in Gentoo.

To update everything (including dependencies and changes to use flags), then

emerge -avDuN world

To update a single package (again paying attention to dependencies etc):

emerge -avDuN <package-name>

A basic update, without checking for dependency updates would be

emerge -avu <package-name>

The -a means "ask" which is for confirmation, and the -v means "verbose", to give more info about what it is doing.

share|improve this answer
Very good! Thanks a lot Paul! You only forgot of put the upgrade of the Portage before of update of programs: emerge --sync – gustavosiq Nov 20 '11 at 1:55
Yeah, but don't, put a file in /etc/cron.daily that does it for you. Syncing takes a long time so is best done overnight. – Paul Nov 20 '11 at 13:09
According to gentoo's crontab, cron.daily is ran at 3:01am – Jon Lin Nov 27 '11 at 23:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.