# 使用 Homebrew, Nix, scoop 安装 git-pkgs

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

## 安装

```sh
sudo av install brew:git-pkgs
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install git-pkgs
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#git-pkgs
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/git-pkgs
```

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

## 软件包事实

- **软件包键:** brew:git-pkgs
- **软件包管理器:** Homebrew
- **版本:** 0.18.2
- **来源摘要:** Track package dependencies across git history
- **主页:** <https://git-pkgs.dev>
- **仓库:** <https://github.com/git-pkgs/git-pkgs>
- **最后更新:** 2026-07-27T16:47:23+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- git-pkgs (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.18.2
## 项目历史与用法

git-pkgs is a Git subcommand for indexing dependency changes across repository history into SQLite, so teams can ask when packages were added, changed, removed, or linked to vulnerability and license events.

### 项目历史

The project began as a Ruby implementation by Andrew Nesbitt and was later rewritten in Go under the git-pkgs organization. Both READMEs describe the same core idea: lockfiles and manifests show dependency state, but a queryable Git-history database explains how that state came to exist.

The Go repository began in January 2026 and kept the Git-subcommand interface while broadening the command set around vulnerability history, SBOM export, licenses, package-manager operations, changelog lookup, plugin support, structured help output, and CI actions.

### 采用历史

git-pkgs fits the supply-chain tooling ecosystem around OSV, Package URLs, CycloneDX, SPDX, and ecosyste.ms. Its package-manager coverage in the input includes Homebrew, Nix, and Scoop, and the README documents GitHub Actions workflows for dependency diffs, vulnerability reports, and license checks in pull requests.

### 使用方式

Practitioners run git pkgs init inside a repository to build .git/pkgs.sqlite3, then use subcommands such as list, history, blame, diff, stale, vulns, licenses, sbom, and changelog. The tool is designed to work offline for Git-history queries and to use external services only for enrichment such as vulnerabilities, registry metadata, and changelogs.

Security and platform teams use it to explain who introduced a dependency or vulnerability, compare branches semantically instead of reading lockfile noise, generate SBOMs, and add CI checks that focus reviewers on dependency changes.

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

git-pkgs is notable because it treats dependency manifests as historical data rather than only static files. Its support for many package managers, Package URLs, OSV, ecosyste.ms, and SBOM formats makes it a package-nerd tool for answering provenance and maintenance questions across language ecosystems from inside ordinary Git workflows.

### 时间线

- 2026: Original Ruby repository tagged v0.1.0.
- 2026: Go rewrite repository began under github.com/git-pkgs/git-pkgs.
- 2026: v0.9.0 tag published for the Go implementation.
- 2026: v0.17.0 tag published after additions around package-management and supply-chain workflows.

### Related projects

- The original Ruby repository is github.com/andrew/git-pkgs.
- git-pkgs/actions provides reusable GitHub Actions for CI use.
- ecosyste.ms and OSV provide registry and vulnerability data used by enrichment commands.

### 来源

- <https://git-pkgs.dev>
- <https://github.com/andrew/git-pkgs>
- <https://github.com/git-pkgs/actions>
- <https://github.com/git-pkgs/git-pkgs>


## 安全说明

没有找到 git-pkgs 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Nix - git-pkgs: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/git-pkgs/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/git-pkgs: normalized package name match | Scoop official bucket manifest trees: bucket/git-pkgs.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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