# 安装 protobuf

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

## 安装

```sh
sudo av install brew:protobuf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install protobuf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install protobuf
```

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

### Linux

- apk (92%):

```sh
sudo apk add protobuf
```

  证据: Alpine Linux edge package indexes: protobuf from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install protobuf
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#protobuf
```

  证据: nixpkgs package indexes: protobuf from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S protobuf
```

  证据: Arch Linux sync databases: protobuf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install extras/protobuf
```

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

- winget (92%):

```sh
winget install --id Google.Protobuf -e
```

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

- Chocolatey (92%):

```sh
choco install protoc
```

  证据: Chocolatey community package catalog: protoc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','powershellgac'

## 软件包事实

- **软件包键:** brew:protobuf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/protobuf>
- **版本:** 35.0
- **来源摘要:** Protocol buffers (Google's data interchange format)
- **主页:** <https://protobuf.dev/>
- **仓库:** <https://github.com/protocolbuffers/protobuf>
- **上游文档:** <https://protobuf.dev/>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/protocolbuffers/protobuf/releases/download/v35.0/protobuf-35.0.tar.gz>
- **更新:** 2026-05-21T21:54:12Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- protoc (cli)
- protoc-35.0.0 (cli)
- protoc-gen-upb (cli)
- protoc-gen-upb-35.0.0 (cli)
- protoc-gen-upb_minitable (cli)
- protoc-gen-upb_minitable-35.0.0 (cli)
- protoc-gen-upbdefs (cli)
- protoc-gen-upbdefs-35.0.0 (cli)
- protoc (别名)
- protoc-35.0.0 (别名)
- protoc-gen-upb (别名)
- protoc-gen-upb-35.0.0 (别名)
- protoc-gen-upb_minitable (别名)
- protoc-gen-upb_minitable-35.0.0 (别名)
- protoc-gen-upbdefs (别名)
- protoc-gen-upbdefs-35.0.0 (别名)

## 依赖

- abseil

## 构建依赖

- cmake
- googletest

## 安装行为

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

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 35.0
- 管理器更新时间: 2026-05-21
- 本地数据: ok
- 上游仓库: https://github.com/protocolbuffers/protobuf
- info: No cached GitHub release or tag data was available.

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** green / low
- narrow executable package without higher-risk signals

## 相关链接

- [abseil](https://www.automicvault.com/pkg/brew/abseil/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [googletest](https://www.automicvault.com/pkg/brew/googletest/) - Build dependency declared by Homebrew.
- [mysql](https://www.automicvault.com/pkg/brew/mysql/) - Popular package that depends on this formula.
- [grpc](https://www.automicvault.com/pkg/brew/grpc/) - Popular package that depends on this formula.
- [apache-arrow](https://www.automicvault.com/pkg/brew/apache-arrow/) - Popular package that depends on this formula.
- [onnx](https://www.automicvault.com/pkg/brew/onnx/) - Popular package that depends on this formula.
- [openvino](https://www.automicvault.com/pkg/brew/openvino/) - Popular package that depends on this formula.
- [opencv](https://www.automicvault.com/pkg/brew/opencv/) - Popular package that depends on this formula.
- [mysql@8.0](https://www.automicvault.com/pkg/brew/mysql-8-0/) - Popular package that depends on this formula.
- [pytorch](https://www.automicvault.com/pkg/brew/pytorch/) - Popular package that depends on this formula.
- [protobuf@29](https://www.automicvault.com/pkg/brew/protobuf-29/) - Package name indicates the same formula family.
- [protobuf@33](https://www.automicvault.com/pkg/brew/protobuf-33/) - Package name indicates the same formula family.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
