← 返回命令列表

Linux command

emerge 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Synchronize

sudo emerge --sync

Update

sudo emerge [-avuDN|--ask --verbose --update --deep --newuse] @world

Resume

sudo emerge --resume --skipfirst

Install

sudo emerge [-av|--ask --verbose] [package]

Remove

sudo emerge [-avc|--ask --verbose --depclean] [package]

Example

sudo emerge [-avc|--ask --verbose --depclean]

Search

emerge [-S|--searchdesc] [keyword]

说明

emerge is the Gentoo Linux package manager. It installs, updates, and removes packages by compiling them from source according to USE flags and system configuration. Manages the entire software lifecycle including dependency resolution and slot conflicts.

参数

--sync
Synchronize package database
-a, --ask
Ask before proceeding
-v, --verbose
Verbose output
-u, --update
Update packages
-D, --deep
Consider entire dependency tree
-N, --newuse
Rebuild for USE flag changes
--depclean
Remove unneeded packages
-S, --searchdesc
Search package descriptions
--resume
Resume interrupted operation
--skipfirst
Skip first package when resuming

FAQ

What is the emerge command used for?

emerge is the Gentoo Linux package manager. It installs, updates, and removes packages by compiling them from source according to USE flags and system configuration. Manages the entire software lifecycle including dependency resolution and slot conflicts.

How do I run a basic emerge example?

Run `sudo emerge --sync` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --sync do in emerge?

Synchronize package database