Basalt¶
- ID
basalt- Links
- Upstream stars
⭐ 83
- Last commit
2026-06-27
- Version requirement
>= 0.10
- Platforms
🐧 Linux · 🍎 macOS
- Operations
installed·install·remove- purl types
pkg:basalt/- CLI name
basalt- Issues and PRs
- Source
basalt is a package manager for Bash, installing libraries and executables from their Git repositories.
Parsing notes, verified against basalt v0.10.0 on macOS:
Every operation goes through the
globalsubcommand tree. basalt’s bare subcommands (add,remove,install,list) act on thebasalt.tomlof the current directory’s project, which is out of mpm’s system scope; theglobalones act on the machine-wide tree.global listprints one<url>@<commit>line per package. The pattern drops the scheme and host so the id is theowner/reposlug thatglobal addandglobal removeaccept back, which is the only form all three agree on.Versions are commit hashes, not releases: basalt pins each package to the commit it resolved. That is what it records, so it is what mpm reports.
No
outdatedand no search: basalt offers neither a staleness query nor a catalogue of any kind.removeforces--force, without which basalt prompts and would hang mpm’s non-interactive subprocess.
Two host requirements are basalt’s own, and both fail loudly rather than silently, so they are left to fail rather than worked around:
A GitHub token file at
$XDG_CONFIG_HOME/basalt/token. Without it every command refuses, the read-only listing included.BASALT_GLOBAL_REPOandBASALT_GLOBAL_DATA_DIRin the environment, which the user exports by evaluatingbasalt global init <shell>in their shell configuration. mpm inherits them from the shell it is launched from.
What mpm adds to basalt¶
mpm reaches across every manager at once, not basalt alone: mpm installed and mpm outdated cover basalt 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 basalt commands, in mpm¶
You already know basalt: each operation maps one-to-one onto mpm, in an interface shared by every manager.
To… |
With |
With |
|---|---|---|
List what’s installed |
|
|
Install a package |
|
|
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 |
|---|---|
|
✅ |
|
|
|
|
|
|
|
✅ |
|
|
|
|
|
✅ |
|
|
|
|
|
Configuration¶
Ignore
basalton thempmCLI by passing the--no-basaltoption.Ignore it for every run in your configuration:
[mpm] basalt = false
Raise the timeout of all
basaltcalls:[mpm.overrides.basalt] timeout = 900
Run
mpm config-template basaltto print all overridable settings for your configuration file:[mpm.overrides.basalt] cli_names = [ "basalt", ] cli_search_path = [] dry_run = false ignore_auto_updates = true plan = false post_args = [] pre_args = [] pre_cmds = [] requirement = ">=0.10.0" stop_on_error = false unmaintained = false version_cli_options = [ "--version", ] version_regexes = [ "Version:[ \\t]+v?(?P<version>\\S+)", ]
Recipes¶
A few jobs you would otherwise script around basalt, one mpm command each:
Snapshot and clone a machine:
mpm --basalt dump basalt.toml, thenmpm restore basalt.tomlon the next one.Export a compliance SBOM:
mpm --basalt sbom(CycloneDX by default,--spdxfor SPDX).
Privilege escalation¶
mpm runs this manager as the current user and never prepends sudo by default. Flip the policy for its privileged operations with --sudo or the per-manager sudo override.
None of its operations is privileged.
See privilege escalation for the full policy.
Cooldown¶
State of Basalt’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: Git repositories (bash)
Retraction: Upstream deletion: bpkg clones the
owner/repoit is given straight from the forge, so there is no index standing between the name and the code and no retraction surface either; a package is withdrawn by its repository being deleted, renamed or made privatePublish date: ❌ nothing dates a release: the fetch resolves a branch or tag on the repository rather than a published artefact, so the only timestamp available is a commit date, which is client-set
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 bundled definition. If you know Basalt well and a transcript below looks wrong, or a newer release changed its output format, report it.
$ basalt global list
https://github.com/hyperupcall/bash-args@8fa6ff556d9c4fca5ce8431ddc571139abcf69a7
Version check¶
The version is probed by running:
$ basalt --version
Version: v0.10.0
and extracted with:
r"Version:[ \t]+v?(?P<version>\S+)"
Upstream project¶
Metrics |
|
|---|---|
Activity |
|
Popularity |
|
Metadata |
|
Changelog¶
8.0.0(2026-09-20)Add the Basalt Bash package manager with
installed,installandremovesupport, every operation going through itsglobalsubcommand tree.