What is NitroPkg (npk)?
NitroPkg (npk) is the official package manager for Nitro OS. Engineered in Rust, it provides a fast, lightweight, and user-friendly command-line interface for installing, removing, updating, and managing system software.
Key Features & Architecture
Fast Package Management
Written in Rust with asynchronous parallel downloads and instant index lookups.
Simple & Intuitive Commands
Clean single-character aliases (npk i, npk rm, npk s) for effortless daily workflow.
Package Search
Fast multi-keyword search across official repositories and community package mirrors.
System Updates & Upgrades
Single-command synchronized repository refresh and rolling system package upgrades.
Cache Cleanup
Built-in automated cache garbage collection to maintain lean disk footprint.
Rust Powered Safety
Memory-safe binary architecture ensuring crash-free package transaction rollbacks.
Installation & Verification
NitroPkg comes pre-installed with Nitro OS. You can verify your installed version directly from any terminal:
# Check npk version
npk --version
# View all available flags and help
npk --helpBasic CLI Usage & Syntax
The standard command syntax:
npk <COMMAND> [ARGUMENTS]| Command | Alias | Example | Description |
|---|---|---|---|
| install | i | npk i firefox | Install one or more software packages. |
| remove | rm | npk rm firefox | Remove installed packages cleanly. |
| search | s | npk s neovim | Search repository packages by name/keyword. |
| update | - | npk update | Synchronize remote package databases. |
| upgrade | - | npk upgrade | Upgrade all installed system packages. |
| clean | - | npk clean | Remove old/unused downloaded package cache. |