Emerge Cheatsheet
#
emerge
is the package manager for Gentoo Linux. It is used for installing, updating, and managing software packages.
Basic Commands
#
Command/Option | Example | Description |
---|
emerge <package> | emerge vim | Install a package |
emerge --unmerge <package> | emerge --unmerge vim | Remove a package |
emerge --depclean | emerge --depclean | Remove unused dependencies |
emerge --sync | emerge --sync | Synchronize the local Portage tree with the remote repository |
emerge @world | emerge @world | Update all installed packages to their latest versions |
Package Database and Updates
#
Command/Option | Example | Description |
---|
emerge --update <package> | emerge --update system | Update a package or the entire system |
emerge --deep <package> | emerge --deep @world | Perform a deep update, considering dependencies |
emerge --fetchonly <package> | emerge --fetchonly vim | Download the package files without installing |
emerge --pretend <package> | emerge --pretend vim | Show what would be done without actually performing the action |
Searching and Querying
#
Command/Option | Example | Description |
---|
emerge --search <query> | emerge --search vim | Search for packages in the Portage tree |
emerge --searchdesc <query> | emerge --searchdesc vim | Search for packages by description |
emerge --info <package> | emerge --info vim | Show detailed information about a package |
emerge --list-sets | emerge --list-sets | List available sets of packages |
Miscellaneous
#
Command/Option | Example | Description |
---|
emerge --config <package> | emerge --config vim | Run the post-install configuration script for a package |
emerge --ask <package> | emerge --ask vim | Prompt for confirmation before installing or removing packages |
emerge --resume | emerge --resume | Resume an interrupted merge process |
This cheatsheet covers essential emerge
commands and options for managing packages on Gentoo Linux.