Quick start
-
Check the requirements. You need Debian, Ubuntu or a derivative (any system with apt), a user that can run
sudo, and Node.js 22.13 or newer fornpx(or bun forbunx).Terminal node --version # v22.13.0 or newer, or:bun --versionNeither installed? Follow Prerequisites to install Node.js with nvm or bun first.
-
Preview first.
--dry-runruns nothing and never callssudo; it prints each step the install would take, as a[root]or[user]block followed by its script. This previews every toolchain with its defaults:Terminal npx linux-toolchain --all --defaults --dry-runTerminal bunx linux-toolchain --all --defaults --dry-runBecause
--allincludesandroid, the dry run still asks you to accept the Android SDK licenses and then shows the review. Answer yes to both, or add-yto accept the licenses and skip the review. Without a terminal and without-y,androidis reported as failed (exit code 1) and the other scripts are still printed.--dry-runalso works with the interactive menu (npx linux-toolchain --dry-run): you go through every question and get the scripts instead of an install. -
Run it interactively. This installs: nothing changes until you confirm the review at the end.
Terminal (installs) npx linux-toolchainTerminal (installs) bunx linux-toolchain- Tick the toolchains you want in the checklist.
- For each one, answer its options (defaults are pre-selected) and pick its add-ons (the recommended ones are pre-checked).
- Check the review table and answer
Proceed?. - Enter your password when
sudoasks. It asks once for the whole run.
-
Open a new shell. The summary lists the toolchains that are
ok, the ones thatfailed, and add-onwarnings. Open a new shell, or log out and back in, so the PATH changes (and the docker group, if you installed Docker) take effect.