Removing Packages

Basic remove

stamp remove htop

Stamp looks up the package in your manifest and uses the recorded manager.

Remove multiple packages

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

stamp remove htop atop btop -m dnf

Only managers with native multi-package support participate. Single combined confirmation prompt; the manifest is updated once.

▪ removing htop via apt...
✓ removed htop via apt

Specify a manager

stamp remove lazygit -m brew

A tap-qualified Homebrew formula removes the same way (auto-routes to brew):

stamp remove nklmilojevic/sofka/sofka

Using aliases

stamp uninstall htop
stamp rm htop
stamp delete htop
stamp del htop

All aliases behave identically.

DNF package groups

Remove a DNF package group with --group / -g. Like install, groups are referenced by their group ID (see dnf group list), not the display name:

stamp remove development-tools -m dnf --group
▪ removing group development-tools via dnf...
✓ removed development-tools via dnf

Group removal runs dnf group remove -y <id> — it removes the group meta-package but not the individual packages that were installed as part of the group.

What happens

  1. Stamp finds the package in the manifest (or uses -m override)
  2. Runs the native remove command
  3. Removes the package from the manifest
  4. Saves the updated manifest

Untracking without removing

Drop a manifest entry without running the native manager. Use this when the entry is stale or recorded under a name the native manager no longer resolves (for example an alias entry created before stamp recorded canonical names):

stamp untrack yarn -m dnf
Untrack yarn (dnf)? [y/N]: y
untracked yarn (dnf)

The installed package, if any, is left untouched — this edits intent only. When the same name is tracked under more than one manager, -m is required:

stamp untrack tool -m brew

Use -y to skip the prompt; without it, non-interactive runs fail closed. For a normal uninstall use stamp remove. If the package is still installed and was never snapshotted, a later stamp reconcile may track it again.

Go tools

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

Go tools require the full module path and -m go. If the module was auto-tracked by stamp reconcile, use the same module path shown in stamp list.

Error handling

When the package is not in the manifest and no -m is provided, the remove command falls back to the first available package manager. Use -m to target a specific manager explicitly.