Automic VaultAutomic Vault

brew

ydiff を Homebrew, apt, dnf, MacPorts, Nix でインストール

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

インストール

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

macOS

Homebrew確認済み · 100%
brew install ydiff

local Homebrew formula metadata

MacPorts確認済み · 94%
sudo port install ydiff

MacPorts ports tree · textproc/ydiff/Portfile · ソース: api.github.com

概要

パッケージ概要

View colored diff with side by side and auto pager support

コマンドとエイリアス

  • ydiff

履歴

プロジェクトの歴史と使われ方

Ydiff is a terminal diff viewer for colored, incremental diffs from version-control workspaces or stdin. It is best known for side-by-side display, automatic pager use, and a single-file Python implementation with no external Python dependencies.

プロジェクトの歴史

The GitHub repository was created on 2013-01-29, and the changelog begins with early PyPI-era releases in February 2013 under the original `cdiff` name. Within weeks it gained support for patch files, pipes, revision-control output, two-file comparison, color control, logs, and more robust diff parsing.

During 2013 and 2014, the project moved from a small colored-diff helper into a workspace-oriented reviewer: it added Git/SVN/Hg log handling, automatic terminal-width behavior, pager tuning, Python 3.4 support, and fixes for difficult unified diffs.

The 2018 1.1 release renamed the command from `cdiff` to `ydiff` to avoid a binary-name conflict on major distributions. Later releases added Perforce and Windows support, wide-character handling, word-level change blocks, default side-by-side behavior, and customizable themes.

採用の歴史

Ydiff adopted well for a small terminal tool because it solved a common packaging pain point: colorful side-by-side diffs without a GUI and without a heavy dependency stack. Its README documents installation from source, PyPI, Homebrew, Fedora, and FreeBSD.

Distribution adoption is visible in Homebrew, Fedora, FreeBSD/OpenBSD, Debian-derived package naming, and Nix-style package indexes. The rename from cdiff to ydiff is especially package-nerd relevant because it was driven by command-name collision management across distributions.

使われ方

Users run `ydiff` inside Git, Mercurial, Perforce, or Subversion workspaces to view current changes, staged Git changes via passed-through options such as `--cached`, or revision logs via `-l`. It can also consume `git show`, `git log -p`, `svn diff`, `diff -u`, directory diffs, and GitHub pull-request `.diff` URLs from stdin.

The practical attraction is that ydiff wraps ordinary unified diffs with readable terminal presentation: side-by-side or unified layout, automatic width detection, line wrapping controls, pager selection, themes, color modes, and safe redirection back to patch files.

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

Ydiff is a neat package-manager case study because almost all of its value ships as one Python command. Packaging it is mostly about naming, executable placement, and keeping terminal behavior consistent across Unix-like systems.

The cdiff-to-ydiff rename captures a real packaging concern: a project can be technically simple and still need an upstream identity change once distribution command namespaces collide.

タイムライン

  • 2013-01-29: The ymattw/ydiff repository is created.
  • 2013-02-04: Early PyPI-oriented changelog entries appear for cdiff.
  • 2013-02-18: The changelog adds log-reading support for SVN and Mercurial patch logs.
  • 2014-06-04: Python 3.4 support appears in the changelog.
  • 2018-06-05: The project is renamed from cdiff to ydiff to avoid binary-name conflicts on major distributions.
  • 2020-08-08: Perforce workspace and pager-customization support are added.
  • 2024-11-13: Word-level change blocks and theme selection land in the 1.4 line.
  • 2025-12-06: The changelog records INI-based custom themes and source/wheel publication changes.

Related projects

  • Related tools include cdiff, colordiff, diff, git diff, git show, git log -p, svn diff, hg log -p, Perforce diff tooling, icdiff, delta, diff-so-fancy, less, patchutils, and terminal pager workflows.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 1 個のプラットフォームターゲットで利用できます。
  • 1 件の実行時依存関係とともにインストールされます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
ydiffcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-08
マネージャ版1.5
マネージャ更新日
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/ymattw/ydiff

  • 情報No package-manager update timestamp was available.信頼度 低
  • 情報No cached GitHub release or tag data was available.https://github.com/ymattw/ydiff信頼度 none

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:ydiff
バージョン1.5
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/ydiff
ホームページhttps://github.com/ymattw/ydiff
リポジトリhttps://github.com/ymattw/ydiff
上流ドキュメントhttps://github.com/ymattw/ydiff#readme
ライセンスBSD-3-Clause
ソースアーカイブhttps://files.pythonhosted.org/packages/25/08/93b7e744645d94ae2f5dcddbbd2cfd5ec1420768994987a21a10b226be86/ydiff-1.5.tar.gz
依存関係python@3.14
Bottle利用可能 (対象 all)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameydiff
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

ソースデータベース一致

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

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

python3-cdiff 1.4.2-1

Colored, incremental diff (transitional package)

sudo apt install python3-cdiff
  • Section: python
  • Architecture: all
  • Source Package: ydiff
  • 1 依存関係
  • normalized package name match
  • 一致条件: Ydiff
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-cdiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-ydiff 1.4.2-1

Colored, incremental diff with side by side and auto pager support (Python 3)

sudo apt install python3-ydiff
  • Section: python
  • Architecture: all
  • Source Package: ydiff
  • 1 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Ydiff
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-ydiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ydiff

nix profile install nixpkgs#ydiff
  • normalized package name match
  • 一致条件: Ydiff
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: ydiff from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
dnf95%

python3-ydiff 1.5-8.fc45

View colored, incremental diff

https://github.com/ymattw/ydiff

sudo dnf install python3-ydiff
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ydiff
  • 1 依存関係
  • 5 提供
  • normalized package name match
  • 一致条件: Ydiff
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-ydiff from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ydiff 1.5-8.fc45

View colored, incremental diff

https://github.com/ymattw/ydiff

sudo dnf install ydiff
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ydiff
  • 3 依存関係
  • 1 提供
  • normalized package name match
  • 一致条件: Ydiff
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ydiff from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
MacPorts95%

ydiff

sudo port install ydiff
  • normalized package name match
  • 一致条件: Ydiff
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/ydiff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment