Pre built Ninja packages - ninja-build/ninja GitHub Wiki
Official releases of binaries for Linux, Mac, and Windows can be found on the releases page.
Package managers
Warning: depending on the source, the binary releases from package managers may be out of date.
Linux
- Arch:
pacman -S ninja
- Debian/Ubuntu:
apt-get install ninja-build
- Fedora:
dnf install ninja-build
- Gentoo:
emerge dev-util/ninja
- Opensuse:
zypper in ninja
- Alpine:
apk add ninja
- Void:
xbps-install -S ninja
Mac
brew install ninja
port install ninja
FreeBSD
pkg install ninja
Windows
winget install Ninja-build.Ninja
choco install ninja
scoop install ninja
User-Level Package Managers
conda install -c conda-forge ninja
- Pip:
python -m pip install ninja
spack install ninja