# zls を Homebrew, apk, Nix, pacman, zypper, scoop, winget でインストール

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

## インストール

```sh
sudo av install brew:zls
```

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

### macOS

- Homebrew (100%):

```sh
brew install zls
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add zls
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#zls
```

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

- pacman (92%):

```sh
sudo pacman -S zls
```

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

- zypper (92%):

```sh
sudo zypper install zls
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/zls
```

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

- winget (92%):

```sh
winget install --id zigtools.zls -e
```

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

## パッケージ情報

- **パッケージキー:** brew:zls
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.16.0
- **ソース概要:** Language Server for Zig
- **ホームページ:** <https://zigtools.org/zls/>
- **リポジトリ:** <https://github.com/zigtools/zls>
- **最終更新:** 2026-06-14T14:04:18-04:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- zls (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.16.0
## プロジェクトの歴史と使われ方

ZLS is the Zig Language Server, a Zig implementation of the Language Server Protocol that provides editor features such as completion, hover, diagnostics, go-to-definition, formatting integration, semantic tokens, inlay hints, and code actions.

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

The zigtools/zls repository was created in 2020, during Zig's pre-1.0 growth period when editor tooling had to track a moving compiler and standard library. The README describes ZLS as a non-official Language Server Protocol implementation for Zig written in Zig.

ZLS evolved together with the zigtools ecosystem. The zigtools site now groups ZLS with related projects such as the Zig Playground and Zig LSP Kit, the latter explicitly described as building blocks for LSP implementations like ZLS.

### 採用の歴史

ZLS became the de facto language-server choice for Zig developers because the Zig language tools page points users to zigtools/zls, and editor documentation focuses on wiring ZLS into everyday development. The official Zig VS Code workflow can install Zig and ZLS automatically, while other editors commonly ask users to install a matching zls binary themselves.

Because Zig changes quickly before 1.0, ZLS adoption is tied to version compatibility. The ZLS installation guide warns that tagged Zig releases should be paired with matching tagged ZLS releases, and nightly Zig builds should be paired with nightly ZLS builds. That makes the package especially relevant for package managers and dev shells.

### 使われ方

ZLS runs as an editor-launched language server. Users normally configure their editor or LSP client to start zls, then get completion, hover, diagnostics, symbol navigation, formatting via zig fmt, semantic tokens, inlay hints, and code actions inside Zig projects.

The most common operational problem is keeping the Zig compiler and ZLS in sync. Package users often care less about invoking zls directly and more about whether their editor, PATH, and project toolchain resolve compatible Zig and ZLS builds.

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

ZLS is one of the clearest examples of modern language tooling as a package-manager problem. A single executable unlocks editor support across many clients, but it must track a fast-moving compiler closely enough that mismatched packages produce confusing development failures.

For Zig users, installing zls is often the difference between syntax highlighting and a real IDE-like workflow, so it has become part of the standard systems-programming workstation kit.

### タイムライン

- 2020-04-24: The zigtools/zls GitHub repository is created.
- 2020s: ZLS becomes the Zig community's primary LSP implementation.
- 2020s: The Zig tools page links to zigtools/zls under language servers.
- 2020s: The official Zig VS Code setup path gains automatic Zig and ZLS installation, while the ZLS guide continues to document source and binary installs.

### Related projects

- ziglang/zig is the compiler and standard library that ZLS must track closely.
- ziglang/vscode-zig is the official VS Code extension path that integrates with ZLS.
- Zig LSP Kit is a related zigtools project for building LSP implementations in Zig.
- The Language Server Protocol is the editor-server protocol ZLS implements.

### ソース

- <https://api.github.com/repos/zigtools/zls>
- <https://github.com/zigtools/zls>
- <https://ziglang.org/learn/tools/>
- <https://zigtools.org/>
- <https://zigtools.org/zls/editors/vscode/>
- <https://zigtools.org/zls/install/>


## セキュリティノート

broad file, network, media, or database tool signal.

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal


## 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: $local_config_dir/zls.json, $global_config_dir/zls.json
## 他のパッケージマネージャ記録

- Nix - zls: normalized package name match | nixpkgs package indexes: zls from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - zls - 0.16.0-r0: normalized package name match | Alpine Linux edge package indexes: zls from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zig Language Server | https://github.com/zigtools/zls
- pacman - zls - 0.15.1-1: normalized package name match | Arch Linux sync databases: zls from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A language server for Zig | https://github.com/zigtools/zls
- zypper - zls - 0.15.0-2.6: normalized package name match | openSUSE Tumbleweed package metadata: zls from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Language server implementation for Zig in Zig | https://github.com/zigtools/zls
- Scoop - main/zls: normalized package name match | Scoop official bucket manifest trees: bucket/zls.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - zigtools.zls: normalized package name match | Windows Package Manager source index: zigtools.zls from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/zls.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zls.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
