tldr/pages/linux/emerge.md

34 lines
738 B
Markdown
Raw Normal View History

2014-02-27 14:03:21 +00:00
# emerge
> Gentoo Linux package manager utility.
> For equivalent commands in other package managers, see <https://wiki.archlinux.org/title/Pacman/Rosetta>.
> More information: <https://wiki.gentoo.org/wiki/Portage#emerge>.
2014-02-27 14:03:21 +00:00
- Synchronize all packages:
2014-02-27 14:03:21 +00:00
`emerge --sync`
- Update all packages, including dependencies:
2014-02-27 14:03:21 +00:00
`emerge -uDNav @world`
- Resume a failed updated, skipping the failing package:
2014-02-27 14:03:21 +00:00
`emerge --resume --skipfirst`
- Install a new package, with confirmation:
2014-02-27 14:03:21 +00:00
`emerge -av {{package_name}}`
2014-02-27 14:03:21 +00:00
- Remove a package, with confirmation:
2014-02-27 14:03:21 +00:00
`emerge -Cav {{package_name}}`
2014-02-27 14:03:21 +00:00
- Remove orphaned packages (that were installed only as dependencies):
2014-02-27 14:03:21 +00:00
`emerge -avc`
- Search the package database for a keyword:
2014-02-27 14:03:21 +00:00
`emerge -S {{keyword}}`