mirror of
https://github.com/ziglang/zig.git
synced 2024-11-24 21:30:14 +00:00
use markdown instead of asciidoc for package manager page
the other file was unmaintainable
parent
84c75952db
commit
f925dd5139
@ -1,139 +0,0 @@
|
||||
Note: Official builds of master branch and releases are https://ziglang.org/download/[available for download].
|
||||
|
||||
When using a package manager, it is best to use a tagged release rather than
|
||||
using an option to install a development version.
|
||||
|
||||
See https://repology.org/project/zig/versions[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.
|
||||
|
||||
https://repology.org/project/zig/versions[image:https://repology.org/badge/vertical-allrepos/zig.svg[Packaging status]]
|
||||
|
||||
[cols="3"]
|
||||
|====
|
||||
.2+^| *OS / Package manager*
|
||||
2+^| *Command to get latest ...*
|
||||
^.^| *... tagged release*
|
||||
^.^| *... Git `master` build*
|
||||
|
||||
|
||||
| **Arch Linux**
|
||||
| Official repository:
|
||||
```
|
||||
pacman -S zig
|
||||
```
|
||||
| https://aur.archlinux.org/packages/zig-static/[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.
|
||||
3+|
|
||||
|
||||
| **DragonFlyBSD (http://www.ravenports.com/[ravenports])**
|
||||
2+^|
|
||||
```
|
||||
ravensw install zig-single-standard
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Fedora**
|
||||
2+^|
|
||||
```
|
||||
dnf install zig
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Fedora Silverblue**
|
||||
2+^|
|
||||
```
|
||||
rpm-ostree install zig
|
||||
```
|
||||
3+|
|
||||
|
||||
| **FreeBSD**
|
||||
2+^| Choose the `-devel` variant for latest zig builds, which is periodically updated off zig latest
|
||||
```
|
||||
pkg install lang/zig{-devel}
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Gentoo**
|
||||
|
|
||||
```sh
|
||||
# Building from sources
|
||||
emerge -av dev-lang/zig
|
||||
# Official ziglang.org static build
|
||||
emerge -av dev-lang/zig-bin
|
||||
```
|
||||
|
|
||||
```sh
|
||||
emerge -av "=dev-lang/zig-9999"
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Homebrew**
|
||||
|
|
||||
```
|
||||
brew install zig
|
||||
```
|
||||
| unsupported
|
||||
3+|
|
||||
|
||||
| **MacPorts**
|
||||
2+^|
|
||||
```
|
||||
port install zig
|
||||
```
|
||||
3+|
|
||||
|
||||
| **NixOS**
|
||||
2+^|
|
||||
```
|
||||
nix-env -i zig
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Ubuntu (https://snapcraft.io/zig[snap])**
|
||||
|
|
||||
```
|
||||
snap install zig --classic --beta
|
||||
```
|
||||
|
|
||||
```
|
||||
snap install zig --classic --edge
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Void Linux**
|
||||
2+^|
|
||||
```
|
||||
xbps-install -Su zig
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Windows (https://chocolatey.org[choco])**
|
||||
2+^|
|
||||
```sh
|
||||
# Use -y for automatically skipping confirmation messages
|
||||
choco install zig
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Windows (https://msys2.org[MSYS2])**
|
||||
2+^|
|
||||
```
|
||||
pacman -S mingw-w64-x86_64-zig
|
||||
```
|
||||
3+|
|
||||
|
||||
| **Windows (http://scoop.sh/[scoop])**
|
||||
|
|
||||
```
|
||||
scoop install zig
|
||||
```
|
||||
|
|
||||
```
|
||||
scoop bucket add versions
|
||||
scoop install versions/zig-dev
|
||||
```
|
||||
3+|
|
||||
|====
|
||||
|
98
Install-Zig-from-a-Package-Manager.md
Normal file
98
Install-Zig-from-a-Package-Manager.md
Normal file
@ -0,0 +1,98 @@
|
||||
Note: Official builds of master branch and releases are
|
||||
[available for download](https://ziglang.org/download/).
|
||||
|
||||
When using a package manager, it is best to use a tagged release rather than
|
||||
using an option to install a development version.
|
||||
|
||||
See [Repology](https://repology.org/project/zig/versions) for an overview of
|
||||
which package management systems and operating systems Zig has already been
|
||||
packaged for, and what the current packaged version is.
|
||||
|
||||
[![Packaging status](https://repology.org/badge/vertical-allrepos/zig.svg)](https://repology.org/project/zig/versions)
|
||||
|
||||
## Arch Linux
|
||||
|
||||
```
|
||||
pacman -S zig
|
||||
```
|
||||
|
||||
## DragonFlyBSD (ravenports)
|
||||
|
||||
```
|
||||
ravensw install zig-single-standard
|
||||
```
|
||||
|
||||
## Fedora
|
||||
|
||||
```
|
||||
dnf install zig
|
||||
```
|
||||
|
||||
## Fedora Silverblue
|
||||
|
||||
```
|
||||
rpm-ostree install zig
|
||||
```
|
||||
|
||||
### FreeBSD
|
||||
|
||||
```
|
||||
pkg install lang/zig
|
||||
```
|
||||
|
||||
### Gentoo
|
||||
|
||||
```sh
|
||||
# Building from sources
|
||||
emerge -av dev-lang/zig
|
||||
# Official ziglang.org static build
|
||||
emerge -av dev-lang/zig-bin
|
||||
```
|
||||
|
||||
### Homebrew
|
||||
|
||||
```
|
||||
brew install zig
|
||||
```
|
||||
|
||||
### MacPorts
|
||||
|
||||
```
|
||||
port install zig
|
||||
```
|
||||
|
||||
### NixOS
|
||||
|
||||
```
|
||||
nix-env -i zig
|
||||
```
|
||||
|
||||
### Ubuntu (snap)
|
||||
|
||||
```
|
||||
snap install zig --classic --beta
|
||||
```
|
||||
|
||||
### Void Linux
|
||||
|
||||
```
|
||||
xbps-install -Su zig
|
||||
```
|
||||
|
||||
### Windows (choco)
|
||||
|
||||
```sh
|
||||
choco install zig
|
||||
```
|
||||
|
||||
### Windows (MSYS2)
|
||||
|
||||
```
|
||||
pacman -S mingw-w64-x86_64-zig
|
||||
```
|
||||
|
||||
### Windows (scoop)
|
||||
|
||||
```
|
||||
scoop install zig
|
||||
```
|
Loading…
Reference in New Issue
Block a user