Upstream Package Manager
Upstream is a rootless, GitHub-centric package manager for Unix-like systems. It installs and updates software from releases, supports multiple asset types, tracks update channels, and automatically selects the best asset for your OS and CPU architecture.
Table of Contents
Features
- Install packages directly from GitHub repository releases.
- Automatically detect system architecture (x86_64, ARM64) and OS (Linux, macOS).
- Supports binaries, archives, AppImages, and compressed files.
- Rootless, user-level installation.
- Track multiple update channels (stable, beta, nightly).
Installation
Auto Install (Recommended)
The easiest way to install Upstream is via the install script. This downloads the latest binary, sets it up in your user path, and enables self-updates.
|
- Ensures Upstream can update itself automatically.
Install via Cargo (Crates.io)
Since Upstream is published on crates.io, you can install it directly with Cargo:
- Cargo builds the binary and places it in
$CARGO_HOME/bin(usually~/.cargo/bin). - Make sure this directory is in your
PATH:
- To update later:
⚠️ Installing via Cargo does not enable self-updates via Upstream’s "upgrade" mechanism. Use the auto-install script for self-contained updates, or use cargo to update Upstream.
Manual Installation (Linux)
- Download the latest release for your platform.
- Ensure it is executable:
⚠️ Manual installation does not enable self-updates. To enable self-updates:
}
Manual Installation (MacOS)
MacOS support is experimental. Running Upstream on MacOS may work, but testing is limited. Please report any issues.
Build from Source
Requires Rust and Cargo:
Executable location:
./target/release/upstream-rs
Manual builds do not enable self-updates.
Usage
All commands support --help:
Initialize Hooks
- Hooks Upstream into your system’s PATH.
- Use
upstream --cleanto remove existing hooks.
Install a Package
Example:
repo_slug→ repository identifier (owner/repo).-k/--kind→ asset type (binary,archive,appimage,compressed).-n/--name→ local alias.-p/--provider→ provider to source from (defaults toGithub)--update-channel→ trackstable,beta, ornightly. (defaults toStable)--create-entry→ optional .desktop entry creation.
Remove Packages
- Uninstall packages.
--purge→ remove configuration data. (currently does not work.)
Upgrade Packages
- Updates specified packages, or all if no names are given.
--force→ reinstall, even if up-to-date.--check→ preview updates without applying them.
List Installed Packages
- No arguments → list all installed packages with metadata.
- With a package name → show detailed metadata for that package.
Configuration Management
Available actions:
| Action | Description |
|---|---|
set |
Set configuration keys (key.path=value). Example: upstream config set github.apiToken=abc123 |
get |
Retrieve keys. Example: upstream config get github.apiToken |
list |
List all keys and their values. |
show |
Show full configuration as JSON. |
edit |
Open configuration file in editor. |
reset |
Reset configuration to defaults. |
View Package Info
Shows metadata: install path, provider, asset type, update channel, last update, and more.
Architecture Detection
Upstream automatically detects OS and CPU:
- Linux → x86, ARM
- macOS → x86, ARM
It selects the best asset for your system based on filename patterns and extensions. If installs fail, please open an issue.