macOS
brew install colordifflocal Homebrew formula metadata
sudo port install colordiffMacPorts ports tree · textproc/colordiff/Portfile · 来源: api.github.com
安装
brew install colordifflocal Homebrew formula metadata
sudo port install colordiffMacPorts ports tree · textproc/colordiff/Portfile · 来源: api.github.com
sudo apk add colordiffAlpine Linux edge package indexes · colordiff · 来源: dl-cdn.alpinelinux.org
sudo apt install colordiffDebian stable package indexes · colordiff · 来源: deb.debian.org
sudo dnf install colordiffFedora Rawhide package metadata · colordiff · 来源: dl.fedoraproject.org
nix profile install nixpkgs#colordiffnixpkgs package indexes · pkgs/by-name/co/colordiff/package.nix · 来源: api.github.com
sudo pacman -S colordiffArch Linux sync databases · colordiff · 来源: geo.mirror.pkgbuild.com
sudo zypper install colordiffopenSUSE Tumbleweed package metadata · colordiff · 来源: download.opensuse.org
概览
Color-highlighted diff(1) output
历史
colordiff is Dave Ewart's Perl wrapper for `diff`, adding ANSI color to traditional diff output while preserving the familiar diff command-line workflow.
The program dates to 2002 and has remained intentionally small: it wraps or filters diff-family output, recognizes several diff formats, and applies configurable color schemes. Its changelog shows a long maintenance history of portability fixes, support for more diff styles, and terminal behavior improvements rather than a shift in scope.
The upstream site tells Debian and Ubuntu users to install it from their distributions and notes that colordiff is packaged for other Linux, Unix, and BSD systems. The supplied package-manager metadata backs that up with entries across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, and openSUSE.
Package users commonly run `colordiff file1 file2`, pipe existing `diff -u` output through `colordiff`, or alias `diff=colordiff`. The companion `cdiff` helper exists for compressed or URL-based diffs.
colordiff is the archetypal tiny terminal-enhancement package: stable, scriptable, dependency-light, and useful before Git's color defaults became universal. Its value to package managers is broad portability and a predictable configuration surface rather than novelty.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cdiff | cli | 全局可执行文件 | |
colordiff | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:colordiff |
|---|---|
| 版本 | 1.0.22 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/colordiff |
| 主页 | https://www.colordiff.org/ |
| 仓库 | https://github.com/daveewart/colordiff |
| 上游文档 | https://github.com/daveewart/colordiff#readme |
| 许可证 | GPL-2.0-or-later |
| 源码归档 | https://www.colordiff.org/colordiff-1.0.22.tar.gz |
| 最后更新 | 2026-07-24T10:43:25Z |
| Pulse | updated |
| 构建依赖 | coreutils |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | colordiff |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
colordiff 1.0.21-1
tool to colorize 'diff' output
sudo apt install colordiffcolordiff
nix profile install nixpkgs#colordiffcolordiff 1.0.20-1
tool to colorize 'diff' output
sudo apt install colordiffcolordiff 1.0.22-r0
Color terminal highlighter for diff files
sudo apk add colordiffcolordiff-doc 1.0.22-r0
Color terminal highlighter for diff files (documentation)
sudo apk add colordiff-doccolordiff 1.0.22-1.fc44
Color terminal highlighter for diff files
sudo dnf install colordiffcolordiff 1.0.22-1
A Perl script wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting
sudo pacman -S colordiffcolordiff 1.0.21-1.7
Colour-highlighted 'diff' output
sudo zypper install colordiffcolordiff
sudo port install colordiffpython3-cdiff 1.0-1.1
Colored, incremental diff with side by side and auto pager support (Python 3)
sudo apt install python3-cdiff来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.