# 使用 Homebrew, Nix 安装 pg-schema-diff

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

## 安装

```sh
sudo av install brew:pg-schema-diff
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install pg-schema-diff
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#pg-schema-diff
```

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

## 软件包事实

- **软件包键:** brew:pg-schema-diff
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/pg-schema-diff>
- **版本:** 1.0.8
- **来源摘要:** Diff Postgres schemas and generating SQL migrations
- **主页:** <https://github.com/stripe/pg-schema-diff>
- **仓库:** <https://github.com/stripe/pg-schema-diff>
- **许可证:** MIT
- **源码归档:** <https://github.com/stripe/pg-schema-diff/archive/refs/tags/v1.0.8.tar.gz>
- **最后更新:** 2026-07-28T15:51:40Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- pg-schema-diff (cli)
- pg-schema-diff (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.8
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://github.com/stripe/pg-schema-diff
- 检测到的最新版本: v1.0.8 (当前)

## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pg-schema-diff
- **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

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

- Nix - pg-schema-diff: normalized package name match | nixpkgs package indexes: pkgs/by-name/pg/pg-schema-diff/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.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [pgcli](https://pkg.so/zh-hans/brew/pgcli/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pgbouncer](https://pkg.so/zh-hans/brew/pgbouncer/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pg_partman](https://pkg.so/zh-hans/brew/pg-partman/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pgbadger](https://pkg.so/zh-hans/brew/pgbadger/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pgbackrest](https://pkg.so/zh-hans/brew/pgbackrest/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pgcopydb](https://pkg.so/zh-hans/brew/pgcopydb/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [pg_top](https://pkg.so/zh-hans/brew/pg-top/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql.
- [dbmate](https://pkg.so/zh-hans/brew/dbmate/) - Shares pkgdb curated category or tags: cli, database, developer-tools, postgresql, sql.

## Combined YAML source

View the package source record on GitHub. [combined/pg-schema-diff.yml](https://github.com/mxcl/pkgdb/blob/main/combined/pg-schema-diff.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
