# 使用 Homebrew, Nix 安装 avro-cpp

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

## 安装

```sh
sudo av install brew:avro-cpp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install avro-cpp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#avro-cpp
```

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

## 软件包事实

- **软件包键:** brew:avro-cpp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/avro-cpp>
- **版本:** 1.12.1
- **来源摘要:** Data serialization system
- **主页:** <https://avro.apache.org/>
- **上游文档:** <https://avro.apache.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://www.apache.org/dyn/closer.lua?path=avro/avro-1.12.1/cpp/avro-cpp-1.12.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- avrogencpp (cli)
- avrogencpp (别名)

## 依赖

- boost
- zstd

## 构建依赖

- cmake
- fmt
- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.12.1
- 本地数据: OK
- 上游仓库: https://avro.apache.org/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Avro C++ is Apache Avro's C++ binding and code-generation package. In Homebrew it is the small native companion to the broader Avro project, centered on the avrogencpp executable and C++ API documentation.

### 项目历史

Apache Avro reached its first official release as Avro 1.0.0 in July 2010. Its design centered on a shared schema specification, binary encoding, object container files, and language bindings so data could move between systems without each implementation inventing its own wire format.

The C++ binding follows that multi-language model inside the main Apache Avro repository. It lets C++ programs use Avro records and schemas directly, while avrogencpp gives statically typed C++ projects generated code from Avro schemas.

### 采用历史

Avro adoption grew around data pipelines that need compact records and schema evolution. Apache's own site now positions Avro as a leading record serialization format and emphasizes streaming data pipelines, which explains why package managers keep separate language/runtime formulas.

The C++ package is most relevant where native services want Avro compatibility without a JVM runtime. It is less famous than avro-tools, but it matters in packaging because generated headers, libraries, and ABI concerns are different from shipping a Java jar.

### 使用方式

Typical usage is schema-first: write or receive an Avro schema, generate C++ types with avrogencpp when useful, then serialize or deserialize records through the C++ library. For dynamic or inspection workflows, users often pair it with the separate Java or C command-line tools.

Avro C++ does not have a documented global config file or credential file. Schemas, generated code, and application-level settings are the practical configuration surface.

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

avro-cpp is a good example of why one upstream project can produce several formulas. The source tree and release cadence are shared with Apache Avro, but the build products are native C++ libraries and a generator binary, so downstream packagers treat it differently from avro-c and avro-tools.

It is also a useful litmus test for multi-language serialization projects: if the C++ binding builds cleanly and tracks the shared specification, the format is more credible outside JVM-centered data stacks.

### 时间线

- 2010: Apache Avro 1.0.0 announced as the first Avro release.
- 2021: Avro 1.11.0 released with a large set of project fixes and features.
- 2024: Avro 1.12.0 released by the Apache Avro community.
- 2025: Avro 1.12.1 listed as the latest Apache Avro release.

### Related projects

- avro-c provides the neighboring native C implementation and file utilities.
- avro-tools provides Java command-line utilities for schema and data-file work.
- Other Apache Avro bindings include JVM languages, Python, C#, PHP, Ruby, Rust, JavaScript, and Perl.

### 来源

- <https://avro.apache.org/>
- <https://avro.apache.org/blog/2010/07/15/avro-1.0.0/>
- <https://avro.apache.org/blog/releases/>
- <https://avro.apache.org/docs/>
- <https://avro.apache.org/docs/1.12.0/api/cpp/html/>
- <https://github.com/apache/avro>
- source_facts.executables


## 安全说明

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:** avro-cpp
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - avro-cpp: normalized package name match | nixpkgs package indexes: pkgs/by-name/av/avro-cpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [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.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [avro-c](https://pkg.so/zh-hans/brew/avro-c/) - Shares the same upstream homepage.
- [avro-tools](https://pkg.so/zh-hans/brew/avro-tools/) - Shares the same upstream homepage.
- [protobuf](https://pkg.so/zh-hans/brew/protobuf/) - Shares pkgdb curated category or tags: cli, data, serialization.
- [lcm](https://pkg.so/zh-hans/brew/lcm/) - Shares pkgdb curated category or tags: cli, data, serialization.
- [colfer](https://pkg.so/zh-hans/brew/colfer/) - Shares pkgdb curated category or tags: cli, data, serialization.
- [apache-arrow](https://pkg.so/zh-hans/brew/apache-arrow/) - Shares pkgdb curated category or tags: apache, cli, data.
- [apache-spark](https://pkg.so/zh-hans/brew/apache-spark/) - Shares pkgdb curated category or tags: apache, cli, data.
- [zookeeper](https://pkg.so/zh-hans/brew/zookeeper/) - Shares pkgdb curated category or tags: apache, cli, data.

## Combined YAML source

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


## 来源

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