Skip to content

Install Zig from a Package Manager

Felix Hanley edited this page Nov 28, 2019 · 17 revisions

Note: Official builds of master branch and releases are available for download.

Homebrew

Latest tagged release

brew install zig

Latest build from Git master branch

brew install zig --HEAD

Macports

port install zig

Ubuntu (using snap)

Latest tagged release

snap install zig --classic --beta

Latest build from Git master branch

snap install zig --classic --edge

NixOS

nix-env -i zig

Windows (using scoop)

scoop install ziglang

Windows (using chocolatey)

choco install zig

Arch Linux

pacman -S zig

zig-static AUR - This package uses the official ziglang.org static build instead of building against source. In the event that the llvm version in [extra] is not up to date with the latest version used by zig, this package can be used since it has no llvm dependency.

Gentoo

emerge dev-lang/zig
You can’t perform that action at this time.