# 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **バージョン:** 0.69.0
- **ソース概要:** Diff that understands syntax
- **ホームページ:** <https://difftastic.wilfred.me.uk/>
- **リポジトリ:** <https://github.com/Wilfred/difftastic>
- **最終更新:** 2026-06-15T10:20:15-04:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- difft (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
