emerge

Emerge Cheatsheet #

emerge is the package manager for Gentoo Linux. It is used for installing, updating, and managing software packages.

Basic Commands #

Command/OptionExampleDescription
emerge <package>emerge vimInstall a package
emerge --unmerge <package>emerge --unmerge vimRemove a package
emerge --depcleanemerge --depcleanRemove unused dependencies
emerge --syncemerge --syncSynchronize the local Portage tree with the remote repository
emerge @worldemerge @worldUpdate all installed packages to their latest versions

Package Database and Updates #

Command/OptionExampleDescription
emerge --update <package>emerge --update systemUpdate a package or the entire system
emerge --deep <package>emerge --deep @worldPerform a deep update, considering dependencies
emerge --fetchonly <package>emerge --fetchonly vimDownload the package files without installing
emerge --pretend <package>emerge --pretend vimShow what would be done without actually performing the action

Searching and Querying #

Command/OptionExampleDescription
emerge --search <query>emerge --search vimSearch for packages in the Portage tree
emerge --searchdesc <query>emerge --searchdesc vimSearch for packages by description
emerge --info <package>emerge --info vimShow detailed information about a package
emerge --list-setsemerge --list-setsList available sets of packages

Miscellaneous #

Command/OptionExampleDescription
emerge --config <package>emerge --config vimRun the post-install configuration script for a package
emerge --ask <package>emerge --ask vimPrompt for confirmation before installing or removing packages
emerge --resumeemerge --resumeResume an interrupted merge process

This cheatsheet covers essential emerge commands and options for managing packages on Gentoo Linux.

emerge

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.