# anyzig を Homebrew, apk, chocolatey, dnf, MacPorts, Nix, pacman, zypper, scoop, winget でインストール

anyzig のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:anyzig
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install anyzig
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zig
```

  証拠: MacPorts ports tree: lang/zig/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add zig
```

  証拠: Alpine Linux edge package indexes: zig from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install zig
```

  証拠: Fedora Rawhide package metadata: zig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#zig
```

  証拠: nixpkgs package indexes: zig from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S zig
```

  証拠: Arch Linux sync databases: zig from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install zig
```

  証拠: openSUSE Tumbleweed package metadata: zig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install zig
```

  証拠: Chocolatey community package catalog: zig from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','yubikey-manager'

- Scoop (92%):

```sh
scoop install main/zig
```

  証拠: Scoop official bucket manifest trees: bucket/zig.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id zig.zig -e
```

  証拠: Windows Package Manager source index: zig.zig from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:anyzig
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/anyzig>
- **バージョン:** 2026.03.26
- **ソース概要:** Universal zig executable that runs any version of zig
- **ホームページ:** <https://github.com/marler8997/anyzig>
- **リポジトリ:** <https://github.com/marler8997/anyzig>
- **上流ドキュメント:** <https://github.com/marler8997/anyzig#readme>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/marler8997/anyzig/archive/refs/tags/v2026_03_26.tar.gz>
- **最終更新:** 2026-06-14T15:28:38-04:00
- **生成日時:** 2026-07-25T07:20:51+00:00

## 実行可能ファイル

- zig (cli)
- zig (エイリアス)

## ビルド依存関係

- zig@0.14

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-07-25
- マネージャ版: 2026.03.26
- マネージャ更新日: 2026-06-14
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/marler8997/anyzig
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

anyzig is a small Zig toolchain wrapper that installs as a `zig` executable and dispatches to the Zig version declared by a project. Its niche is the same one occupied by language-version shims in other ecosystems: make the command name stable while allowing each checkout to pin a compiler.

### プロジェクトの歴史

The upstream README describes anyzig as a universal Zig executable that reads `minimum_zig_version` from `build.zig.zon`, searching the current directory and parent directories. When a needed Zig version is missing, it downloads that compiler into Zig's global cache using an operation equivalent to `zig fetch`.

The project also tracks Zig-adjacent practice around the Mach game engine. Its README documents Mach nominated Zig versions, recognizes versions ending in `-mach`, and can read `.mach_zig_version` from `build.zig.zon` for projects that follow Mach's version stream.

### 採用の歴史

Its Homebrew formula packages the wrapper under the name `anyzig` while installing an executable named `zig`, making it useful for developers who want `brew install anyzig` to provide a version-aware Zig command instead of one fixed compiler build.

The public tag series uses date-like releases such as `v2025_02_10` through `v2026_03_26`, suggesting an actively updated compatibility shim rather than a frozen compiler distribution.

### 使われ方

Typical use is transparent: run `zig` inside a Zig project and let anyzig choose the version from `build.zig.zon`. The README also documents an explicit-version form such as `zig 0.13.0 build-exe myproject.zig` and an `zig any ...` command namespace for anyzig-specific commands.

### パッケージ好きにとっての重要性

Package nerds care because anyzig turns a single executable name into a project-sensitive Zig launcher. That is attractive in Homebrew, where replacing the normal `zig` command with a shim lets multiple project compiler versions coexist without installing and selecting separate formulae by hand.

### タイムライン

- 2025: Public date-stamped release tags such as `v2025_02_10` appear in the upstream Git repository.
- 2025: README documents Mach nominated Zig version handling and `.mach_zig_version` support.
- 2026: Date-stamped tags continue through `v2026_03_26` in the upstream Git repository.

### Related projects

- Zig is the compiler that anyzig dispatches to.
- Mach is supported through nominated Zig version handling and a `.mach_zig_version` field.

### ソース

- <https://github.com/marler8997/anyzig#readme>
- <https://github.com/marler8997/anyzig.git tags via `git ls-remote --tags`>


## セキュリティノート

anyzig に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ./build.zig.zon
## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** anyzig
- **Version Scheme:** 0
- **Revision:** 0
- **Conflicts With:** zig
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 他のパッケージマネージャ記録

- MacPorts - zig: installed executable or alias match | MacPorts ports tree: lang/zig/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Nix - zig: installed executable or alias match | nixpkgs package indexes: zig from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - zig - 0.16.0-r1: installed executable or alias match | Alpine Linux edge package indexes: zig from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | General-purpose programming language designed for robustness, optimality, and maintainability | https://ziglang.org/
- apk - zig-doc - 0.16.0-r1: installed executable or alias match | Alpine Linux edge package indexes: zig-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | General-purpose programming language designed for robustness, optimality, and maintainability (documentation) | https://ziglang.org/
- dnf - zig - 0.16.0-1.fc45: installed executable or alias match | Fedora Rawhide package metadata: zig from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Programming language for maintaining robust, optimal, and reusable software | https://ziglang.org
- dnf - zig-doc - 0.16.0-1.fc45: installed executable or alias match | Fedora Rawhide package metadata: zig-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation for zig | https://ziglang.org
- dnf - zig-libs - 0.16.0-1.fc45: installed executable or alias match | Fedora Rawhide package metadata: zig-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | zig Standard Library | https://ziglang.org
- dnf - zig-rpm-macros - 0.16.0-1.fc45: installed executable or alias match | Fedora Rawhide package metadata: zig-rpm-macros from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Common RPM macros for zig | https://ziglang.org
- pacman - zig - 0.16.0-1: installed executable or alias match | Arch Linux sync databases: zig from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | a general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software | https://ziglang.org/
- zypper - zig - 0.15.2-1.1: installed executable or alias match | openSUSE Tumbleweed package metadata: zig from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Compiler for the Zig language | https://ziglang.org/
- zypper - zig0.14 - 0.14.1-2.3: installed executable or alias match | openSUSE Tumbleweed package metadata: zig0.14 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Compiler for the Zig language | https://ziglang.org/
- zypper - zig0.15 - 0.15.2-2.3: installed executable or alias match | openSUSE Tumbleweed package metadata: zig0.15 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Compiler for the Zig language | https://ziglang.org/
- zypper - zig0.16 - 0.16.0-1.1: installed executable or alias match | openSUSE Tumbleweed package metadata: zig0.16 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Compiler for the Zig language | https://ziglang.org/
- Chocolatey - zig: installed executable or alias match | Chocolatey community package catalog: zig from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','yubikey-manager'
- Scoop - main/zig: installed executable or alias match | Scoop official bucket manifest trees: bucket/zig.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - zig.zig: installed executable or alias match | Windows Package Manager source index: zig.zig from https://cdn.winget.microsoft.com/cache/source.msix


## 関連リンク

- [Source-control packages](https://www.automicvault.com/ja/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/ja/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/ja/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/ja/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [proto](https://www.automicvault.com/ja/pkg/brew/proto/) - Shares av.db curated category or tags: cli, developer-tools, toolchain, toolchains, version-manager.
- [zigup](https://www.automicvault.com/ja/pkg/brew/zigup/) - Shares av.db curated category or tags: cli, developer-tools, toolchain, version-manager, zig.
- [ghcup](https://www.automicvault.com/ja/pkg/brew/ghcup/) - Shares av.db curated category or tags: cli, developer-tools, toolchain, version-manager.
- [goenv@2](https://www.automicvault.com/ja/pkg/brew/goenv-2/) - Shares av.db curated category or tags: cli, developer-tools, toolchain, version-manager.
- [juliaup](https://www.automicvault.com/ja/pkg/brew/juliaup/) - Shares av.db curated category or tags: cli, developer-tools, toolchain, version-manager.
- [swiftly](https://www.automicvault.com/ja/pkg/brew/swiftly/) - Shares av.db curated category or tags: cli, developer-tools, toolchain, version-manager.
- [anyenv](https://www.automicvault.com/ja/pkg/brew/anyenv/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.
- [aqua](https://www.automicvault.com/ja/pkg/brew/aqua/) - Shares av.db curated category or tags: cli, developer-tools, version-manager.

## Combined YAML source

View the package source record on GitHub. [combined/anyzig.yml](https://github.com/automic-vault/db/blob/main/combined/anyzig.yml)


## ソース

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
