Getting started with emerge
Emerge is the front-end for funtoo's Portage package manager. With emerge it is easy to install, update or remove packages.
Update Package Database
Sync local package database. This will update your local Portage tree with the latest Funtoo ebuilds.
# emerge --sync
Search packages by name.
# emerge -s firefox # emerge --search firefox
Search packages by description.
# emerge -S web browser # emerge --searchdesc web browser
# emerge firefox
Install multiple packages.
# emerge firefox thunderbird
Install package. Ask for confirmation before performing any changes. Show verbose output.
# emerge -av firefox # emerge --ask firefox
# emerge -C firefox # emerge --unmerge firefox
Remove package. Ask for confirmation before performing any changes.
# emerge -aC firefox
Remove orphaned packages. Ask for confirmation before performing any changes.
# emerge -a --depclean
Update all packages.
# emerge -uDN @world
Update all packages. Ask for confirmation before performing any changes. Show verbose output.
# emerge -uavDN @world
When upgrading to a new version of perl, it is necessary to also run
# emerge -auvDN @world # perl-cleaner --all
This requirement of running
perl-cleaner will eventually go away, once all perl-related ebuilds are updated to EAPI 5. EAPI 5 is a version of the Ebuild specification that supports smart updating of perl-related bits.