How do I update a package in Gentoo Linux?
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.
-
Very good! Thanks a lot Paul! You only forgot of put the upgrade of the Portage before of update of programs: emerge --sync Nov 20, 2011 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.– PaulNov 20, 2011 at 13:09
-
-
Dependency check is pretty weird though. I tried update my firefox and it told me I have to update linux-kernel as well. Doesn't look very legitimate to me.– PetrJan 27, 2017 at 15:15
-
1@Petr if you use
-D
then it checks the dependency tree for anything that also is due for updating, That doesn't mean FF needs the kernel updating, only that if you want to update everything that has an update ready that FF depends on, that that would include the kernel.– PaulJan 29, 2017 at 12:52