# 使用 Homebrew, dnf, MacPorts, scoop, winget 安装 jd

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

## 安装

```sh
sudo av install brew:jd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jd
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jd
```

  证据: MacPorts ports tree: textproc/jd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- dnf (92%):

```sh
sudo dnf install jd
```

  证据: Fedora Rawhide package metadata: jd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install extras/jd
```

  证据: Scoop official bucket manifest trees: bucket/jd.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id josephburnett.jd -e
```

  证据: Windows Package Manager source index: josephburnett.jd from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:jd
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/jd>
- **版本:** 2.5.0
- **来源摘要:** JSON diff and patch
- **主页:** <https://github.com/josephburnett/jd>
- **仓库:** <https://github.com/josephburnett/jd>
- **上游文档:** <https://github.com/josephburnett/jd/blob/master/README.md>
- **许可证:** MIT
- **源码归档:** <https://github.com/josephburnett/jd/archive/refs/tags/v2.5.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- jd (cli)
- jd (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.5.0
- 本地数据: OK
- 上游仓库: https://github.com/josephburnett/jd
- 检测到的最新版本: v2.5.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

jd is a command-line utility and Go library for diffing and patching JSON and YAML values. Its README describes a native jd diff format, JSON Merge Patch support from RFC 7386, and partial JSON Patch support from RFC 6902.

### 项目历史

The public repository was created in 2016 and its tag history begins with v1.0-era releases before moving through a v2 series. The README says the v2 library replaced the v1 library, adding diff context, minimal array diffs, and hunk-level metadata.

### 采用历史

jd is packaged by Homebrew, Fedora, MacPorts, Scoop, and winget metadata in the input. The README also documents installation through Homebrew, mise, go install, downloaded release binaries, Docker, a GitHub Action, and a local or hosted WebAssembly-based UI.

### 使用方式

The CLI compares two JSON files, reads a second value from standard input when omitted, applies patches with -p, writes output with -o, handles set and multiset array semantics, translates formats, and can read or write YAML. Its examples show using a generated diff as a patch file.

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

jd fills the gap left by line-oriented diff when structured JSON changes need to be reviewed, patched, or normalized. Package nerds care because it makes JSON changes scriptable while preserving concepts familiar from Unix diff and patch.

### 时间线

- 2016: The jd repository was created and v1.0-era tags began.
- 2020: v1.3.0 appeared in the tag stream under both release-1.3.0 and v1.3.0 names.
- 2022: v2.0.0 began the v2 line.
- 2024: v2.4.0 appeared in the tag stream.
- 2025: v2.5.0 added targeted comparison options and path-isolated diff semantics.

### Related projects

- Related standards and tools include Unix diff and patch, JSON Merge Patch RFC 7386, JSON Patch RFC 6902, YAML tooling, Go package distribution, GitHub Actions, and the jd WebAssembly UI.

### 来源

- <https://formulae.brew.sh/formula/jd>
- <https://github.com/josephburnett/jd>
- <https://github.com/josephburnett/jd/blob/master/README.md>
- <https://github.com/josephburnett/jd/releases>
- <https://pkg.go.dev/github.com/josephburnett/jd>


## 安全说明

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:** jd
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- dnf - jd - 0.16.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: jd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A 2ch browser | https://github.com/JDimproved/JDim
- MacPorts - jd: normalized package name match | MacPorts ports tree: textproc/jd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/jd: normalized package name match | Scoop official bucket manifest trees: bucket/jd.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - josephburnett.jd: normalized package name match | Windows Package Manager source index: josephburnett.jd from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [dyff](https://www.automicvault.com/zh-hans/pkg/brew/dyff/) - Shares av.db curated category or tags: cli, developer-tools, diff, json.
- [gpatch](https://www.automicvault.com/zh-hans/pkg/brew/gpatch/) - Shares av.db curated category or tags: cli, developer-tools, diff, patch.
- [wiggle](https://www.automicvault.com/zh-hans/pkg/brew/wiggle/) - Shares av.db curated category or tags: cli, developer-tools, diff, patch.
- [bazel-diff](https://www.automicvault.com/zh-hans/pkg/brew/bazel-diff/) - Shares av.db curated category or tags: cli, developer-tools, diff.
- [colordiff](https://www.automicvault.com/zh-hans/pkg/brew/colordiff/) - Shares av.db curated category or tags: cli, developer-tools, diff.
- [config-file-validator](https://www.automicvault.com/zh-hans/pkg/brew/config-file-validator/) - Shares av.db curated category or tags: cli, developer-tools, json.
- [dasel](https://www.automicvault.com/zh-hans/pkg/brew/dasel/) - Shares av.db curated category or tags: cli, developer-tools, json.
- [dhall-json](https://www.automicvault.com/zh-hans/pkg/brew/dhall-json/) - Shares av.db curated category or tags: cli, developer-tools, json.
- [diffpatch](https://www.automicvault.com/zh-hans/pkg/npm/diffpatch/) - Both packages work with overlapping file formats or content types. Shared terms: cli, developer, developer-tools, diff, json.

## Combined YAML source

View the package source record on GitHub. [combined/jd.yml](https://github.com/automic-vault/db/blob/main/combined/jd.yml)


## 来源

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