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

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

## インストール

```sh
sudo av install brew:difftastic
```

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

### macOS

- Homebrew (100%):

```sh
brew install difftastic
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install difftastic
```

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

### Linux

- apk (92%):

```sh
sudo apk add difftastic
```

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

- dnf (92%):

```sh
sudo dnf install difftastic
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#difftastic
```

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

- pacman (92%):

```sh
sudo pacman -S difftastic
```

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

- zypper (92%):

```sh
sudo zypper install difftastic
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/difftastic
```

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

- winget (92%):

```sh
winget install --id Wilfred.difftastic -e
```

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

## パッケージ情報

- **パッケージキー:** brew:difftastic
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/difftastic>
- **バージョン:** 0.69.0
- **ソース概要:** Diff that understands syntax
- **ホームページ:** <https://difftastic.wilfred.me.uk/>
- **リポジトリ:** <https://github.com/Wilfred/difftastic>
- **上流ドキュメント:** <https://difftastic.wilfred.me.uk/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/Wilfred/difftastic/archive/refs/tags/0.69.0.tar.gz>
- **最終更新:** 2026-06-15T10:20:15-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

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

## ビルド依存関係

- rust

## インストール挙動

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

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.69.0
- マネージャ更新日: 2026-06-15
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/Wilfred/difftastic
- 検出された最新: 0.69.0 (最新)
## プロジェクトの歴史と使われ方

Difftastic is a structural diff tool that compares files using syntax rather than only lines, producing human-oriented output for code review and version-control workflows.

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

The project README defines Difftastic as a syntax-aware diff tool and explicitly contrasts it with line-oriented diffing. Its changelog shows rapid development from the 0.1 series in 2021 through regular parser, display, Git-integration, and performance improvements.

### 採用の歴史

The official installation documentation covers multiple package-manager routes, and the README highlights compatibility with Git and other version-control systems. The manual provides specific Git aliases, `diff.external`, and `difftool` configuration, which made the tool easy to adopt incrementally.

### 使われ方

Difftastic is commonly invoked as `difft` directly or wired into Git so `git diff`, `git show`, or `git log -p` can display syntax-aware differences. When files are unrecognized or parsing fails, the README documents fallback behavior to line-oriented diffing.

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

Difftastic is interesting to package nerds because it packages tree-sitter-backed structural comparison as a normal CLI. It lets maintainers review source changes in languages where reformatting, delimiters, and nested syntax can obscure the real change in a traditional unified diff.

### タイムライン

- 2021: 0.1 series began, followed by frequent early releases.
- 2022: Changelog shows continued language, parser, and display expansion through the 0.30 series.
- 2025: 0.63 taught directory diffs to ignore `.git` directories.
- 2026: 0.69 released with punctuation-aware syntactic comparison improvements.

### Related projects

- Difftastic is related to traditional `diff`, Git external diff drivers, Git difftool integration, and tree-sitter parsers; its README also points users interested in AST merging to mergiraf.

### ソース

- <https://github.com/Wilfred/difftastic#readme>
- <https://difftastic.wilfred.me.uk/git.html>
- <https://github.com/Wilfred/difftastic/blob/master/CHANGELOG.md>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

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

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

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

- Nix - difftastic: normalized package name match | nixpkgs package indexes: pkgs/by-name/di/difftastic/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - difftastic - 0.69.0-r0: normalized package name match | Alpine Linux edge package indexes: difftastic from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Diff tool that understands syntax | https://difftastic.wilfred.me.uk/
- apk - difftastic-doc - 0.69.0-r0: normalized package name match | Alpine Linux edge package indexes: difftastic-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Diff tool that understands syntax (documentation) | https://difftastic.wilfred.me.uk/
- dnf - difftastic - 0.69.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: difftastic from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Structural diff that understands syntax | https://crates.io/crates/difftastic
- pacman - difftastic - 0.69.0-1: normalized package name match | Arch Linux sync databases: difftastic from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An experimental diff tool that compares files based on their syntax | https://difftastic.wilfred.me.uk
- zypper - difftastic - 0.69.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: difftastic from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A structural diff that understands syntax | https://difftastic.wilfred.me.uk/
- zypper - difftastic-doc - 0.69.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: difftastic-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for difftastic | https://difftastic.wilfred.me.uk/
- MacPorts - difftastic: normalized package name match | MacPorts ports tree: devel/difftastic/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/difftastic: normalized package name match | Scoop official bucket manifest trees: bucket/difftastic.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Wilfred.difftastic: normalized package name match | Windows Package Manager source index: Wilfred.difftastic from https://cdn.winget.microsoft.com/cache/source.msix


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [happy-coder](https://pkg.so/ja/brew/happy-coder/) - Popular package that depends on this formula.
- [diff-so-fancy](https://pkg.so/ja/brew/diff-so-fancy/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [diffnav](https://pkg.so/ja/brew/diffnav/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [difi](https://pkg.so/ja/brew/difi/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [diffr](https://pkg.so/ja/brew/diffr/) - Shares pkgdb curated category or tags: cli, developer-tools, diff, git.
- [diffutils](https://pkg.so/ja/brew/diffutils/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [colordiff](https://pkg.so/ja/brew/colordiff/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [diffoscope](https://pkg.so/ja/brew/diffoscope/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.
- [dyff](https://pkg.so/ja/brew/dyff/) - Shares pkgdb curated category or tags: cli, developer-tools, diff.

## Combined YAML source

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


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
