Installing Packages

Basic install

stamp install htop

Stamp auto-detects the best package manager for your system.

▪ installing htop via apt...
✓ installed htop via apt

_Icons (▪, ✓) are shown on interactive terminals; piped output is plain.

Specify a manager

stamp install spotify --manager flatpak
stamp install lazygit -m brew
stamp install htop -m yay       # AUR helper runs as your user

Flatpak does not support the native install <remote> <ref> idiom — flathub is a remote name, not a package, and stamp would record it as a package. Use stamp install <app-id> -m flatpak instead.

Recording native package names

Some managers accept a spec that resolves to a different installed package. dnf resolves yarn to nodejs-corepack through provides / file-provides. Stamp records the native package name so remove, reinstall, restore, and doctor keep working:

stamp install yarn -m dnf
▪ installing yarn via dnf...
  note: yarn is provided by nodejs-corepack; tracking nodejs-corepack
✓ installed yarn via dnf

If the installed name cannot be resolved to exactly one package, stamp prints a warning and records the requested name. Batch installs resolve names after success; unresolved names stay as typed. Existing alias entries can be cleared with stamp untrack.

Install multiple packages

Install several packages in one command. Batches are per-manager only — -m <manager> is mandatory, and a single batch never spans managers; to install packages from different managers, run one command per manager:

stamp install htop atop btop -m dnf
Install 3 package(s) via dnf? [y/N]: y
▪ installing 3 package(s) via dnf...
✓ installed 3 package(s) via dnf

Only managers with native multi-package support participate (go, pipx, and uv reject multi-install; Homebrew falls back to per-package installs when a batch mixes casks and formulae). All names are validated before anything runs.

Add a note

stamp install lazygit -m brew --note "better git TUI than default"
▪ installing lazygit via brew...
✓ installed lazygit via brew (note: better git TUI than default)

Notes are saved to your manifest so you remember why you installed something.

Reinstall multiple packages

Reinstall several packages in one command. Batches are per-manager only — -m <manager> is mandatory, and a single batch never spans managers:

stamp reinstall lazygit jq -m brew

Only managers with native multi-package reinstall support participate (snap is excluded — its reinstall is remove + install). Single combined confirmation prompt; snapshots and the manifest are updated once.

If a package in the batch is already tracked under a different manager, the batch fails fast before anything runs — reinstall that package with its recorded manager (-m <mgr>).

Using aliases

stamp add htop                 # alias for install
stamp reinstall htop           # reinstall and re-track
stamp reinstall -m brew htop   # reinstall with specific manager

DNF package groups

Install a DNF package group with the --group / -g flag. Groups are referenced by their group ID (the first column of dnf group list), not the human-readable display name:

stamp install development-tools -m dnf --group
▪ installing group development-tools via dnf...
✓ installed development-tools via dnf

Group IDs contain only lowercase letters, digits, - and _. Display names like "Development Tools" are rejected — find the ID first with stamp search -m dnf --group <query>. Groups are recorded by their ID; installed-name resolution does not apply to group installs.

Homebrew casks

Stamp auto-detects Homebrew casks (GUI applications) and passes --cask automatically:

stamp install firefox -m brew
▪ installing firefox via brew...
✓ installed firefox via brew (cask: true)

Casks are recorded in the manifest and restored correctly with stamp restore.

Homebrew taps and tap-qualified formulae

Install a formula from a third-party tap with its fully qualified name. Stamp routes owner/tap/formula straight to brew, so -m brew is optional:

stamp install nklmilojevic/sofka/sofka
▪ installing nklmilojevic/sofka/sofka via brew...
✓ installed nklmilojevic/sofka/sofka via brew

Homebrew 6 requires non-official taps to be trusted. Installing a fully qualified name trusts only that formula, and stamp relies on that — it does not tap or trust the whole tap. The qualified name is recorded in the manifest, so stamp reinstall, stamp remove, stamp info, stamp update -p, and stamp restore all accept it.

To trust an entire tap (every current and future formula, cask, and command), use stamp tap user/tap; it is recorded as a repository and re-added by stamp restore, mirroring stamp repo add user/tap -m brew.

Tap-qualified casks (owner/tap/cask) are not supported yet; install those with brew install --cask owner/tap/cask.

Using show/view aliases

stamp show htop      # alias for stamp info htop
stamp view htop      # alias for stamp info htop

Reinstall

The reinstall command works for both manifest-tracked and pre-existing packages. For a tracked package, the recorded manager always wins; -m applies only to pre-existing packages. To change a package’s manager, stamp remove it and install it again with the desired -m.

stamp reinstall htop
▪ reinstalling htop via apt...
✓ reinstalled htop via apt

For pre-existing packages (installed before stamp init), reinstall resolves the manager automatically and records the package in the manifest.

Package name validation

Stamp validates package specs per manager. A shared guard rejects empty input, names starting with -, control characters, and shell metacharacters; each manager then applies its own grammar:

Rejected with a hint: paths and URLs, flags inside a spec, @group as a package name (use --group), apt pkg+/pkg- modifiers, and go @version. The full per-manager matrix is in Package Specification Support.

npm accepts its native package-spec grammar:

stamp install @scope/tool -m npm
stamp install @scope/tool@latest -m npm
stamp install typescript@5.6.3 -m npm

The full per-manager acceptance matrix, including versioned, repo-qualified, and rejected forms, is in Package Specification Support.

Python tools (pipx)

stamp install black -m pipx

Installs Python CLI tools via pipx install --yes <pkg>. Requires pipx on PATH.

stamp install ruff -m uv

Alternatively, use uv (faster) via uv tool install <pkg>. Both adapters are independent — you can have both installed on the same system.

Go tools

stamp install github.com/golangci/golangci-lint -m go

Go tools require a full module path (e.g., github.com/example/tool) and the -m go flag. The go adapter is not in the default precedence, so -m go is always required. Short names like golangci-lint are rejected — Stamp cannot derive the module path from a binary name.

Go tools are installed via go install <module>@latest. Search, doctor, and repo management are not supported for the go adapter.

If go install fails while GOTOOLCHAIN=local pins your Go toolchain — common on Fedora, where golang-bin sets it in /usr/lib/golang/go.env — Stamp appends a hint to the error. Packages that need a newer Go version then fail until you run go env -w GOTOOLCHAIN=auto (revert with go env -u GOTOOLCHAIN) or install a newer Go.

Aborting an operation

Press Ctrl+C at any point (including at sudo’s password prompt) to abort cleanly:

Error handling

If a package is not found, Stamp prints a clear error:

failed to install nonexistent-pkg: exit status 100
Error: install failed