Aura-Emerge
AuraEmerge
GitHub Install

Documentation

Full reference for world, make.conf, mask, sandbox, scanner, and everyday usage — the README in page form.

Installation

AUR helper

paru -S aura-emerge
# or
yay -S aura-emerge

Makepkg

git clone https://aur.archlinux.org/aura-emerge.git
cd aura-emerge
makepkg -si
Helper — special conditions
Root helper (--ae-service) starts only if /usr/bin/emerge is root:root and not group/world-writable (755), uid is 0, stdin/stdout are pipes (no TTY) and the parent is alive. File conflicts on -Su/-U fall back to AE Force instead of aborting the upgrade.

Dependencies

  • Required: git, sudo, bubblewrap, pacman (libalpm), gnupg (keyring, --autopgp)
  • Optional: devtools (--abs)

bubblewrap is required for AUR/ABS builds; the only way around it is an explicit --no-sandbox.

Binary name
The installed binary is emerge (with portageq and eselect symlinks). Completions (bash/zsh/fish) and the man page ship with the package and are generated from the CLI definition.

World & sets

Path: /etc/portage/world. Every explicitly installed package is added automatically and removed on unmerge. You can edit it by hand: one package per line, optional repo prefix. State writes (world, resume.state, lastaction.state) take a cross-process advisory lock (/etc/portage/.state.lock), so two parallel emerges cannot interleave a read-modify-write.

cachyos-extra-v3/rust-analyzer
aur/ayugram-desktop-bin
abs/nano-custom
extra/firefox
Err/local-thing

Prefixes: the name of any sync repository (third-party ones included), aur/, abs/, or Err/ (source unknown).

$ rg keyring /etc/portage/world
cachyos/archlinux-keyring
cachyos/cachyos-keyring
chaotic-aur/chaotic-keyring

Two meanings of @world

  • emerge @world (no -u) — provision: install whatever world lists that is not on the system yet.
  • emerge -u @world (or emerge -u) — upgrade: upgrade everything already installed. It does not read world.
  • emerge --sync — database refresh only.

Custom sets

/etc/portage/sets/<name>.set is invoked as @<name>. One atom per line, # comments allowed. Sets combine freely with each other and with plain packages:

emerge @game-kit @dev-tools neovim
emerge --list-sets

A set file may name other sets as @other (expanded recursively, cycle-safe). Installing @name records @name in world, so its members stay protected from depclean until you remove them from the set file. -s @name shows where each member comes from (repo / aur / not found).

Entries without a prefix are resolved through the official repos first, and through the AUR only if that misses — here ttf-comic-sans comes from the AUR:

$ emerge -at @fonts
>>> Not found in official repos: 'ttf-comic-sans'. Searching AUR...

These are the packages that would be merged, in order:

Calculating dependencies... done!

[ebuild  R ] noto-fonts-1:2026.09.01-1
[ebuild  R ] noto-fonts-emoji-1:2.051-1
[ebuild  R ] ttf-material-icons-2.874-1
[ebuild  R ] aur/ttf-comic-sans-5.14-1
[ebuild  R ] `-- gnu-free-fonts-20120503-9

Total: 8 package(s)

--regen-world / --regen-sets @name re-resolve repo prefixes. Add --regen-sort to alphabetize a set (this drops comments and grouping).

Layout of /etc/portage

/etc/portage/
├── make.conf
├── env/                 # env files for package.env
├── package.env/         # a file, or a directory of files
├── make.profile ->      # profile symlink (see Profiles)
├── package.mask/        # a file, or a directory of files
├── package.protect/     # never remove
├── package.freeze/      # never upgrade
├── hooks/               # user alpm hooks (*.hook)
├── sets/                # custom sets: <name>.set
├── world
├── lastaction.state     # emerge's own state files
└── resume.state

Upgrade + sync in one go

$ emerge -uat @world --sync
>>> Syncing package databases...
>>> core... done
>>> extra... done
>>> chaotic-aur... done
 * IMPORTANT: 9 news item(s) need reading for repository 'arch'.
 * Use emerge --news to view new items.

Calculating dependencies ... done!

>>> Upgrading system (official repos)...
>>> holding back 1 package(s) (--exclude / /etc/portage/package.mask): artix-keyring

[ebuild U   ] harfbuzz [14.5.1-1.1 -> 14.6.0-1.1]
[ebuild U   ] nano [9.2-1 -> 9.2-1.1]
[ebuild U   ] tailscale [1.102.4-1.1 -> 1.102.5-1.1]

Total: 4 official package(s) to upgrade
>>> No AUR packages out of date.
Would you like to merge these packages? [Yes/No] y
>>> Jobs: 4 of 4 complete

make.conf

/etc/portage/make.conf is aura-emerge's own config (not makepkg.conf). Only the system path is read — there is no per-user make.conf.

A real config from a working machine:

EMERGE_DEFAULT_OPTS="--jobsr=8 --tree --deep"
COLORS="ok=#FFB3AE warn=#E7BDB9 error=#FDB1AC info=#E7BDB9 special=#cba6f7"
CFLAGS="-march=znver3 -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fstack-protector-strong -falign-functions=32 -falign-loops=32 -ftree-vectorize -funroll-loops"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
CPPFLAGS="$CFLAGS"

RUSTFLAGS="-C target-cpu=znver3 -C opt-level=3 -C codegen-units=1 -C target-feature=+avx2,+fma,+bmi1,+bmi2,+aes,+sha,+sse4.2,+popcnt,+vaes,+vpclmulqdq,+movbe,+f16c"

LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--no-as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs"

MAKEFLAGS="-j16"
NINJAFLAGS="-j16"

BUILDENV="!distcc color check !sign"
OPTIONS="strip docs !libtool !staticlibs emptydirs zipman purge !debug !lto"

FEATURES="localrepo"
  • Syntax: flat shell-style assignments — KEY="value", KEY='literal', KEY=(a b c). Lines starting with # are comments. Values are shell-expanded, so -j$(nproc) and CXXFLAGS="$CFLAGS" work.
  • Build flags are applied through a generated makepkg.conf passed to makepkg --config. Each build says so:
>>> applying build flags from /etc/portage/make.conf
>>> caching sources under /home/user/.cache/aura-emerge/sources -- VCS sources (-git/-hg/-svn) fetch incrementally on rebuild instead of re-cloning; pass SRCDEST in makepkg.conf to change this.
  • Source cache: sources are cached under ~/.cache/aura-emerge/sources; VCS sources (-git/-hg/-svn) are fetched incrementally on rebuild instead of re-cloned. Set SRCDEST in makepkg.conf to change the location.
  • EMERGE_DEFAULT_OPTS is spliced into every run and accepts only an allowlist of modifier flags — not actions such as --unmerge.
  • COLORS sets status-line palette: role=colour for ok, warn, error, info, special (#RRGGBB or named colours).
  • FEATURES is AE-only: it switches aura-emerge's own functions and never maps onto makepkg (ccache/check/strip go into BUILDENV/OPTIONS). The only token is localrepo (see Local repos); -name turns a token off, unknown tokens are shown by --info but do nothing.
  • Conflicts: contradicting pairs (--aur/--abs, --no-sandbox/--unshare-net-build, …) are rejected, or the config side is dropped when the command line is more specific.
  • --ignore-default-opts skips the defaults for one run; emerge --info shows the loaded files and the expanded values.

package.mask

/etc/portage/package.mask lists packages this machine never installs. It is a standing decision, not a prompt: a masked package is refused even when its PKGBUILD is clean, when it is pulled in as a transitive AUR dependency, or when you request it by name.

ayugram-desktop-bin            # bare name: any source
aur/*-bin                      # only from the AUR, '*' allowed
extra/nano                     # only from that official repo
*-git                          # anything matching, any source

File or directory

Like Portage, the path may be a single file or a directory. In a directory every regular file is read — any name, no extension needed, dotfiles skipped — in filename order.

A real directory-style mask and what it does:

$ cat /etc/portage/package.mask/emacs.mask
emacs
emacs-*
ecb
semi

$ emerge emacs

 * The following package(s) are masked and will not be installed:

  emacs
    masked by emacs (/etc/portage/package.mask/emacs.mask:1)

 * Edit /etc/portage/package.mask (a file, or a directory of files) to change that.

Entry syntax

  • One entry per line; blank lines and lines starting with # are ignored.
  • An optional repo/ prefix (aur, abs, or an official repo name) limits the entry to that source. Without it the entry matches everywhere.
  • * matches any run of characters. Other allowed characters: letters, digits and @ . _ + -.
  • A trailing # reason is shown when the mask fires.
  • An invalid entry is skipped with a warning that names the file and line. Version-scoped atoms (=cat/foo-1.2, >=…, ~…) are rejected loudly: masks work on names, not versions.

Safety

A mask file that is a symlink is refused with a warning — the file is not read.

When a mask fires, aura-emerge lists each package with the entry that blocked it (file:line) and its reason. Explicitly requested packages abort the run rather than being quietly filtered. For a one-run skip use --exclude instead.

package.unmask

/etc/portage/package.unmask (file or directory, same syntax as package.mask) lists exceptions: a package that matches it is let through even if package.mask or the active profile's package.mask would block it. The root helper honors it too. It is the only way past a mask.

aur/some-git                   # allowed although *-git is masked

package.env

/etc/portage/package.env gives individual packages their own build flags. Each entry names a package and one or more env files from /etc/portage/env/; those files are laid over make.conf for that package's build only.

$ cat /etc/portage/package.env/neovim
abs/neovim lto.conf

$ cat /etc/portage/env/lto.conf
CFLAGS="-march=znver3 -O2 -pipe -fno-plt -ftree-vectorize"
MAKEFLAGS="-j16"
OPTIONS="strip docs !libtool !staticlibs emptydirs zipman purge !debug lto"

The build says which files it used:

$ emerge --abs neovim
>>> Emerging (1 of 1) abs/neovim-0.12.5 (ABS)
…
>>> applying build flags from /etc/portage/make.conf, /etc/portage/env/lto.conf

File or directory

Same as package.mask: package.env may be one file or a directory. In a directory every regular file is read — any name, dotfiles skipped — in filename order.

Entry syntax

  • One entry per line: an atom, then one or more env file names separated by spaces. Blank lines and # comments are ignored.
  • The atom follows the package.mask rules: optional repo/ prefix (aur or abs), * allowed. Without a prefix it matches any source.
  • Env files use make.conf syntax. Only the build variables count (CFLAGS, CXXFLAGS, MAKEFLAGS, OPTIONS, …); EMERGE_DEFAULT_OPTS is ignored with a warning.
  • A package matches by its pkgbase or by any of its pkgnames from .SRCINFO.

Layering

Order of application: make.conf, then every matching entry in file and line order, then each env file in the order it is named on the line. The last layer to set a variable wins, and the variable is replaced as a whole, not merged: an OPTIONS array in an env file replaces the one from make.conf, so list every option you want.

If two layers set the same variable to different values, the build tells you which one won:

>>> Warning: package.env: CFLAGS = '-O0' from /etc/portage/package.env/20-b:1 [slow] overrides '-O3 -pipe' from /etc/portage/package.env/10-a:1 [fast.conf]

Safety

A symlinked package.env file or env file is refused with a warning. An invalid entry, or an env file that is missing or unreadable, is skipped with a warning naming the file and line; the rest still applies.

Only AUR and ABS builds are affected — official packages are installed by pacman and not built here.

package.protect / package.freeze

Two sibling lists to package.mask, same syntax (optional repo/ prefix, * globs, # comment; a file or a directory of files):

  • /etc/portage/package.protect — packages that must not be removed: -C, -c, --prune and conflict-driven removals. --deselect may still drop the name from world, but the package stays installed and depclean skips it.
  • /etc/portage/package.freeze (and EMERGE_FREEZE="a b *-git" in make.conf) — packages held at the installed version during -u, including AUR/ABS rebuilds. Stricter than pacman's IgnorePkg: it also applies to a selective emerge -u pkg.
# /etc/portage/package.protect
linux-cachyos-bore
extra/linux-firmware     # never unmerge

# /etc/portage/package.freeze
aur/*-git
nvidia-open-dkms

Held-back packages are reported once per run: >>> holding back 1 package(s) …. Members of the profile's @system are protected from depclean in the same way.

Profiles / @system / eselect

/etc/portage/make.profile is a symlink to a profile directory in Portage layout; profile trees live under /var/db/repos/portage/profiles. A profile may define parent (chains are expanded depth-first), packages (a *name line puts the package into the @system bootstrap set), package.mask and make.defaults. emerge @system installs that set.

emerge --list-profiles                    # numbered list, current one marked *
sudo emerge --set-profile 12              # by index, or by path
# or the eselect shim:
sudo ln -sf /usr/bin/emerge /usr/bin/eselect
eselect profile list | show | set 12

The shim only implements the profile module. emerge --info prints profile: none … while no profile is set.

--exclude / --keep-going

--exclude

--exclude <atom> (repeatable or comma-separated) leaves a package out of the current run: installs, -u, @world, depclean/prune and revdep.

emerge -u --exclude linux --exclude aur/ayugram-desktop-bin
emerge --exclude firefox @world

Names are compared bare, so --exclude extra/nano and --exclude nano both skip nano. Skipped packages are reported: >>> N package(s) skipped by --exclude: …. Unlike package.mask, an exclude is not persistent: it applies to one run only. A resume keeps it: --resume / --resume --skipfirst replay the saved --exclude=<value> tokens, so the retry skips the same packages.

--keep-going

Without it a batch stops at the first failure. With --keep-going every failed atom is recorded together with a short reason (each atom once), the rest of the batch continues, and an end-of-run summary is printed to stderr.

>>> Warning: the following package(s) were not found anywhere (official repos or AUR) and were skipped:
    aur/foo
…
>>> Warning: not all requested packages were installed successfully.
>>> 1 package(s) failed; `emerge --resume` will retry just those.

 * The following 1 package(s) failed to build or install:

  aur/foo (not found in official repos or the AUR)

 * Everything else in this run completed. Retry just the failures with emerge --resume.

The exit code is non-zero if anything failed. emerge --resume then retries only the failed packages.

-t / --tree, --deep

--tree prints the plan as a dependency tree (emerge -pt style). By default one level is nested; --deep nests the full chain and --deep=N caps it at N levels.

emerge -apt noctalia --aur
emerge -pt noctalia --aur --deep
emerge deepin-session --ask --tree --deep=3

A real run — the requested package is at the top of the tree, while installation goes bottom-up, so dependencies are built before the packages that need them:

$ emerge -at system/openssh-openrc --deep

These are the packages that would be merged, in order:

Calculating dependencies... done!

[ebuild  N ] openssh-openrc-20210505-1
[ebuild  N ] `-- openrc-0.63.3-2
[ebuild  N ]   `-- artix-cgroups-0.7.2-1
[ebuild  N ]   `-- inetutils-2.8-1.1
[ebuild  N ]   `-- netifrc-0.7.14-1
[ebuild  N ]   `-- libeinfo-0.63.3-2

Total: 6 package(s)

>>> Verifying ebuild manifests
>>> Emerging (1 of 6) artix-cgroups-0.7.2-1
>>> Emerging (2 of 6) inetutils-2.8-1.1
>>> Emerging (3 of 6) netifrc-0.7.14-1
>>> Emerging (4 of 6) libeinfo-0.63.3-2
>>> Emerging (5 of 6) openrc-0.63.3-2
>>> Emerging (6 of 6) openssh-openrc-20210505-1
...
:: Продовжити встановлення? [Y/n] n
  • N — new package, R — reinstall.
  • Packages from the AUR are shown with their aur/ prefix.
  • An atom may carry a repo prefix on the command line, as in system/openssh-openrc.

Merge / unmerge log

/var/log/emerge.log is an append-only, human-readable record of merges and unmerges — Portage's emerge.log for pacman/AUR/ABS atoms. One line per event:

2026-09-21 08:51:44  MERGE    aur    noctalia-5.1.0-1.1        (12s)
2026-09-21 08:52:10  MERGE    aur    libqalculate-5.12.0-1.1   (9s)
2026-09-21 09:03:02  MERGE    extra  nano-8.0-1  vim-9.1-1     (4s)
2026-09-21 09:10:05  UNMERGE  -      old-package-2.0-1
  • Durations are real. AUR/ABS packages build one at a time, so each gets its own timer. A pacman -S/-R batch is a single transaction: it is logged as one line with every atom and the batch's total time.
  • Time format: 12s, 1m5s, 1h2m3s.
  • Writing: the file is root-owned, so lines are appended through sudo tee -a. Logging is best-effort — a failed write is silent and never fails or slows a merge that already happened. The file is opened for append only — an existing log is never overwritten.
  • emerge --info reads the log and shows the number of merges and unmerges plus the cumulative build time. If the file is missing or unreadable, that line is simply omitted.

Arch news

emerge --news reads the Arch Linux news feed, eselect-news style. Manual interventions are announced there, so check it before a big upgrade.

emerge --news          # list the 30 latest, unread marked N
emerge --news 3        # read item 3 (marks it read)
emerge --news all      # mark everything as read
$ emerge --news
>>> Fetching Arch Linux news...
>>> Arch Linux News (https://archlinux.org/news/)
   1  [N]  22 Sep 2026  Mkinitcpio >=42 requires manual intervention for TPM2-based unlocking of LUKS devices
   2  [N]  21 Jul 2026  virtualbox-ext-vnc >= 7.2.12-2 requires manual intervention
   3  [ ]  12 Jun 2026  Active AUR malicious packages incident

>>> 2 new news item(s). Use `emerge --news <N>` to read one, `emerge --news all` to dismiss all.
  • Read state is kept per user in ~/.cache/aura-emerge/news.state — no root needed.
  • Before -u, a quick heads-up shows how many news items are unread. If the feed cannot be fetched the upgrade is never blocked.
  • If the feed is unreachable, --news itself exits with an error.

Usage highlights

emerge neovim                              # repos → AUR fallback
emerge neovim-git --aur                    # AUR only, recursive AUR deps
emerge neovim --repos                      # official repos only
emerge neovim --abs                        # ABS in bwrap
emerge abs/nano aur/setrixtui              # source prefixes
emerge -u @world                           # full upgrade (does not read world)
emerge @world                              # provision from world
emerge -u --exclude linux --keep-going     # upgrade, skip one, don't stop on failure
emerge -at @fonts --deep                   # sets, tree plan
emerge --scan neovim-git --aur             # audit only
emerge --usepkgbuild ~/src/my-pkg     # local PKGBUILD (scanner + sandbox)
emerge --usepkg ./foo-1.0-1-x86_64.pkg.tar.zst  # built archive (pinned + audited)
emerge --localrepo-clean                       # drop ae-* entries that are no longer installed
emerge -u --devel                          # upgrade + rebuild moved -git
emerge --revdep-rebuild                    # broken shared-library links
emerge --batchinstall pkgs.txt             # mass-install from list
emerge -cp --show-protected                # orphans, incl. those kept by world
emerge --news                              # Arch news
emerge --undo                              # undo last install/unmerge/depclean
emerge --resume                            # resume interrupted run

See the Flags page for the full table.

Mixed sources + parallel jobs

Repo packages, ABS and AUR in one plan; --jobsr / --jobsa control parallelism for official installs and AUR/ABS builds:

$ emerge -at aur/setrixtui cachyos-extra-v3/neovim abs/nano --jobsr=7 --jobsa=2

These are the packages that would be merged, in order:

[ebuild  R ] abs/nano-9.2-1
[ebuild  R ] cachyos-extra-v3/neovim-0.12.5-1.1
[ebuild  R ] aur/setrixtui-0.4.1-1

Total: 3 package(s)
Would you like to merge these packages? [Yes/No] y
>>> Installing (1 of 3) cachyos-extra-v3/neovim-0.12.5-1.1
>>> Scanning AUR PKGBUILDs and .install hooks for suspicious patterns...
>>> Compiling (2 of 3) abs/nano-9.2-1
>>> Compiling (3 of 3) aur/setrixtui-0.4.1-1
>>> Jobs: 3 of 3 complete

Transaction hooks

Pre/post-transaction hooks (DKMS, initramfs, …) show up live during repo installs:

$ emerge -at linux-zen linux-zen-headers --jobsr=10
...
Would you like to merge these packages? [Yes/No] y
>>> Running pre-transaction hooks...
>>> (1 of 1) Remove upgraded DKMS modules
>>> Emerging (1 of 2) extra/linux-zen-7.2.9.zen1-1
>>> Emerging (2 of 2) extra/linux-zen-headers-7.2.9.zen1-1
>>> Running post-transaction hooks...
>>> (1 of 4) Arming ConditionNeedsUpdate...
>>> (2 of 4) Updating module dependencies...
>>> (3 of 4) Install DKMS modules
>>> (4 of 4) Updating initramfs with dracut
>>> Jobs: 2 of 2 complete

Examples from a real system

Search

-sv adds maintainer, votes, popularity and license for AUR hits. --repos restricts the search to the sync repos; masked packages are flagged [ Masked ]. An abs/ prefix searches ABS.

$ emerge -sv ttf-comic-sans
[ Results for search key : ttf-comic-sans ]
Searching...

*  aur/ttf-comic-sans
      Latest version available: 5.14-1
      Latest version installed: 5.14-1
      Maintainer:    Adiee5
      Votes:         7
      Popularity:    0.57
      Last Updated:   2023-08-02
      Description:   The famous sans-serif font
      License:        custom:Desktop font license

[ Applications found : 1 ]
$ emerge -s emacs --repos
[ Results for search key : emacs ]
Searching...

*  extra/emacs [ Masked ]
      Latest version available: 31.1-2
      Description:   The extensible, customizable, self-documenting real-time display editor

*  extra/cl-swank
      Latest version available: 2.32-1
      Description:   Superior Lisp Interaction Mode for Emacs (Lisp-side server)
...
[ Applications found : 17 ]
$ emerge -s abs/nano
[ Results for search key : nano ]
Searching...

*  abs/nano
      Latest version available: 9.2-1
      Description:   Pico editor clone with enhancements

*  abs/nano-syntax-highlighting
      Latest version available: 2025.07.01.r0.g256995b-2
...
[ Applications found : 9 ]

Install by source prefix

abs/name is the same as name --abs; aur/name as name --aur. The prefix is recorded in world. --oneshot installs without touching world.

$ emerge abs/nano

These are the packages that would be merged, in order:

Calculating dependencies ... done!

[ebuild  R ] abs/nano-9.2-1 (ABS)

Total: 1 package(s)

>>> Emerging (1 of 1, 100%) abs/nano-9.2-1
>>> Installing (1 of 1) abs/nano-9.2-1
>>> applying build flags from /etc/portage/make.conf
>>> Running post-transaction hooks...
>>> Completed (1 of 1) abs/nano-9.2-1
>>> Jobs: 1 of 1 complete
$ emerge setrixtui --aur
...
[ebuild  R ] aur/setrixtui-0.4.1-1

>>> Scanning AUR PKGBUILDs and .install hooks for suspicious patterns...
>>> Emerging (1 of 1, 100%) aur/setrixtui-0.4.1-1
>>> Installing (1 of 1) aur/setrixtui-0.4.1-1
>>> applying build flags from /etc/portage/make.conf
>>> Completed (1 of 1) aur/setrixtui-0.4.1-1
>>> Jobs: 1 of 1 complete  1m01s
$ emerge --oneshot neofetch ttf-comic-sans htop
>>> Not found in official repos: 'neofetch, ttf-comic-sans'. Searching AUR...
...
[ebuild  N ] cachyos-extra-v3/htop-3.5.3-1.1
[ebuild  N ] aur/neofetch-7.1.0-2
[ebuild  R ] aur/ttf-comic-sans-5.14-1

Depclean and protected world entries

Orphans that are listed in world are skipped; --show-protected lists them. Removal starts with a 5-second Portage-style countdown.

$ emerge -cp --show-protected
Calculating dependencies ... done!
>>> Checking for orphaned packages...

>>> 1 orphan(s) not removed (listed in world, install reason is dependency):
    ttf-comic-sans

[unmerge] htop
[unmerge] neofetch

Total: 2 orphaned package(s) to remove

$ emerge -c
>>> 1 package(s) skipped (tracked in world). Pass --show-protected to list them.
...
>>> Waiting 5 seconds before starting...
>>> (Control-C to abort)...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 2) cachyos-extra-v3/htop-3.5.3-1.1...
>>> Unmerging (2 of 2) neofetch-7.1.0-2...

Unmerge

Selected, protected and omitted packages are shown before anything is removed; pacman hooks run around the removal.

$ emerge --unmerge linux-zen
 * This action can remove important packages! In order to be safer, use
 * `emerge -pc` to check for orphaned packages before
 * removing packages.

 extra/linux-zen
    selected: 7.2.11.zen1-1
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

>>> Waiting 5 seconds before starting...
>>> Unmerging in: 5 4 3 2 1
>>> Unmerging (1 of 1) extra/linux-zen-7.2.11.zen1-1...
>>> Running pre-transaction hooks...
>>> (1 of 1) Removing initramfs with dracut
>>> Running post-transaction hooks...
>>> Removing from world...

Sync, refresh, info

--sync refreshes the databases, --refresh forces it (-Syy). --info prints the system, repositories, effective make.conf overrides, mask/world counts and log totals.

$ emerge --sync
>>> Syncing package databases...
>>> core... done
>>> extra... done
>>> chaotic-aur... done

$ emerge --refresh
>>> Syncing package databases (force refresh)...
>>> core... done
>>> extra... done
$ emerge --info
aura-emerge 3.0.23-beta (alpm crate v5.0.2 - libalpm v16.0.1, linux 7.2.9-2-cachyos-bore, x86_64)
======================================================================
System uname: Linux 7.2.9-2-cachyos-bore #1 SMP PREEMPT_DYNAMIC x86_64
profile: none (/etc/portage/make.profile not set)
CPU: AMD Ryzen 7 7435HS
Jobs:       --jobsr=8 (repo), --jobsa=1 (aur/abs)

Repositories:

core
    priority: 8 (order of appearance in /etc/pacman.conf)
    Include = /etc/pacman.d/mirrorlist  (Server = https://…/$repo/os/$arch)
...
make.conf: /etc/portage/make.conf
    EMERGE_DEFAULT_OPTS="--jobsr=8 --tree --deep"
    CFLAGS="-march=znver3 -O2 …"  (overrides makepkg.conf)
mask: 8 entry(ies) (/etc/portage/package.mask)

world: 86 package(s), 2012 bytes (/etc/portage/world)
log: 344 merge(s), 45 unmerge(s), 5h34m23s total build time (/var/log/emerge.log)

@preserved-rebuild

Checks declared dependencies of every installed package and offers to reinstall the missing ones (as dependencies).

$ emerge -a @preserved-rebuild
>>> Checking installed packages for missing dependencies...

[ebuild N   ] xxd

Total: 1 missing dependency

>>> Reinstall the missing dependencies above? [y/N] y

Progress, Jobs line and source cache

Every stage line carries plan progress: >>> Emerging (3 of 12, 25%) extra/nano-9.2-1. The live footer shows the job state and load; it ends as >>> Jobs: 23 of 23 complete 2m04s Load avg: 7.31, 3.71, 2.48, and while running reads like Jobs: 0 of 6 complete, 1 running, 5 merge wait.

  • Quiet builds by default. makepkg/compiler output is hidden to keep the >>> lines readable; --debug (or AE_DEBUG=1) shows it live, and a failed build always dumps the captured log. --log PATH writes a session log for bug reports.
  • Heartbeat. During a quiet build a line every 30 s reports the pid and memory (still building … process alive). If the build is killed (OOM / SIGKILL), that is reported explicitly instead of looking like a compiler error.
  • Source cache. SRCDEST defaults to ~/.cache/aura-emerge/sources for all AUR/ABS builds, not only VCS ones; PKGBUILD checkouts persist under ~/.cache/aura-emerge/build/{aur,abs}/ and are refreshed in place. A SRCDEST in makepkg.conf wins. Wipe the cache with emerge --clean-source-cache.
  • Harmless noise. libfakeroot internal error: payload not recognized! inside the sandbox is an upstream fakeroot message; the package still builds. It is intentionally not filtered.

--undo / --batchinstall / --check-world

  • --undo reverses the last successful install, unmerge or depclean (one step). It asks before doing anything (Enter = No; -p shows the plan without asking). After an install it removes only packages that were new in that run and brings back installed packages that were removed as blockers; after an unmerge it reinstalls from the recorded source (Err/ and abs/ are only listed); after a depclean it reinstalls the removed orphans as dependencies (not added to world) — repo packages from the repos, local builds through the AUR if it still has them; you are told if the repos now carry a different version, and a package that is gone everywhere is listed with the pacman -U line for its cached file. If some packages fail, only those stay in the saved state, so --undo can be run again. -u is not reversible. State: /etc/portage/lastaction.state.
  • --batchinstall FILE installs every atom in a plain-text list (one per line, # comments) — the custom-set format, but from any path with no registration -- @set lines expand exactly as they would in a real set. It combines with -p, -a, --aur, --abs, --repos, …
  • --check-world lists world entries that are missing or not explicitly installed.
  • --sync-explicit marks every explicitly installed package that is not in world, a world @set or package.profile as a dependency, so -c can see it. Alone it runs now (-p lists, -a asks); with an install or upgrade it runs after that succeeds.
  • --resume continues an interrupted run (--skipfirst drops the first package); after --keep-going it retries only what failed. State: /etc/portage/resume.state.
emerge --batchinstall pkgs.txt -a
emerge --check-world
emerge --sync-explicit -p
emerge --undo
emerge --resume --skipfirst

AE Force (--aeforce / --noaefile)

When a package wants to install a file that no package owns, the install is blocked. AE Force decides what happens to such files, Portage CONFIG_PROTECT-style:

FlagsResult
(none)Asks, then keeps the old file and installs the new one as <file>.aenew
--aeforceOld file moved to <file>.aeforce; the new file takes its place
--noaefileOld file stays; the new one is dropped (no .ae* files)
--aeforce --noaefileNew file replaces the old one; the old one is dropped
emerge --aelist                # list .aenew / .aeforce / .aepark
emerge --aeclean new           # remove one kind: new | old | park | all
emerge --aeclean               # same as: --aeclean all

.aepark is left by an interrupted install. --aelist finds leftovers beside every file an installed package owns, so nothing has to be remembered between runs; --aeclean asks first (Enter = No).

Local repos (FEATURES="localrepo")

With FEATURES="localrepo" in make.conf, every package emerge built from the AUR, ABS or a local PKGBUILD (or took from a --usepkg archive) is filed, after audit and install, under /var/lib/aura-emerge/repos/<repo>/ (root-owned, 0755) and that repo's db is refreshed: ae-aur (AUR), ae-abs (--abs), ae-local (--usepkgbuild, --usepkg).

Let pacman see them

The repos are filled either way. To use them from pacman, list them in /etc/pacman.conf after the official repos, in one of two ways:

# 1) include the shipped file (misc/ae-repos.conf → /etc/portage/ae-repos.conf)
Include = /etc/portage/ae-repos.conf
# 2) or write the three sections yourself
[ae-aur]
SigLevel = Never
Server = file:///var/lib/aura-emerge/repos/ae-aur

[ae-abs]
SigLevel = Never
Server = file:///var/lib/aura-emerge/repos/ae-abs

[ae-local]
SigLevel = Never
Server = file:///var/lib/aura-emerge/repos/ae-local
  • You get: pacman -Qm no longer lists them, pacman -Si ae-aur/<pkg> works, -S/-Su can reinstall from the audited copy. On a name clash the first repo wins, so keep ae-* last. SigLevel = Never is deliberate: the packages were audited and sha256-pinned by emerge and the directories are root-owned.
  • Reuse: a bare AUR install whose version is already in ae-aur and equals the AUR's is installed from there — no clone, no build. --edit/--pkgbuild-view force a rebuild; -B/-F never use local binaries.
  • Cleanup: -C, -c, --prune also drop what they removed from ae-*; emerge --localrepo-clean drops entries that are no longer installed (-p lists, -a asks).
  • Empty dbs are created by the package hook, emerge --sync and the first publish, so pacman -Sy never trips over an empty file:// server. A failed publish is a warning, never a failed merge.

ALPM hooks

libalpm runs every matching *.hook during install, remove, -U and -Su — the same mechanism as pacman (depmod, DKMS, dracut/mkinitcpio, grub-mkconfig, fontconfig/icon caches, …). Hook output appears live between the >>> lines.

/usr/share/libalpm/hooks/    # package-shipped hooks
/etc/pacman.d/hooks/         # admin hooks (HookDir in pacman.conf)
/etc/portage/hooks/          # aura-emerge user hooks, same format

Earlier directories win on name collisions. Hook files follow alpm-hooks(5).

>>> Running pre-transaction hooks...
>>> (1 of 2) Removing initramfs with dracut
>>> (2 of 2) Remove DKMS modules
...
>>> Running post-transaction hooks...
>>> (1 of 4) Arming ConditionNeedsUpdate...
>>> (3 of 4) Install DKMS modules
>>> (4 of 4) Updating initramfs with dracut

Shell completion

The AUR packages install completions for bash, zsh and fish. emerge @<TAB> offers real set names in all three.

  • emerge — bash, zsh and fish completions are generated from the CLI definition (emerge --gen-completions bash|zsh|fish), so they always match --help; a small glue adds real @set names.
  • eselect shim — hand-written completions for eselect profile list|set|show (misc/eselect.bash-completion, misc/_eselect, misc/eselect.fish). TAB on the shim never errors out.
emerge --gen-completions bash | sudo tee /usr/share/bash-completion/completions/emerge
emerge --gen-completions zsh  | sudo tee /usr/share/zsh/site-functions/_emerge
emerge --gen-completions fish | sudo tee /usr/share/fish/vendor_completions.d/emerge.fish
sudo install -Dm644 misc/_eselect /usr/share/zsh/site-functions/_eselect

After installing a new zsh completion, run rm -f ~/.zcompdump*; compinit or start a new shell.

Security: PKGBUILD scanner

Before every AUR install, the raw PKGBUILD and its .install hook (install=, which runs as root) are fetched from cgit and scanned. $pkgname/$pkgbase in the hook name are expanded first. If cgit cannot be reached this is reported as “nothing to check”, not as clean; once the package is cloned, the clone itself is scanned when its content differs from what was pre-scanned.

Two layers

  1. AST (tree-sitter-bash) — structural checks that survive quoting, concatenation and env-wrapper tricks that defeat plain text matching. It only matches statically known command names; if parsing fails, the line heuristics take over.
  2. Line heuristics — text patterns and exact indicators of compromise (IOCs).

Two severities

SeverityPrinted asMeaning
ConfirmedIocAlert, matched a known-malicious IOCExact match with a documented campaign: low chance of a false positive.
SuspiciousWarning, detected suspicious fragmentHeuristic: worth reading, may be a false positive.

Confirmed IOCs

  • Known-malicious package names (atomic-lockfile, js-digest, lockfile-js) — the Atomic Arch npm/bun infostealer campaign, June 2026.
  • Published payload SHA-256 hashes (openconnect-sso wave, Jul/Aug 2026).
  • The compromised.txt marker from the 2018 acroread/balz/minergate AUR takeover.
  • The requested package itself being on the list of AUR packages hijacked in the early-August 2026 wave (also applies to openconnect-sso and storageexplorer-bin). Absence from that list does not mean a package is clean.

Heuristic checks

PatternWhy it matters
curl|sh, wget|shRuns a remote script straight in a shell
eval "$(curl …)", source <(curl …)Runs fetched content without a literal pipe
bash <(curl …) and friendsFed to a shell/interpreter directly -- no pipe, no substitution for the other checks
curl | python3/perl/node/…Remote code execution with no shell in the pipeline
gunzip/zstd -d/unzip -p/tar -xO piped into a shellCompressed payload stashed inline instead of fetched (clustered and split tar flags included)
/dev/tcp / /dev/udp redirectionRaw reverse-shell / download channel
heredoc fed to a shell (or a body that fetches/decodes)Fetch and execution live on different lines
cargo install <crate>, go install module@verBuilds upstream code outside pacman's view mid-build (local targets stay clean)
base64 / hex decode, | sh, \xHH runs, openssl decryptObfuscated or inline-stashed payloads
python -c exec/eval, sh -c payloadsInline obfuscated execution
sudo / pkexec / doas in the build scriptmakepkg builds unprivileged on purpose; this escalates mid-build
chmod 777World-writable / executable permissions
raw IPv4, .onion, paste sitesHardcoded C2 or second-stage delivery
npm/pnpm/bun/yarn/pip/gem installing a named package mid-buildHow the Atomic Arch payload was smuggled in
command substitution outside any functionRuns whenever anything merely sources the PKGBUILD (--printsrcinfo, an AUR helper's metadata read)
executable installed under a generic tool name (linter, hasher, validator, …)Payload-disguise technique of the early-August 2026 wave
TracerPid, LD_PRELOAD probesAnti-debugger / anti-sandbox fingerprinting

Example

A deliberately hostile test package (output shortened, … marks omitted lines):

$ emerge --usepkgbuild ./scaner-test --ask
>>> Scanning scaner-test for suspicious patterns...
>>> 'scaner-test' wasn't scanned before cloning (cgit fetch failed or this pkgbase was only resolved after cloning) -- scanning the clone directly...

>>> ===================================
>>> Alert, matched a known-malicious IOC (scaner-test)
>>> ===================================
>>> file PKGBUILD line 34: references 'atomic-lockfile' - a known-malicious package name from a documented AUR supply-chain campaign (Atomic Arch, June 2026)
>>> file PKGBUILD line 11: sha256 'e73a35b3e75e94746428d1a207703d6335933deadee7d1d9c9d0328df7b9df77' matches a published payload hash from the openconnect-sso-anchored AUR wave (Jul/Aug 2026)
>>> file scaner-test-therandtxt.install line 3: references 'compromised.txt' - the exact marker file dropped by the 2018 acroread/balz/minergate AUR takeover
>>> file scaner-test-therandtxt.install line 2: references 'js-digest' - a known-malicious package name from a documented AUR supply-chain campaign (Atomic Arch, June 2026)
>>> Read full file: ./scaner-test/PKGBUILD
>>> Read full file: ./scaner-test/scaner-test-therandtxt.install

>>> ===================================
>>> Warning, detected suspicious fragment (scaner-test)
>>> ===================================
>>> file PKGBUILD line 16: downloads and pipes a remote script straight into a shell (curl/wget | sh)
>>> file PKGBUILD line 18: decodes a base64 blob (possible obfuscated payload)
>>> file PKGBUILD line 25: sets world-writable/executable permissions (chmod 777)
>>> file PKGBUILD line 10: fetches from or references a hardcoded raw IP address instead of a domain
>>> file PKGBUILD line 34: installs a named external package via npm/pnpm/bun/yarn/pip/gem mid-build - worth a quick check that the package name is one you'd expect; this general technique (not necessarily this specific package) is how the Atomic Arch AUR campaign smuggled in its payload
>>> file PKGBUILD line 39: installs a named remote crate/module via cargo/go install mid-build - fetches and builds upstream code outside pacman's view; local targets (--path ., ./...) are the normal packaging flow and don't trigger this
>>> file PKGBUILD line 20: feeds a curl/wget process substitution straight to a shell/interpreter (bash <(curl ...)) - runs fetched remote content with neither a pipe nor a command substitution for the other checks to key on
>>> file PKGBUILD line 36: downloads and pipes a remote script straight into an interpreter (curl/wget | python3/perl/node/...) - remote code execution with no shell in the pipeline
>>> file PKGBUILD line 37: decompresses a bundled/compressed blob and pipes it straight into a shell or interpreter (gunzip/zstd -d/unzip -p/tar -xO | sh) - same inline-payload role as base64 -d | sh, just compressed instead of encoded
>>> file PKGBUILD line 33: opens a raw TCP/UDP channel via bash /dev/tcp//dev/udp redirection (exec 3<>/dev/tcp/host/port) - classic reverse-shell/download primitive; no legit build step needs it
>>> file PKGBUILD line 43: runs a here-document through a shell, or a heredoc body that fetches/decodes remote content (bash <<EOF ... curl ... EOF) - the fetch and the execution live on different lines, so per-line checks never see them together
>>> file PKGBUILD line 26: invokes sudo/pkexec/doas from inside the build script - makepkg builds unprivileged on purpose, so this escalates privilege mid-build; the exact mechanism reported in the openconnect-sso-anchored AUR wave (Jul/Aug 2026)
>>> file Makefile line 11: decompresses a bundled/compressed blob and pipes it straight into a shell or interpreter (gunzip/zstd -d/unzip -p/tar -xO | sh) - same inline-payload role as base64 -d | sh, just compressed instead of encoded
>>> … 29 more findings (scaner-test-therandtxt.install, Makefile, fix.patch) …
>>> Read full file: ./scaner-test/PKGBUILD
>>> Read full file: ./scaner-test/scaner-test-therandtxt.install
>>> Read full file: ./scaner-test/Makefile
>>> Read full file: ./scaner-test/fix.patch

>>> 'scaner-test''s cloned PKGBUILD/.install content (which differs from what was pre-scanned) matches known-suspicious patterns. Review it yourself before proceeding:
    ./scaner-test
>>> Continue anyway? [y/N] n
>>> Aborted.
Not a hard block
Findings are reported with file/line and a cgit link. You get Continue anyway? [y/N] — the decision stays with you.

Support files

Next to the PKGBUILD the scanner also reads a Makefile (Makefile / makefile / GNUmakefile) and shell scripts the build refers to (bash foo.sh, ./install.sh, …). Scripts get the full PKGBUILD-grade scan; Makefiles get a line-only scan, since make syntax has no bash AST. Findings name the file and line, like the PKGBUILD ones.

Audit only

emerge --scan neovim-git --aur
emerge --usepkgbuild ~/src/my-pkg --scan

--scan reports findings without building or installing anything. It needs at least one package name (or --usepkgbuild <PATH> for a local checkout) and does not support --abs yet.

The scanner is a blocklist, so a clean result is not a guarantee. That is what the sandbox is for.

bwrap sandbox

The scanner is a blocklist: a PKGBUILD it misses would still run arbitrary shell as your user. The sandbox is the second layer. pkgver/prepare/build/check/package run inside bubblewrap (/usr/bin/bwrap) when it is installed.

What the jail looks like

  • Filesystem: the whole root is mounted read-only; /proc and /dev are fresh; /tmp is an empty tmpfs.
  • Writable: only the build directory. Configured PKGDEST/SRCDEST/SRCPKGDEST/BUILDDIR outside it get their own writable bind and matching env var.
  • No real home / session: empty tmpfs over /home and /run — no SSH keys, secret GPG, browser profile, session D-Bus or agents. Environment is cleared to an allowlist.
  • Isolation: --unshare-all, --new-session, --die-with-parent, capabilities dropped; PKGBUILD and *.install re-bound read-only.
  • GnuPG: public-only keyring copy, mounted read-only (signatures verify; no private keys, build cannot plant a key).

Network

Shared by default. With --unshare-net-build the download phase keeps the network (the declared source=() entries), while build()/check()/package() get none — so a stray cargo build reaching crates.io fails loudly. Loopback stays up for tools that need it; there is still no route outside.

Toolchain quirks handled for you

  • rustup: RUSTUP_HOME is pointed back at the real path (read-only) so cargo still resolves a toolchain, and RUSTUP_TOOLCHAIN is pinned to your installed host default (unless you set one yourself) — rustup never tries to install or sync a channel into the read-only home, so a package pinning another toolchain via rust-toolchain.toml builds with the host default inside the sandbox. CARGO_HOME is not restored (it may hold credentials.toml) — a fresh writable directory inside the build dir is used instead, and dependencies are re-fetched.
  • fakeroot: package() runs under fakeroot, which fails with “cannot preserve ownership” in a user namespace with no uid 0. A small fakeroot shim re-runs the real one in a nested uid-0-mapped bwrap layer. The shim lives in /var/tmp, read-only inside the jail, so build() cannot replace it, and it is deleted afterwards.
Outside the sandbox
Dependency installation and the final pacman -U need real root and never execute PKGBUILD code, so they run outside the jail. The finished *.pkg.tar.* is still audited first (setuid, .INSTALL, alpm hooks, systemd, sudoers, …).
Known gap
A different PKGDEST/SRCDEST set in /etc/makepkg.conf (visible inside the jail) overrides the injected value. Rare in practice.
FlagEffect
--no-sandboxPlain makepkg (with a warning); also skips the unsandboxed-fallback confirmation
--unshare-net-buildNo network during build()/check()/package()

Without bubblewrap installed, builds fall back to plain makepkg: interactively you confirm that once per package, and a non-interactive run is refused outright — the fallback skips the sandbox and the package audit, so it must never run silently. --no-sandbox is the explicit whole-run opt-out.

PKGBUILD review

--pkgbuild-view shows the PKGBUILD that is about to be built and asks before the build starts. It works for AUR, ABS and --usepkgbuild, but only for packages you requested directly — never for transitive dependencies or batch paths. It runs after --edit.

emerge neovim-git --aur --pkgbuild-view
emerge --usepkgbuild ~/src/my-pkg --pkgbuild-view

What you see

  • First time: the full PKGBUILD.
  • Next time: a unified diff against the copy shown last time (PKGBUILD (previous) → PKGBUILD (current)), or “unchanged since last shown”.
  • The last-shown copies live in ~/.cache/aura-emerge/pkgbuild-view/<pkgbase>.PKGBUILD (under $XDG_CACHE_HOME if it is set). They exist only to make diffs possible and play no security role — the scanner does its own comparison of what it fetched against what was cloned.

The prompts

  1. Continue with this build? [Y/n] — Enter builds.
  2. On n: Open it in $EDITOR instead of skipping it? [y/N]. Answering no skips this package.
  3. On y the PKGBUILD opens in $EDITOR (then $VISUAL, then nano). Save and close to continue building; .SRCINFO is regenerated from your edit, unless you pass --skip-srcinfo-regen.

If the PKGBUILD cannot be read, you get a warning and the review is skipped for that package. The scanner and the sandbox still apply as usual.

--usepkgbuild <PATH> builds a local checkout through the same scanner + sandbox pipeline. It is recorded in world as Err/ unless -1 is given.

Note: --scan does not support --abs yet. For ABS, use --pkgbuild-view during a normal install.

--usepkg

emerge --usepkg ./foo-1.0-1-x86_64.pkg.tar.zst installs ready-built package archives — makepkg output or a file repo's .pkg.tar.zst/.zst — with no PKGBUILD in sight. Every archive goes through the same pipeline a sandboxed build produces: it is pinned by hash, unpacked and audited (sensitive paths — libalpm hooks, systemd units, sudoers, udev, ld.so.preload, … — setuid binaries, .INSTALL scripts, path traversal and symlink member names), re-hashed right before the privileged install, and only then handed to libalpm. A bsdtar failure aborts instead of continuing unaudited.

Archives land in world as Err/<name> and are marked explicit, so depclean keeps them; -1 installs as dependencies instead. Combine with -p/-a; several archives in one run are a single transaction.

Devel upstream check

The version on an AUR page for -git/-hg/-svn/-bzr packages often lags the real upstream, so a plain version comparison never sees new commits. --devel (with -u) and --check-devel (report only, no sudo needed) ask the upstream directly.

emerge -u --devel
emerge --check-devel

How it works

  • Only installed foreign packages (AUR/local) whose name ends in -git, -hg, -svn or -bzr are considered.
  • For -git packages the first git+ URL in source=() is taken (with #branch= if present) and git ls-remote asks the remote for its current commit — no clone.
  • -hg/-svn/-bzr are recognized but not checked yet; they appear in the “could not determine” note.

The first run only records a baseline

The last upstream commit seen for each package is kept in ~/.cache/aura-emerge/devel.state. A package checked for the first time is recorded but never counted as moved, so the first --check-devel normally reports nothing. Later runs compare against that baseline.

Result

  • Packages whose upstream moved are listed as U entries. With -u --devel they join the upgrade as devel (upstream moved); packages already upgraded by version are not checked twice.
  • “Can't tell” is never treated as “out of date”: a missing git+ source, a failed fetch or a non-git VCS lands in the “could not determine” note.
  • --exclude and package.mask hold a package back at its installed version.

--revdep-rebuild

Finds installed binaries whose shared-library dependencies no longer resolve, and fixes them. After an icu/openssl/boost soname bump a package can satisfy every declared dependency while its binaries link against a .so that no longer exists. This is different from @preserved-rebuild, which only checks declared dependencies via pacman -T. Gentoo hides the problem behind preserved-libs; here it is “rebuild once you notice”, automated.

emerge --revdep-rebuild
emerge --revdep-rebuild -p

What is scanned

  • ELF files owned by packages under /usr/bin, /usr/lib, /usr/lib32, /usr/libexec, /usr/local/lib and /opt (huge files are skipped).
  • Their DT_NEEDED entries, with RPATH/RUNPATH ($ORIGIN expanded), checked against the linker's search directories — the built-ins plus /etc/ld.so.conf and its includes.
  • The report groups findings by package: the missing sonames and the first few affected files. Broken files that no package owns are listed separately.

What gets fixed

  • AUR/local packages are rebuilt through the normal sandboxed path, and the scanner runs first.
  • Official packages: the package that ships the lost soname is looked up in the file database (pacman -F) and, if it is not installed, installed with pacman -S --needed --asdeps.
  • If nothing in the file database provides a soname, you are told to run emerge --regen in case the database is stale, or to check whether the library was dropped upstream.
  • If the wanted libraries are already installed, the note points at a possible mixed 32/64-bit case.

With -p it only reports. Otherwise it asks Rebuild/install the package(s) above? [y/N]. --exclude and package.mask apply, and --keep-going is respected. The exit code is non-zero if anything failed.

Known limits
A library of the wrong architecture at the right path counts as present. Plugins loaded with dlopen() are invisible to an ELF scan. Files replaced outside pacman are judged by what is on disk now.
Aura
fosskers/aura? No — after v2.1, Aura is no longer part of this project. Aura-Emerge is a separate, security-first reimplementation.