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