Upgrading zpm
Keep your zpm installation up to date with the upgrade command, which automatically downloads, verifies, and installs the latest release.
Quick Start
Upgrade to the latest stable release:
zpm upgradeThe command downloads the binary for your platform, verifies its SHA256 checksum, and atomically replaces your running executable.
Choosing a Release Channel
By default, upgrade pulls from the stable channel. For early access to new features, use dev:
# Stable releases (default, recommended for production)
zpm upgrade
# Development releases (includes prerelease versions)
zpm upgrade --channel devPreviewing an Upgrade
To see what version you’ll get without modifying anything:
# See the target version and details
zpm upgrade --dry-run
# Preview a development channel upgrade
zpm upgrade --channel dev --dry-runThe output shows the target version, asset URL, expected checksum, and install path.
Supported Platforms
Pre-built binaries are available for:
- Linux x86_64
- Linux ARM64 (aarch64)
- macOS (x86_64 and ARM64 in one universal binary)
If you’re on an unsupported platform, the command will report an error with the list of available targets.
Security
The upgrade command verifies the downloaded binary before installing it:
- Downloads the
SHA256SUMSfile from the release - Computes SHA256 of the downloaded binary
- Compares the computed hash against the published checksum
- Only installs if hashes match exactly
This protects against man-in-the-middle attacks and corrupted downloads.
Troubleshooting
“Permission denied” error
If your zpm binary is installed in a system directory (e.g., /usr/local/bin), you may need elevated privileges:
sudo zpm upgrade“Unsupported platform” error
Your OS/architecture combination doesn’t have a pre-built release. Install from source instead:
git clone https://github.com/awf-project/zpm.git
cd zpm
make build
# Binary is in zig-out/bin/zpm“ChecksumMismatch” error
The downloaded binary failed verification. This usually indicates a network problem. Retry the upgrade:
zpm upgrade --dry-run # Test connectivity
zpm upgrade # RetrySee Also
- CLI Reference — Detailed flags and exit codes
- Getting Started — Install zpm for the first time