pkg.soopen package index

brew / 排名 5156

使用 Homebrew, apk, MacPorts, Nix, zypper, scoop 安装 riff

查看 riff 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install riff

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install riff

MacPorts ports tree · textproc/riff/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add riff

Alpine Linux edge package indexes · riff · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#riff

nixpkgs package indexes · pkgs/by-name/ri/riff/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install riff

openSUSE Tumbleweed package metadata · riff · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install extras/riff

Scoop official bucket manifest trees · bucket/riff.json · 来源: api.github.com

概览

软件包摘要

Diff filter highlighting which line parts have changed

命令和别名

  • riff

历史

项目历史与用法

Riff, short for Refining Diff, is a command-line diff filter that highlights exactly which portions of changed lines differ.

项目历史

Riff was developed by Johan Walles as a diff refiner that identifies replaced regions and highlights the changed portions within individual lines. The implementation evolved into a Rust CLI supporting plain diffs, Git patches, merge conflicts, pager selection, hyperlinks, and whitespace highlighting.

Later releases added source-line hyperlinks and changed the default unchanged-text style to yellow. The official release history shows continued iterative releases in the 3.x series.

采用历史

Riff is distributed through Homebrew, Cargo, Linux package channels, MacPorts, Scoop, and Nix-related packaging. Its README also documents persistent Git integration through pager and interactive-diff-filter settings.

使用方式

Pipe a diff through `riff`, use `riff` as a replacement front end for `diff`, or configure it as Git's diff, show, log, and interactive diff filter. Options may be supplied persistently through the space-separated `RIFF` environment variable.

为什么软件包爱好者会关心

Riff occupies the Unix-filter niche between raw diff producers and full-screen diff viewers. Package users value that it can refine streamed output without changing its line count, preserving compatibility with workflows such as `git add -p`.

时间线

  • 2017: Public development began around refining Git and traditional diff output.
  • 2020s: Riff was rewritten and distributed as the Rust crate `riffdiff`.
  • 2025–2026: The 3.x release line added terminal hyperlinks and refined default styling.

Related projects

  • Riff wraps or filters output from `diff` and Git. Its pager selection prefers the `PAGER` environment setting, then `moor`, then `less`.

安全态势

风险级别:绿色

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 元数据适用于 7 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
riffcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-11-04
管理器版本3.6.2
管理器更新时间2026-10-11
本地数据OK
上游当前
检测到的最新版本3.6.2

https://github.com/walles/riff

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:riff
版本3.6.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/riff
主页https://github.com/walles/riff
仓库https://github.com/walles/riff
许可证MIT
源码归档https://github.com/walles/riff/archive/refs/tags/3.6.2.tar.gz
最后更新2026-10-11T19:50:20-04:00
Pulseupdated
构建依赖rust
Bottle可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

riff

nix profile install nixpkgs#riff
  • normalized package name match
  • 匹配方式:Riff
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ri/riff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

riff 3.6.1-r1

Diff wrapper that highlights changed portions of lines

https://github.com/walles/riff

sudo apk add riff
  • License: MIT
  • Architecture: x86_64
  • Source Package: riff
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Riff
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: riff from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

riff-doc 3.6.1-r1

Diff wrapper that highlights changed portions of lines (documentation)

https://github.com/walles/riff

sudo apk add riff-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: riff
  • normalized package name match
  • 匹配方式:Riff
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: riff-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
zypper95%

riff 3.6.2-1.1

A diff filter highlighting which line parts have changed

https://github.com/walles/riff

sudo zypper install riff
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: riff
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Riff
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: riff from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
MacPorts95%

riff

sudo port install riff
  • normalized package name match
  • 匹配方式:Riff
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/riff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

extras/riff

scoop install extras/riff
  • normalized package name match
  • 匹配方式:Riff
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/riff.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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