Automic VaultAutomic Vault

brew

使用 Homebrew, apt, dnf, Nix, zypper 安装 nanopb

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nanopb

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install nanopb

Debian stable package indexes · nanopb · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install nanopb

Fedora Rawhide package metadata · nanopb · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#nanopb

nixpkgs package indexes · pkgs/by-name/na/nanopb/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install libprotobuf-nanopb0

openSUSE Tumbleweed package metadata · libprotobuf-nanopb0 · 来源: download.opensuse.org

概览

软件包摘要

C library for encoding and decoding Protocol Buffer messages

命令和别名

  • nanopb_generator
  • nanopb_generator.py
  • protoc-gen-nanopb

历史

项目历史与用法

nanopb is a small-code-size Protocol Buffers implementation in ANSI C, aimed at microcontrollers and other memory-constrained systems. Its official site describes targets with tight memory budgets under 10 kB ROM and under 1 kB RAM.

项目历史

The upstream license text credits Petteri Aimonen and dates the project to 2011. The GitHub repository used for development was created on 2015-04-29, and the official site points development and bug reporting to GitHub while keeping the documentation and release downloads on jpa.kapsi.fi.

The core design is deliberately embedded-first: pure C runtime, generated `.pb.c` and `.pb.h` files from `.proto` definitions, static sizing through `.options` files, no required malloc, split encoder/decoder files so projects can compile only the pieces they need, and callback streams for messages larger than available RAM.

采用历史

GitHub API data fetched on 2026-07-01 showed 5,454 stars and 1,027 forks, strong adoption for a niche embedded serialization library. The repository also includes Zephyr-related integration files, examples, tests, Bazel/CMake/Meson/Swift package metadata, and generator tooling, reflecting use across several embedded build systems.

Homebrew's formula JSON generated on 2026-07-01 reported stable version 0.4.9.1, an old formula name of `nanopb-generator`, 1,082 installs over 365 days, and 740 installs-on-request over 365 days. That pattern fits a toolchain component: many installs are explicit because developers need the generator and protoc integration for firmware or cross-platform protocol work.

使用方式

A typical user writes Protocol Buffer schemas in `.proto` files, runs `nanopb_generator.py` or `protoc-gen-nanopb` to produce C headers and sources, then compiles `pb_common.c`, `pb_encode.c`, and/or `pb_decode.c` into firmware. `.options` files set maximum field sizes so generated structs can stay static.

Package nerds use the Homebrew package mostly for the host-side generator, not because macOS is the target runtime. The generated C is then carried into firmware, RTOS, or embedded Linux builds where normal Google protobuf runtimes would be too large or too allocation-heavy.

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

nanopb is one of the standard answers when someone wants Protocol Buffers on a microcontroller without dragging in a large runtime. It keeps protobuf's schema compatibility story while making the code size, allocation behavior, and generated C output legible to embedded build systems.

时间线

  • 2011: upstream license text credits the original nanopb copyright to Petteri Aimonen.
  • 2015-04-29: nanopb/nanopb repository created on GitHub.
  • 2025-08-14: Nanopb 0.4.9.1 release published.
  • 2026-07-01: Homebrew formula JSON listed stable version 0.4.9.1 and 1,082 installs over 365 days.

Related projects

  • Google Protocol Buffers
  • Zephyr RTOS
  • grpcio-tools
  • protoc

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
<proto basename>.options next to the .proto file

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nanopb_generatorcli全局可执行文件
nanopb_generator.pycli全局可执行文件
protoc-gen-nanopbcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本0.4.9.1
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://jpa.kapsi.fi/nanopb/docs/index.html

安装元数据

软件包元数据

软件包键brew:nanopb
版本0.4.9.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nanopb
主页https://jpa.kapsi.fi/nanopb/docs/index.html
仓库https://github.com/nanopb/nanopb
上游文档https://github.com/nanopb/nanopb#readme
许可证Zlib
源码归档https://jpa.kapsi.fi/nanopb/download/nanopb-0.4.9.1.tar.gz
依赖protobuf, python@3.14
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenanopb
Version Scheme0
Revision6
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

libnanopb-dev 0.4.9.1-1

Protocol Buffers with small code size, development files

https://jpa.kapsi.fi/nanopb/

sudo apt install libnanopb-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: nanopb
  • normalized package name match
  • 匹配方式:Nanopb
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libnanopb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nanopb 0.4.9.1-1

Protocol Buffers with small code size

https://jpa.kapsi.fi/nanopb/

sudo apt install nanopb
  • Section: devel
  • Architecture: all
  • 4 依赖
  • normalized package name match
  • 匹配方式:Nanopb
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nanopb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nanopb

nix profile install nixpkgs#nanopb
  • normalized package name match
  • 匹配方式:Nanopb
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/na/nanopb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libnanopb-dev 0.4.8-1

Protocol Buffers with small code size, development files

https://jpa.kapsi.fi/nanopb/

sudo apt install libnanopb-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: nanopb
  • normalized package name match
  • 匹配方式:Nanopb
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libnanopb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

nanopb 0.4.8-1

Protocol Buffers with small code size

https://jpa.kapsi.fi/nanopb/

sudo apt install nanopb
  • Section: universe/devel
  • Architecture: all
  • 4 依赖
  • normalized package name match
  • 匹配方式:Nanopb
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nanopb from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

nanopb 0.4.9.1-3.fc45

A small code-size Protocol Buffers implementation in ansi C

https://jpa.kapsi.fi/nanopb/

sudo dnf install nanopb
  • License: Zlib
  • Category: Unspecified
  • Architecture: i686
  • Source Package: nanopb
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nanopb
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nanopb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

nanopb-devel 0.4.9.1-3.fc45

Development files for nanopb

https://jpa.kapsi.fi/nanopb/

sudo dnf install nanopb-devel
  • License: Zlib
  • Category: Unspecified
  • Architecture: i686
  • Source Package: nanopb
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nanopb
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nanopb-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

nanopb-python3 0.4.9.1-3.fc45

Small code-size Protocol Buffers implementation in Python

https://jpa.kapsi.fi/nanopb/

sudo dnf install nanopb-python3
  • License: Zlib
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: nanopb
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Nanopb
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nanopb-python3 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

libprotobuf-nanopb0 0.4.9.1-1.6

Shared library for nanopb

https://jpa.kapsi.fi/nanopb/

sudo zypper install libprotobuf-nanopb0
  • License: Zlib
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: nanopb
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nanopb
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libprotobuf-nanopb0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

nanopb-devel 0.4.9.1-1.6

Development files for nanopb

https://jpa.kapsi.fi/nanopb/

sudo zypper install nanopb-devel
  • License: Zlib
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: nanopb
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nanopb
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: nanopb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

nanopb-source 0.4.9.1-1.6

Source code of nanopb

https://jpa.kapsi.fi/nanopb/

sudo zypper install nanopb-source
  • License: Zlib
  • Category: Development/Libraries/C and C++
  • Architecture: noarch
  • Source Package: nanopb
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nanopb
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: nanopb-source from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment