Ubuntu toolchains
linux-toolchain is an interactive installer for developer toolchains on
Debian and Ubuntu. Run it with npx linux-toolchain or bunx linux-toolchain,
pick the toolchains you want, choose each one’s options and add-ons, review the
plan, and it installs them one after another.
It is a TypeScript port of the repository’s install-toolchains.sh script,
with the same toolchain ids, plus per-toolchain options, add-ons and
--dry-run.
What it installs
Section titled “What it installs”13 toolchains, in this install order:
| Area | Toolchains |
|---|---|
| JavaScript | nvm, bun and Node.js, global CLIs installed with bun (nx, turbo, expo, …) |
| Go, Rust | Go, Rust via rustup |
| Python | python3, pip, venv, pipx and uv, pyenv |
| Java | OpenJDK with Maven and Gradle, jenv |
| Mobile | Flutter, Android SDK |
| Native | C/C++ compilers, build systems and debuggers |
| Containers | Docker Engine with buildx and compose |
| AI | Claude Code CLI |
Each toolchain has its own options (for example the JDK versions, or the Rust release channel) and up to three add-ons. The toolchain reference lists them all, with their defaults.
Supported systems
Section titled “Supported systems”- Linux with apt: Debian, Ubuntu and their derivatives. On other platforms the CLI exits with an error; on a Linux system without apt, the toolchains that need apt fail.
- Node.js 22.13 or newer to run it with
npx, or bun to run it withbunx. The published package is a single bundled file with no runtime dependencies. Install one of them first: Prerequisites shows how, with nvm or the bun installer. - sudo for the system steps (apt packages,
/usr/local,/opt,/etc/profile.d). You run the CLI as your normal user.
Safety model
Section titled “Safety model”- Dry run.
--dry-runexecutes nothing and never callssudo. It prints every script the install would run, each labelled[root]or[user]. - Review step. Before anything runs, the CLI shows a table of the
selected toolchains and their choices and asks
Proceed?. Only-y(or a run without a terminal) skips it. - Per-step sudo. Only the steps that need root go through
sudo, which prompts once and is kept fresh for the rest of the run. User-level tools (nvm, bun, rustup, uv, Claude Code, …) install into your home directory. The CLI never reads or stores your password. - Isolation. A failing toolchain is reported and the next one still runs. A failing add-on becomes a warning in the summary.
Next steps
Section titled “Next steps”PrerequisitesInstall Node.js (with nvm) or bun first.
Quick startPreview, then run your first install.
UsageThe interactive flow, every flag, list and exit codes.
How it workssudo, shell config markers, add-on warnings and downloads.
Toolchain referenceOptions, add-ons and examples for all 13 toolchains.