How to use emerge in Gentoo
Chances are if you have the know how to use Gentoo and made it thus far to get it installed you probably don’t need this tutorial, but it’s good to have as much documentation as possible. Emerge makes installing easy, just as apt-get would be Ubuntu, but in emerge we can install source built applications rather than binary applications, thus is the Gentoo way. And along with that is many more options for these packages. This tutorial will just cover the basics.
Emerge searches through the Portage Tree for applications. The Portage tree is a collection of ebuilds files that contain all information Portage needs to maintain software (install, search, query, …). These ebuilds reside in /usr/portage by default.
Whenever you ask Portage to perform some action regarding software titles, it will use the ebuilds on your system as a base. It is therefore important that you regularly update the ebuilds on your system so Portage knows about new software, security updates, etc.
Installing
emerge packagename
To install a package and update all packages it depends on:
emerge -u package
To update a package, all packages it depends on and all packages they depend on (–deep, just about everything):
emerge -uD package
Uninstall a program package:
emerge -C package
Search for packages (package names only):
emerge -s keyword
Search for packages (using their description):
emerge -S keyword
To sync your local list for available packages with the latest portage tree:
emerge sync
Only fetch sourcefiles
Only downloads (–fetchonly) archive (and dependencies), don’t build it:
emerge -f package
Update the entire system
You can at any point upgrade everything to the lastest available version. All it takes is (–update –deep):
emerge -uD world
Related Posts
Tags: emerge