updt
updt is a Rust command-line tool that checks and runs updates across your development package managers from one interactive workflow.
Instead of remembering separate update commands for Homebrew, npm, cargo, rustup, fnm, Scoop, paru, pacman, Flatpak, and Termux pkg, run updt, review what has updates, choose the targets you want, and let the original package managers do the work.
Project Links
- Crates.io package: https://crates.io/crates/updt
- API documentation: https://docs.rs/updt
- GitHub repository: https://github.com/jihaohaaaa/updt
What It Does
updt answers one question quickly: which of my system and developer tools can be upgraded right now?
It checks supported targets in parallel, shows the results in a terminal selector, and upgrades only the targets you confirm. It does not replace any package manager or maintain its own package database; it orchestrates the tools already installed on your machine.
Why Use It
- One command for routine update checks across multiple ecosystems.
- Interactive selection before anything is upgraded.
- Direct target updates for scripts or muscle memory, such as
updt update npm cargo. - Platform-aware defaults for macOS, Windows, Arch Linux, and Termux.
- Small Rust binary with no shell script bootstrap step.
Quick Start
Install the latest release from crates.io:
Run the interactive update flow:
Update specific targets without opening the selector:
Install fish completions:
Features
- Parallel checks across enabled targets for faster detection.
- Interactive terminal UI for selecting which targets to upgrade.
- Direct non-interactive updates with explicit target names.
- OS profile policy that only enables targets that make sense for the current platform.
- Fish shell completion installer.
- Uses existing package manager commands and forwards their output.
Supported Update Targets
| Target | What it updates | Notes |
|---|---|---|
brew |
Homebrew formulae and casks | macOS profile |
npm |
npm global packages | Requires npm |
cargo |
cargo-installed crates | Requires cargo-install-update |
rustup |
Rust toolchains | Requires rustup |
fnm |
fnm-managed Node.js versions | Checks latest and LTS versions |
scoop |
Scoop packages | Windows profile |
paru |
AUR packages | Arch Linux profile |
flatpak |
Flatpak apps | Arch Linux profile |
pacman |
pacman packages | Arch Linux profile |
pkg |
Termux packages | Termux profile |
Windows system package managers winget and choco are intentionally unsupported.
Platform Defaults
updt enables targets by OS profile:
| Profile | Enabled targets |
|---|---|
| macOS | brew, npm, cargo, rustup, fnm |
| Windows | npm, cargo, rustup, fnm, scoop |
| Arch Linux | npm, cargo, rustup, fnm, paru, pacman, flatpak |
| Termux | pkg, npm, cargo, fnm |
| Other systems | None |
Unsupported or missing commands are skipped during checks.
Requirements
Install the package managers you want updt to control. For cargo package checks, install cargo-update so cargo-install-update is available:
Target-specific notes:
cargochecks requirecargo-install-updateinPATH.cargo-binstallis recommended for faster binary installation of cargo-managed tools.- Termux
pkgchecks useapt list --upgradable. pacmanupgrades may usesudoorpkexec, depending on terminal focus and desktop session state.
Interactive Flow
Running updt starts a three-stage workflow:
- Check upgrade candidates.
- Select targets to upgrade.
- Run upgrades for selected targets.
The check stage runs in parallel across enabled targets. The upgrade stage runs the underlying package manager commands and forwards their output.
Selector controls:
| Key | Action |
|---|---|
Up / Down |
Move cursor |
Space |
Toggle selected target |
Enter |
Confirm selection |
q / Esc |
Quit selection |
CLI Reference
Show the installed version:
Run the default interactive workflow:
Update selected targets without the interactive selector:
Install fish completion to ~/.config/fish/completions/updt.fish:
Development
Build the project:
Run tests:
Run formatting and lint checks before opening a pull request:
Contributing
Issues and pull requests are welcome. Please include the operating system, the target package manager, and the command output when reporting an update detection or upgrade problem.
See CONTRIBUTING.md for the development workflow and SECURITY.md for responsible vulnerability reporting.
License
This project is licensed under the MIT License.