# 使用 Homebrew, apk, Nix 安装 protoc-gen-doc

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

## 安装

```sh
sudo av install brew:protoc-gen-doc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install protoc-gen-doc
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add protoc-gen-doc
```

  证据: Alpine Linux edge package indexes: protoc-gen-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#protoc-gen-doc
```

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

## 软件包事实

- **软件包键:** brew:protoc-gen-doc
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/protoc-gen-doc>
- **版本:** 1.5.1
- **来源摘要:** Documentation generator plugin for Google Protocol Buffers
- **主页:** <https://github.com/pseudomuto/protoc-gen-doc>
- **仓库:** <https://github.com/pseudomuto/protoc-gen-doc>
- **许可证:** MIT
- **源码归档:** <https://github.com/pseudomuto/protoc-gen-doc/archive/refs/tags/v1.5.1.tar.gz>
- **最后更新:** 2026-07-29T22:58:18+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- protoc-gen-doc (cli)
- protoc-gen-doc (别名)

## 依赖

- protobuf

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.5.1
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/pseudomuto/protoc-gen-doc
- 检测到的最新版本: v1.5.1 (当前)

## 安全说明

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:** protoc-gen-doc
- **Version Scheme:** 0
- **Revision:** 1
- **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 - protoc-gen-doc: normalized package name match | nixpkgs package indexes: pkgs/by-name/pr/protoc-gen-doc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - protoc-gen-doc - 1.5.1-r6: normalized package name match | Alpine Linux edge package indexes: protoc-gen-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | protoc plugin to generate documentation from comments in .proto files | https://github.com/pseudomuto/protoc-gen-doc
- apk - protoc-gen-doc-doc - 1.5.1-r6: normalized package name match | Alpine Linux edge package indexes: protoc-gen-doc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | protoc plugin to generate documentation from comments in .proto files (documentation) | https://github.com/pseudomuto/protoc-gen-doc


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control 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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [protobuf](https://pkg.so/zh-hans/brew/protobuf/) - Runtime dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [protoc-gen-go-grpc](https://pkg.so/zh-hans/brew/protoc-gen-go-grpc/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf, protoc-plugin.
- [buffa](https://pkg.so/zh-hans/brew/buffa/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf.
- [sourcery](https://pkg.so/zh-hans/brew/sourcery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [swift-protobuf](https://pkg.so/zh-hans/brew/swift-protobuf/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf.
- [mockolo](https://pkg.so/zh-hans/brew/mockolo/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [openapi-generator](https://pkg.so/zh-hans/brew/openapi-generator/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [protoc-gen-go](https://pkg.so/zh-hans/brew/protoc-gen-go/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools, protobuf, protoc-plugin.
- [mockery](https://pkg.so/zh-hans/brew/mockery/) - Shares pkgdb curated category or tags: cli, code-generation, developer-tools.
- [protoc-gen-js](https://pkg.so/zh-hans/brew/protoc-gen-js/) - Package names and metadata indicate a similar tool family. Shared terms: buffers, cli, code, code-generation, developer.
- [protoc-gen-grpc-swift](https://pkg.so/zh-hans/brew/protoc-gen-grpc-swift/) - Package names and metadata indicate a similar tool family. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

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