Topgrade detects package managers and other updaters on your machine and runs the right upgrade commands in one pass. It replaces long, non-portable shell one-liners.
Overview
Topgrade is a command-line utility for keeping a workstation current when updates are spread across many package managers and tools. Instead of maintaining separate upgrade scripts, it inspects what you have installed and invokes the appropriate updaters for those tools.
Running the binary with no arguments starts that unified upgrade sequence. Configuration lives in a TOML file searched under the platform config directory; on first run Topgrade can create a starter file and merge snippets from a drop-in directory. You can define custom shell commands to run before, during, or after the built-in steps, with platform-specific shell selection.
A remotetopgrades list in configuration triggers Topgrade over SSH on other hosts that also have it installed, optionally limited to selected hostnames. Install methods mentioned include GitHub release binaries, Linux distro packages, Windows winget, and several community package sources.
The maintained fork continues development from an earlier Topgrade lineage, with major releases documenting breaking changes in release notes.
Key features
- Auto-detects installed package managers
- Single command upgrades many tools
- TOML configuration with drop-in fragments
- Custom pre, mid, and post upgrade commands
- Remote upgrades over SSH
- Self-updating release binaries
- Creates default config on first run
- Windows, macOS, and Unix support
Use cases
- Weekly system-wide package upgrades
- Homelab host update orchestration
- Replacing ad-hoc upgrade shell scripts
- Updating remote dev machines via SSH
- Tailoring which tools get upgraded