Aura-Emerge
AuraEmerge
GitHub Install

CLI flags

Every flag accepted by emerge — actions, modifiers, Gentoo-compat no-ops, and generated completions/man page.

The emerge(1) man page is generated from the same CLI definition via clap_mangen (emerge --gen-manpage), so it cannot drift from --help.

Shell completion: bash, zsh and fish are supported. The completions are generated from the CLI (emerge --gen-completions bash|zsh|fish) and installed by the package; emerge @<TAB> offers real set names. The eselect shim has its own hand-written completions (misc/eselect.bash-completion, misc/_eselect, misc/eselect.fish).

Actions

Flag Description
-s / --search Search packages: repos, then ABS, then AUR. Prefix aur/ or abs/ (-s abs/nano) limits the search to that source; --repos searches official repos only
-S / --searchdesc Search by description
-sv Detailed package info (version, maintainer, votes, popularity, homepage, license for AUR)
--search-all With -s: list the same name from every repo (like pacman -Ss)
-u / --update Full system upgrade (does not read world)
--devel With -u: also rebuild -git/-hg/-svn/-bzr whose upstream moved
--check-devel Report devel packages with upstream drift (no rebuild)
-C / --unmerge Remove packages (unmerge); shows selected/protected/omitted, 5 s countdown, then removes from world
-c / --depclean Remove orphans (world, @sets in world, package.protect and profile @system are kept); 5 s countdown like Portage
--show-protected With -c: list orphans kept only because they are in world
--sync Sync package databases (combine with -u: emerge -uat @world --sync)
--refresh Force -Syy (with --sync or -u)
--info System info (Gentoo-style): version, CPU/RAM, jobs, repositories, makepkg.conf / make.conf overrides, mask/world/log stats
--pkginfo <PKG>… Installed package details (-v also lists files)
--news [N|all] Arch Linux news; N reads one, all marks all read
--check-news Alias for --news
--prune Remove packages not in world
--localrepo-clean Drop packages from ae-aur/ae-abs/ae-local that are no longer installed (FEATURES="localrepo"; -p lists, -a asks)
--select Add to world without installing
--deselect Remove from world without unmerging
--check-world List world entries that are missing or not explicitly installed
--sync-explicit Mark explicit packages that are not in world, a world @set or package.profile as dependencies (so -c sees them). Alone: runs now (-p lists, -a asks); with an install/upgrade: runs after it succeeds. Allowed in EMERGE_DEFAULT_OPTS
--revdep-rebuild Find & fix binaries with broken library links
--undo Undo last install/unmerge/depclean (one step; -u not reversible). Asks first (Enter = No)
--resume Resume interrupted transaction
--skipfirst Skip first package on resume
--batchinstall <FILE> Mass-install from a text list (same format as a custom set; @set lines expand)
--usepkgbuild <PATH> Build+install a local PKGBUILD checkout (scanner + bwrap)
--usepkg <FILE>… Install built package archives (.pkg.tar.zst, …): pin → tarball audit → sha256 re-check → install; world Err/ + explicit unless -1
--scan Audit-only PKGBUILD/.install scan (AUR or --usepkgbuild); non-zero on findings
--clean-source-cache Wipe persistent VCS source cache
--regen Regenerate package metadata cache
--regen-world Re-resolve repo prefixes in world
--regen-sets <SET> Re-resolve prefixes for one custom set
--regen-sort With --regen-sets: also sort the file (drops comments)
--regen-world-from-explicit One-time migration: add explicit packages (pacman -Qeq) that are not in world, a world @set or package.profile to world; -p lists only, -a asks
--list-profiles List Portage-style profiles (eselect profile list)
--set-profile <N|PATH> Set the active profile (/etc/portage/make.profile): index from --list-profiles, or a path. Also via ln -s emerge eselect → eselect profile set N
--aelist List files left by AE Force (.aenew / .aeforce / .aepark)
--aeclean [KIND] Remove AE Force files: new | old | park | all (default all)

Source & build

Flag Description
-B / --buildpkgonly (-w / --getpkg) Archives only, no install (official → CacheDir; AUR/ABS/local → build)
-F / --fetch-all-uri (-f) Fetch only: official → archive; AUR/ABS → clone (no build/install)
--outdistfiles <DIR> With -B/-F: copy archives into DIR
--aur Force AUR (AUR-only deps resolved recursively)
--repos Official repos only (never AUR); does not conflict with --abs, conflicts with --aur
--abs Build from ABS (pkgctl), in bwrap sandbox
--no-sandbox Disable bwrap; plain makepkg
--unshare-net-build No network during build()/check()/package()
--skippgp Skip PGP checks (ABS)
--autopgp Auto-import missing PGP keys (ABS)
--edit Edit PKGBUILD in $EDITOR before build; regenerates .SRCINFO
--skip-srcinfo-regen With --edit: do not regenerate .SRCINFO
--with-optdeps Also install optional dependencies of official-repo packages
--pkgbuild-view Show/diff PKGBUILD, confirm before build
--aeforce AE Force: move files that block an install to <file>.aeforce and continue
--noaefile AE Force: leave no .ae* files (keep old, drop new; with --aeforce drop old)

Security-related

Flag Description
--scan Audit PKGBUILD, .install and neighbouring Makefile/shell scripts only; exit 1 on findings
--no-sandbox Turn off bwrap (warning printed); conflicts with --unshare-net-build; also skips the unsandboxed-fallback confirmation
--unshare-net-build Network off for build/check/package phases
--pkgbuild-view Human review gate before build

World & sets

Flag Description
--list-sets List available @sets
--err-install On @world, also try Err/ entries
--exclude <ATOM> Leave a package out of this run (repeatable / comma-separated)

Output & plan

Flag Description
-p / --pretend Dry run (print the plan, change nothing)
-a / --ask Ask before acting
-v / --verbose Verbose output
--debug Show makepkg/compiler output live (also AE_DEBUG=1, --quiet-build=n). By default it is hidden so the >>> lines stay readable; a failed build still dumps the captured log
--quiet-build [y|n] Gentoo-style: n = live build output (same as --debug); y / omitted = default quiet mode
--log <PATH> Write a session log (command, emerge.log lines, full build output) for bug reports — no | tee needed
--color [y|n|auto] Force colours on/off; auto follows the TTY / NO_COLOR
--nospinner No spinner / live progress redraws (for logs and dumb terminals)
--verbose-conflicts Verbose slot/conflict info (informational)
-t / --tree Show plan as a dependency tree
-D / --deep[=N] With -t: nest N levels, or every level if bare
--jobsr N Parallel official-repo installs (default from EMERGE_DEFAULT_OPTS / make.conf). N concurrent pacman transactions.
--jobsa N Parallel AUR/ABS builds. Each build still goes through scanner + sandbox; N concurrent compile jobs.
--jobs N Alias for --jobsr (Portage-style)
--load-average N Hold new AUR/ABS builds while the 1-minute load is above N (a build still starts when nothing else is running)
-1 / --oneshot Install as dependency (not added to world)
-n / --noreplace Update everything, but skip packages already at the same or newer version (no re-download / rebuild)
--sudoloop Keep sudo timestamp warm for the whole run
--keep-going Don’t stop a batch at the first failure; summarize at the end
--ignore-default-opts Ignore EMERGE_DEFAULT_OPTS from make.conf for this run

Batch & resume

Flag Description
--batchinstall <FILE> Mass-install from list file (@set lines expand)
--keep-going Continue after failures; non-zero exit + summary
--resume Resume an interrupted transaction (after --keep-going: retries only what failed)
--skipfirst Skip first package when resuming

Help, version, generated

Flag Description
-h / --help Help
-V / --version Version
--gen-completions <SHELL> Print shell completions (bash/zsh/fish) to stdout
--gen-manpage Generate emerge(1) man page to stdout
Gentoo compat
See Gentoo compat below for flags that are accepted and ignored. Parallelism here is --jobsr (repos) and --jobsa (AUR/ABS).

Gentoo compat (accepted, no-op)

Flag Description
-N / --newuse Include packages with changed USE (Arch has no USE flags)
-e / --emptytree Accepted; has no effect (use emerge @world to provision)
-A / --alert Accepted, no effect
--backtrack Accepted, no effect
--changed-use Accepted, no effect
-l / --changelog Accepted, no effect
--clean Accepted, no effect
--columns Accepted, no effect
--complete-graph Accepted, no effect
--config Accepted, no effect
--metadata Accepted, no effect
--newrepo Accepted, no effect
--noconfmem Accepted, no effect
-O / --nodeps Accepted, no effect
-o / --onlydeps Accepted, no effect
-q / --quiet Accepted, no effect
--reinstall Accepted, no effect
--with-bdeps Accepted, no effect

Environment & files

Name Description
AE_DEBUG=1 Environment: live makepkg/compiler output (same as --debug)
EMERGE_DEFAULT_OPTS make.conf: default modifier flags added before the command line (skip with --ignore-default-opts)
EMERGE_FREEZE make.conf: packages held at their installed version during -u (same as package.freeze)
/etc/portage/make.conf Default flags and build-env overrides (CFLAGS, MAKEFLAGS, FEATURES (AE-only: localrepo), COLORS, …); system path only
/etc/portage/package.mask Never-install list (file or directory); a hard stop, even for dependencies
/etc/portage/package.unmask Exceptions to package.mask and profile masks (file or directory)
/etc/portage/ae-repos.conf Pacman include for the local repos ae-aur/ae-abs/ae-local: Include = /etc/portage/ae-repos.conf
/var/lib/aura-emerge/repos/ Root-owned local repos filled with FEATURES="localrepo"
/etc/portage/package.protect Never-remove list: -C, -c, --prune, conflict removals
/etc/portage/package.freeze Never-upgrade list for -u (stricter than IgnorePkg)
/etc/portage/package.env, /etc/portage/env/ Per-package build-env overrides (AUR/ABS builds)
/etc/portage/world, /etc/portage/sets/ World file and custom @sets (<name> or <name>.set)
/etc/portage/make.profile Symlink to the active profile (--list-profiles, --set-profile)
/etc/portage/hooks/ User alpm hooks (*.hook), run by libalpm like /usr/share/libalpm/hooks/ and /etc/pacman.d/hooks/
/var/log/emerge.log Append-only merge/unmerge log with build time; totals shown in --info