# tree-sitter を Homebrew, apk, chocolatey, MacPorts, Nix, pacman, zypper, apt, dnf, scoop でインストール

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

## インストール

```sh
sudo av install brew:tree-sitter
```

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

### macOS

- Homebrew (100%):

```sh
brew install tree-sitter
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tree-sitter
```

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

### Linux

- apk (92%):

```sh
sudo apk add tree-sitter
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#tree-sitter
```

  証拠: nixpkgs package indexes: pkgs/by-name/tr/tree-sitter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S tree-sitter
```

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

- zypper (92%):

```sh
sudo zypper install tree-sitter
```

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

- Debian apt (92%):

```sh
sudo apt install librust-tree-sitter-cli-dev
```

  証拠: Debian stable package indexes: librust-tree-sitter-cli-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install libtree-sitter
```

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

- Ubuntu apt (92%):

```sh
sudo apt install libtree-sitter-dev
```

  証拠: Ubuntu 24.04 LTS package indexes: libtree-sitter-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

### Windows

- Chocolatey (92%):

```sh
choco install tree-sitter
```

  証拠: Chocolatey community package catalog: tree-sitter from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='10.102','registrychangesview'

- Scoop (92%):

```sh
scoop install main/tree-sitter
```

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

## パッケージ情報

- **パッケージキー:** brew:tree-sitter
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/tree-sitter>
- **バージョン:** 0.26.11
- **ソース概要:** Incremental parsing library
- **ホームページ:** <https://tree-sitter.github.io/>
- **リポジトリ:** <https://github.com/tree-sitter/tree-sitter>
- **上流ドキュメント:** <https://tree-sitter.github.io/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/tree-sitter/tree-sitter/archive/refs/tags/v0.26.11.tar.gz>
- **最終更新:** 2026-07-12T13:09:53Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## インストール挙動

- post-install フック: 未定義
- 注意点: This formula now installs only the `tree-sitter` library (`libtree-sitter`). To install the CLI tool: brew install tree-sitter-cli
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.26.11
- マネージャ更新日: 2026-07-12
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/tree-sitter/tree-sitter
- 検出された最新: v0.26.11 (最新)

## セキュリティノート

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


## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tree-sitter
- **Aliases:** libtree-sitter, tree-sitter@0.26
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - librust-tree-sitter-cli-dev - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: librust-tree-sitter-cli-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line for Tree-sitter parsers - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-config-dev - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: librust-tree-sitter-config-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | user configuration of tree-sitter's CLI programs - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-dev - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: librust-tree-sitter-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | bindings to the tree-sitter parsing library - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-highlight-dev - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: librust-tree-sitter-highlight-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | perform syntax highlighting with tree-sitter - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-loader-dev - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: librust-tree-sitter-loader-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | locates, builds, and loads tree-sitter grammars - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - librust-tree-sitter-tags-dev - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: librust-tree-sitter-tags-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for extracting tag information - Rust source code | https://tree-sitter.github.io/tree-sitter/
- Debian apt - libtree-sitter-dev - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: libtree-sitter-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | incremental parsing system for programming tools (development files) | https://tree-sitter.github.io/tree-sitter/
- Debian apt - libtree-sitter0.22 - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: libtree-sitter0.22 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | incremental parsing system for programming tools | https://tree-sitter.github.io/tree-sitter/
- Debian apt - tree-sitter-cli - 0.22.6-6+b1: normalized package name match | Debian stable package indexes: tree-sitter-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line for Tree-sitter parsers | https://tree-sitter.github.io/tree-sitter/
- Nix - tree-sitter: normalized package name match | nixpkgs package indexes: pkgs/by-name/tr/tree-sitter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libtree-sitter-dev - 0.20.8-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libtree-sitter-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | incremental parsing system for programming tools (development files) | https://tree-sitter.github.io/tree-sitter/
- Ubuntu apt - libtree-sitter0 - 0.20.8-2: normalized package name match | Ubuntu 24.04 LTS package indexes: libtree-sitter0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | incremental parsing system for programming tools | https://tree-sitter.github.io/tree-sitter/
- apk - tree-sitter - 0.26.7-r1: normalized package name match | Alpine Linux edge package indexes: tree-sitter from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Incremental parsing system for programming tools | https://tree-sitter.github.io/
- apk - tree-sitter-cli - 0.26.7-r1: normalized package name match | Alpine Linux edge package indexes: tree-sitter-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Incremental parsing system for programming tools (CLI) | https://tree-sitter.github.io/
- apk - tree-sitter-dev - 0.26.7-r1: normalized package name match | Alpine Linux edge package indexes: tree-sitter-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Incremental parsing system for programming tools (development files) | https://tree-sitter.github.io/
- apk - tree-sitter-grammars - 0.26.7-r1: normalized package name match | Alpine Linux edge package indexes: tree-sitter-grammars from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Meta package for pulling in all tree-sitter grammars | https://tree-sitter.github.io/


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/ja/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [neovim](https://pkg.so/ja/brew/neovim/) - Popular package that depends on this formula.
- [semgrep](https://pkg.so/ja/brew/semgrep/) - Popular package that depends on this formula.
- [posting](https://pkg.so/ja/brew/posting/) - Popular package that depends on this formula.
- [rizin](https://pkg.so/ja/brew/rizin/) - Popular package that depends on this formula.
- [tree-sitter@0.25](https://pkg.so/ja/brew/tree-sitter-0-25/) - Package name indicates the same formula family.
- [tree-sitter-cli](https://pkg.so/ja/brew/tree-sitter-cli/) - Package name indicates the same formula family.

## ソース

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
