macOS
brew install protobuf-clocal Homebrew formula metadata
sudo port install protobuf-cMacPorts ports tree · devel/protobuf-c/Portfile · 来源: api.github.com
安装
brew install protobuf-clocal Homebrew formula metadata
sudo port install protobuf-cMacPorts ports tree · devel/protobuf-c/Portfile · 来源: api.github.com
sudo apk add protobuf-cAlpine Linux edge package indexes · protobuf-c · 来源: dl-cdn.alpinelinux.org
sudo dnf install protobuf-cFedora Rawhide package metadata · protobuf-c · 来源: dl.fedoraproject.org
sudo pacman -S protobuf-cArch Linux sync databases · protobuf-c · 来源: geo.mirror.pkgbuild.com
sudo apt install libprotobuf-c-devDebian stable package indexes · libprotobuf-c-dev · 来源: deb.debian.org
sudo zypper install libprotobuf-c1openSUSE Tumbleweed package metadata · libprotobuf-c1 · 来源: download.opensuse.org
概览
Protocol buffers library
历史
protobuf-c is a C implementation of Protocol Buffers comprising a serialization runtime library and a `protoc` code-generation plugin.
Dave Benson originally wrote protobuf-c as a C implementation of Google's Protocol Buffers and maintained it through version 0.15. Maintenance later passed to a new team.
The project includes `libprotobuf-c` for encoding and decoding and `protoc-gen-c`, formerly commonly invoked as `protoc-c`, for generating C descriptors and bindings from `.proto` definitions. Its former RPC implementation was separated into the protobuf-c-rpc project.
Beginning with version 1.0.0, protobuf-c adopted Semantic Versioning and generated headers gained version guards to detect incompatible compiler and runtime combinations.
protobuf-c is widely distributed as both a development library and command-line code generator. The supplied package facts record packages across Homebrew, Alpine, Debian, Ubuntu, Fedora, Arch Linux, openSUSE, and MacPorts.
The project survived a maintainer transition after Dave Benson maintained it through version 0.15. A new team continued development, standardized semantic versioning at 1.0.0, and maintained compatibility with successive releases of Google's protobuf compiler and runtime.
Write message schemas as `.proto` files and run the upstream `protoc` compiler with the protobuf-c plugin to generate `.pb-c.c` and `.pb-c.h` files.
Compile the generated C source into the application and link it with `libprotobuf-c`; the official README documents discovering compiler and linker flags with `pkg-config`.
The maintainers recommend regenerating bindings during the build rather than committing stale generated files, because generated headers and the installed runtime may become incompatible.
protobuf-c provides Protocol Buffers interoperability for programs that need a C ABI and runtime rather than the upstream C++ implementation. Its split between generated descriptor code and a packaged runtime library makes compiler/runtime version skew an important concern for distribution maintainers.
It is a classic systems-package dependency: distributions commonly separate runtime and development packages, while builds discover it through `pkg-config`. Package maintainers must coordinate the C library, `protoc-gen-c`, and the upstream protobuf compiler.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
protoc-c | cli | 全局可执行文件 | |
protoc-gen-c | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/protobuf-c/protobuf-c
安装元数据
| 软件包键 | brew:protobuf-c |
|---|---|
| 版本 | 1.5.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/protobuf-c |
| 主页 | https://github.com/protobuf-c/protobuf-c |
| 仓库 | https://github.com/protobuf-c/protobuf-c |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://github.com/protobuf-c/protobuf-c/releases/download/v1.5.2/protobuf-c-1.5.2.tar.gz |
| 最后更新 | 2026-09-10T10:43:12Z |
| Pulse | updated |
| 依赖 | abseil, protobuf |
| 构建依赖 | pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | protobuf-c |
| Version Scheme | 0 |
| Revision | 18 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libprotobuf-c-dev 1.5.1-1
Protocol Buffers C static library and headers (protobuf-c)
https://github.com/protobuf-c/protobuf-c
sudo apt install libprotobuf-c-devlibprotobuf-c1 1.5.1-1
Protocol Buffers C shared library (protobuf-c)
https://github.com/protobuf-c/protobuf-c
sudo apt install libprotobuf-c1protobuf-c-compiler 1.5.1-1
Protocol Buffers C compiler (protobuf-c)
https://github.com/protobuf-c/protobuf-c
sudo apt install protobuf-c-compilerlibprotobuf-c-dev 1.4.1-1ubuntu4
Protocol Buffers C static library and headers (protobuf-c)
https://github.com/protobuf-c/protobuf-c
sudo apt install libprotobuf-c-devlibprotobuf-c1 1.4.1-1ubuntu4
Protocol Buffers C shared library (protobuf-c)
https://github.com/protobuf-c/protobuf-c
sudo apt install libprotobuf-c1protobuf-c-compiler 1.4.1-1ubuntu4
Protocol Buffers C compiler (protobuf-c)
https://github.com/protobuf-c/protobuf-c
sudo apt install protobuf-c-compilerprotobuf-c 1.5.2-r3
Protocol Buffers implementation in C
https://github.com/protobuf-c/protobuf-c
sudo apk add protobuf-cprotobuf-c-compiler 1.5.2-r3
Protocol Buffers C compiler
https://github.com/protobuf-c/protobuf-c
sudo apk add protobuf-c-compilerprotobuf-c-dev 1.5.2-r3
Protocol Buffers implementation in C (development files)
https://github.com/protobuf-c/protobuf-c
sudo apk add protobuf-c-devprotobuf-c 1.5.2-5.fc45
C bindings for Google's Protocol Buffers
https://github.com/protobuf-c/protobuf-c
sudo dnf install protobuf-cprotobuf-c-compiler 1.5.2-5.fc45
Protocol Buffers C compiler
https://github.com/protobuf-c/protobuf-c
sudo dnf install protobuf-c-compilerprotobuf-c-devel 1.5.2-5.fc45
Protocol Buffers C headers and libraries
https://github.com/protobuf-c/protobuf-c
sudo dnf install protobuf-c-develprotobuf3-c 1.5.2-52.fc45
C bindings for Google's Protocol Buffers
https://github.com/protobuf-c/protobuf-c
sudo dnf install protobuf3-cprotobuf-c 1.5.2-14
Protocol Buffers implementation in C
https://github.com/protobuf-c/protobuf-c
sudo pacman -S protobuf-clibprotobuf-c1 1.5.2-2.6
C bindings for Google's Protocol Buffers
https://github.com/protobuf-c/protobuf-c
sudo zypper install libprotobuf-c1protobuf-c-devel 1.5.2-2.6
protobuf generator and headers
https://github.com/protobuf-c/protobuf-c
sudo zypper install protobuf-c-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.