Updating Packages

The update (alias upgrade) command runs system upgrades across all available package managers using a safe two-phase (check + confirm) flow.

stamp update

Checking for outdated packages

Use the outdated or check-update commands to see available updates without applying them:

stamp outdated
stamp check-update
▪ Refreshing package metadata...
  refreshing apt...
  refreshing brew...
▪ Checking for updates...
  apt: curl 7.88.1 → 7.88.3
  apt: git 2.43.0 → 2.43.2
  dnf: htop 3.2.1 → 3.2.2
  brew: lazygit 0.40.0 → 0.41.0
  pipx: cannot preview updates
  uv: cannot preview updates

Both outdated and check-update are read-only — they run the check phase and exit without applying anything. Equivalent to stamp update --check.

Default Flow (Check + Confirm)

By default, running stamp update performs metadata refresh, then a serialized check across all package managers, aggregates the available updates, and prompts you before applying them:

▪ Refreshing package metadata...
  refreshing apt...
  refreshing brew...
▪ Checking for updates...
  apt: curl 7.88.1 → 7.88.3
  apt: git 2.43.0 → 2.43.2
  dnf: htop 3.2.1 → 3.2.2
  brew: lazygit 0.40.0 → 0.41.0
  pipx: cannot preview updates (unsupported)
  uv: cannot preview updates (unsupported)

Proceed with updates? [Y/n]: y

[sudo] password for user:
[apt] Reading package lists... Done
[apt] Upgrading: 2 packages
[dnf] Upgrading: 1 package
[brew] Upgrading: 1 package
updated packages via apt
updated packages via dnf
updated packages via brew

Managers that do not support a native “list upgrades” command (like go, pipx, uv) will print a short notice and continue safely.

To ensure accuracy, the check phase runs an explicit metadata refresh step before querying for updates. Each adapter’s Refresh method is called (e.g., brew update, apt update, zypper refresh, pacman -Sy) before the check loop. Managers like dnf and flatpak skip refresh since they use local metadata. Privileged steps run under sudo, which prompts natively only when authentication is required. On hosts where sudo is configured with NOPASSWD, or where credentials are already cached, stamp never prompts. Before the parallel update phase stamp re-validates credentials; if a password is required and sudo cannot cache it, updates run serially so prompts never race. Flatpak system updates use polkit instead of sudo; they run in their own serial phase after the parallel update and never share stdin with other managers (see below). AUR helpers (paru, yay) run as your user and escalate internally; sudo stamp is refused for helper writes (ADR-027).

Check Only (Dry-Run)

Use --check or -c to check for available updates without applying them:

stamp update --check
▪ Refreshing package metadata...
  refreshing apt...
  refreshing brew...
▪ Checking for updates...
  apt: curl 7.88.1 → 7.88.3
  brew: lazygit 0.40.0 → 0.41.0

Skip Check (Auto-Confirm)

To skip the check phase entirely for speed (useful in scripts or CI), use the -y / --yes flag:

stamp update -y

This bypasses the check-update latency and proceeds directly to the user update phase. Authenticated system phases (flatpak) still run serially afterwards.

Scoped to a Manager

Scope the check and update to a single package manager with -m / --manager:

stamp update -m apt
stamp update -m yay   # AUR helper runs as your user, not root

Single Package

Update only one specific package instead of all packages (requires -m):

stamp update -p htop -m apt

A tap-qualified Homebrew formula updates the same way:

stamp update -p nklmilojevic/sofka/sofka -m brew

Serial Mode

Run updates one manager at a time instead of concurrently (useful for debugging):

stamp update --serial

Flatpak: user and system scopes

Flatpak updates are split into two phases. User-scope refs update in parallel with the other managers and never need authentication. System-scope refs (apps and runtimes) update serially afterwards, behind a banner, because system metadata and appstream updates require polkit:

▪ flatpak system update — authentication may be required (polkit)

A full run finishes the user-scope work with the other managers, then runs the authenticated phase alone:

[dnf] ...
updated packages via dnf
updated packages via flatpak user
▪ flatpak system update — authentication may be required (polkit)
updated packages via flatpak system

Success lines include the scope when a manager implements phases: updated packages via flatpak user and updated packages via flatpak system. With -p <app-id> -m flatpak, each scope runs only when that ref is installed there.

-y answers flatpak’s own prompts but cannot bypass polkit. On WSL and headless hosts without a graphical polkit agent, stamp probes the flatpak polkit actions with pkcheck and warns once before the system phase; the password prompt then appears in the terminal through pkttyagent.

When no system-scope refs exist, the system phase is skipped. The check phase follows the same split: system-scope updates are only checked when system refs exist and a terminal is available; otherwise stamp prints system check skipped (authentication required).

If stdin is not a terminal and system refs exist, the user phase still runs and the system phase fails instead of blocking:

Error: flatpak system updates need a terminal for authentication; rerun with --flatpak-user-only

Use --flatpak-user-only to skip system-scope flatpak updates and system-scope checks, for scripts and CI:

stamp update -y --flatpak-user-only

The same flag applies to the check phase:

stamp update --check --flatpak-user-only

Python tools (pipx / uv)

stamp update -m pipx

Runs pipx upgrade-all to upgrade all pipx-installed tools.

stamp update -m uv

Runs uv tool upgrade --all to upgrade all uv-managed tools.

Go tools

Batch update (stamp update without flags) reinstalls all go tools whose module path is recoverable from the binary metadata. Tools installed before the Go module system, or with stripped binaries, may be skipped. Use -p <module> -m go to update a single go tool explicitly:

stamp update -p github.com/golangci/golangci-lint -m go

Error Handling

If one manager fails, others continue. The command exits with a non-zero status:

⚠ update failed for apt: exit status 100
updated packages via brew
Error: one or more managers failed to update