CRUX prt-get¶
- ID
prt-get- Link
- Version requirement
>= 5.19
- Platforms
🐧 Linux (CRUX only)
- Operations
installed·outdated·search·install·upgrade·upgrade_all·remove·sync- purl types
pkg:prt-get/- CLI name
prt-get- Issues and PRs
- Source
The ports front-end of CRUX.
Caution
CRUX builds every port from source, so an install or an upgrade compiles.
mpm caps a mutating operation at 500 seconds, which a large port outlasts
by hours. Raise it for this manager with [mpm.overrides.prt-get] timeout.
What mpm adds to prt-get¶
Through mpm, prt-get 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 prt-get 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 prt-get commands, in mpm¶
You already know prt-get: 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 |
`prt-get printf %n |
%v |
Install a package |
|
|
Upgrade one package |
|
|
Upgrade everything |
|
|
Remove a package |
|
|
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 |
|---|---|---|
|
✅ |
|
|
✅ |
|
|
❌ |
The |
|
✅ |
Exact and extended search backfilled by |
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
✅ |
|
|
||
|
Configuration¶
Ignore
prt-geton thempmCLI by passing the--no-prt-getoption.Ignore it for every run in your configuration:
[mpm] prt-get = false
Raise the timeout of all
prt-getcalls:[mpm.overrides.prt-get] timeout = 900
Run
mpm config-template prt-getto print all overridable settings for your configuration file:[mpm.overrides.prt-get] cli_names = [ "prt-get", ] cli_search_path = [] dry_run = false ignore_auto_updates = true plan = false post_args = [] pre_args = [] pre_cmds = [] requirement = ">=5.19" stop_on_error = false unmaintained = false version_cli_options = [ "version", ] version_regexes = [ "prt-get\\s+(?P<version>\\S+)", ]
Recipes¶
A few jobs you would otherwise script around prt-get, one mpm command each:
Snapshot and clone a machine:
mpm --prt-get dump prt-get.toml, thenmpm restore prt-get.tomlon the next one.Export a compliance SBOM:
mpm --prt-get sbom(CycloneDX by default,--spdxfor SPDX).
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.
Its privileged operations are install, remove, sync, upgrade, upgrade_all.
See privilege escalation for the full policy.
Cooldown¶
State of CRUX prt-get’s release-age gating, from the cooldown support table:
Status: ❌ None (CRUX ports)
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: Source-based recipe trees
Retraction: Index revert of the recipe tree
Publish date: ❌ a recipe carries no publication date
With --cooldown set, mpm skips this manager’s install and upgrade operations rather than run them unguarded (fail-closed); --cooldown best-effort opts back in.
Reference traces¶
A collection of raw native outputs captured from the manager’s own CLI and recorded in the manager source. If you know CRUX prt-get well and a transcript below looks wrong, or a newer release changed its output format, report it.
$ prt-get listinst -v
acl 2.3.2-1
attr 2.5.2-1
autoconf 2.72-1
automake 1.17-1
bash 5.2.37-1
bc 1.08.1-1
$ prt-get diff
Differences between installed packages and ports tree:
Port Installed Available in the ports tree
acl 2.3.2-1 2.4.0-1
attr 2.5.2-1 2.6.0-1
autoconf 2.72-1 2.73-1
automake 1.17-1 1.18.1-1
bash 5.2.37-1 5.3.15-1
Version check¶
The version is probed by running:
$ prt-get version
prt-get 5.19.5 by Johannes Winkelmann, jw@tks6.net
and extracted with:
r"prt-get\s+(?P<version>\S+)"
Changelog¶
8.0.0(2026-09-20)Add the CRUX ports front-end with inventory, outdated, catalog search, install, remove, single-port upgrade, full upgrade and ports-tree sync.