Void XBPS¶
- ID
xbps- Home page
- Version requirement
>= 0.59
- Platforms
🐧 Linux
- Operations
installed·outdated·orphans·search·install·upgrade·upgrade_all·remove·sync·cleanup·doctor- purl types
pkg:xbps- CLI name
xbps-install- Issues and PRs
- Source
X Binary Package System used by Void Linux.
Note
XBPS is split across several sibling binaries: xbps-query for
read-only operations, xbps-install for installs, sync and
upgrades, and xbps-remove for uninstalls and cache cleanup.
mpm resolves the siblings from the same directory as
cli_path.
What mpm adds to xbps¶
Through mpm, xbps gains --exact and --extended search, to narrow to exact names or match descriptions.
Bigger still, mpm reaches across every manager at once: mpm installed and mpm outdated cover xbps alongside every other manager you run in one table, mpm upgrade --all updates them together, and mpm sbom exports the whole machine as one bill of materials.
Every mpm command also gains --dry-run and --plan previews, cross-scheme version comparison and purl identifiers. See manager augmentations for how each one is built.
Your xbps commands, in mpm¶
You already know xbps: each operation maps one-to-one onto mpm, in an interface shared by every manager.
To… |
With |
With |
|---|---|---|
List what’s installed |
|
|
List outdated packages |
|
|
Search for a package |
|
|
Install a package |
|
|
Upgrade one package |
|
|
Upgrade everything |
|
|
Remove a package |
|
|
List orphaned dependencies |
|
|
Clear caches |
|
|
Run health checks |
|
|
Prefix any command above with --dry-run to simulate the underlying manager calls without touching the system: the safe way to watch what mpm would do before trusting it.
Operations¶
Operation |
Supported |
Notes |
|---|---|---|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
exact and extended search backfilled by |
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
|
|
✓ |
Selecting and configuring xbps¶
Deselect xbps for a single run with --no-xbps, or persist the choice in your configuration:
[mpm]
xbps = false
Keep it enabled but tune how mpm drives it with a per-manager override:
[mpm.managers.xbps]
timeout = 900
mpm config-template xbps prints every overridable attribute as a ready-to-paste block.
Recipes¶
A few jobs you would otherwise script around xbps, one mpm command each:
Snapshot and clone a machine:
mpm --xbps dump xbps.toml, thenmpm restore xbps.tomlon the next one.Export a compliance SBOM:
mpm --xbps sbom(CycloneDX by default,--spdxfor SPDX).Gate CI on health:
mpm --xbps doctorrelays Void XBPS’s own diagnosis and exits non-zero on trouble.
Privilege escalation¶
System-wide manager: mpm wraps its privileged operations in sudo out of the box. Instead of letting the tool prompt mid-run, mpm primes the credential cache up-front, with a single branded password prompt at most. Turn escalation off for rootless setups with --no-sudo or the per-manager sudo override.
See privilege escalation for the full policy.
Cooldown¶
State of Void XBPS’s release-age gating, from the cooldown support table:
Status: ❌ None
A cooldown only pays off where a compromised release can be withdrawn while the clock runs, and can only be emulated where the registry dates its releases. From the retraction table:
Registry: Distro binary archives (
pkg:deb,pkg:rpm,pkg:alpm,pkg:apk)Retraction: Index revert: removal is an archive operation and the mirror is rebuilt without the package. Debian, for one, requires filing an
RM:bug againstftp.debian.org(developers-reference)Publish date: ❌ the version string is the distro maintainer’s build, carrying no upstream publication date
With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --allow-unsupported-managers opts back in.
Version probe¶
The version is extracted from the output of xbps-install --version with:
r"(?P<version>\S+)"
Reference traces¶
Raw native outputs captured in the manager source: the reference mpm’s parsers were written against. If you know Void XBPS well and a transcript below looks wrong, or a newer release changed its output format, report it.
$ xbps-query --list-pkgs
ii base-files-0.144_1 Void Linux base system files
ii cmark-gfm-0.29.0.gfm.13_1 CommonMark parsing and rendering library
ii curl-8.5.0_1 Command line tool for transferring data
$ xbps-install --update --dry-run
firefox-120.0_1 update x86_64 https://repo-default.voidlinux.org/current 45MB 12MB
python3-3.11.6_2 update x86_64 https://repo-default.voidlinux.org/current 30MB 8MB
$ xbps-query --list-orphans
libglvnd-1.7.0_1
orc-0.4.34_1
Feed any of these through mpm and the raw output becomes one uniform table, the same shape for every manager: filter it, project columns, or export it (mpm --xbps installed --output json, or csv, toml, yaml), each package carrying a purl and a version comparable across managers.
Changelog¶
7.4.0(2026-07-25)Plain
cleanupno longer removes orphaned packages: their native sweeps moved behindcleanup --orphans. This also stopsemerge’s cleanup from triggering its pre-depclean world upgrade unless--orphansis given.removeno longer cascades to orphaned dependencies by default: a plain removal keeps them. Use the newremove --orphansto restore the previous behavior.
6.4.0(2026-04-27)Add XBPS (Void Linux) package manager with
installed,outdated,search,install,upgrade,remove,sync, andcleanupsupport.