How do I update a package in Gentoo Linux?

link|improve this question
you should try to search this on google first :) google.com.vn/… – nXqd Nov 20 '11 at 4:03
feedback

1 Answer

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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