# 使用 Homebrew, Nix 安装 patch-package

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

## 安装

```sh
sudo av install brew:patch-package
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install patch-package
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#patch-package
```

  证据: nixpkgs package indexes: pkgs/by-name/pa/patch-package/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:patch-package
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/patch-package>
- **版本:** 8.0.1
- **来源摘要:** Fix broken node modules instantly
- **主页:** <https://github.com/ds300/patch-package>
- **仓库:** <https://github.com/ds300/patch-package>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/patch-package/-/patch-package-8.0.1.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- patch-package (cli)
- patch-package (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 8.0.1
- 本地数据: OK
- 上游仓库: https://github.com/ds300/patch-package
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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

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

- Nix - patch-package: normalized package name match | nixpkgs package indexes: pkgs/by-name/pa/patch-package/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [npm-check-updates](https://pkg.so/zh-hans/brew/npm-check-updates/) - Shares pkgdb curated category or tags: cli, dependencies, developer-tools, nodejs, npm.
- [nrm](https://pkg.so/zh-hans/brew/nrm/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, dependencies, developer-tools, nodejs, package-management.
- [corepack](https://pkg.so/zh-hans/brew/corepack/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [ni](https://pkg.so/zh-hans/brew/ni/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [pipx](https://pkg.so/zh-hans/brew/pipx/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [cask](https://pkg.so/zh-hans/brew/cask/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [rpm](https://pkg.so/zh-hans/brew/rpm/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [patch-package](https://pkg.so/zh-hans/npm/patch-package/) - Same normalized package name appears in another local ecosystem. Shared terms: broken, cli, developer, developer-tools, fix.
- [patch-package](https://pkg.so/zh-hans/npm/patch-package/) - Same normalized package name in another local ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/patch-package.yml](https://github.com/mxcl/pkgdb/blob/main/combined/patch-package.yml)


## 来源

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