-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Install Zig from a Package Manager
snxx edited this page Feb 7, 2022
·
55 revisions
Note: Official builds of master branch and releases are available for download.
See Repology for an overview of which package management systems and operating systems Zig has already been packaged for, and what the current packaged version is.
brew install zig
brew install zig --HEAD
port install zig
Ubuntu (using snap)
snap install zig --classic --beta
snap install zig --classic --edge
nix-env -i zig
Windows (using scoop)
scoop install zig
scoop bucket add versions
scoop install versions/zig-dev
Windows (using chocolatey)
choco install zig # Use -y for automatically skipping confirmation messages
Windows (using msys2)
pacman -S mingw-w64-x86_64-zig
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.
emerge dev-lang/zig
emerge '=dev-lang/zig-9999'
xbps-install -Su zig
DragonFlyBSD (using ravenports)
ravensw install zig-single-standard
dnf install zig
rpm-ostree install zig