# 使用 Homebrew, Nix, scoop 安装 avro-tools

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install avro-tools
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

### Windows

- Scoop (92%):

```sh
scoop install main/avro-tools
```

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

## 软件包事实

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

## 可执行文件

- avro-tools (cli)
- avro-tools (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 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 Tools is the Java command-line utility package for Apache Avro. It is the package users reach for when they want to inspect schemas, convert data, generate code, or manipulate Avro object container files from a terminal.

### 项目历史

Apache Avro's 1.0.0 release was announced in July 2010. The project defined a compact binary data format, a JSON-based schema system, object container files, and RPC support, then shipped language implementations from a single Apache-managed source tree.

The tools package grew naturally out of Avro's Java implementation: once a format has schemas, container files, IDL, and generated code, it needs a portable command-line utility. The Homebrew avro-tools formula packages that Java-oriented CLI separately from native C and C++ formulas.

### 采用历史

Avro's adoption is tied to data-platform workflows where schema evolution and compact record serialization matter. Apache's project site now explicitly calls Avro a leading serialization format for record data and a first choice for streaming data pipelines.

The avro-tools jar became the everyday operator interface for that ecosystem. Even users who do not write Java often keep avro-tools around because it can inspect and transform Avro files without having to compile a language binding into a one-off program.

### 使用方式

Common avro-tools usage includes printing or validating schemas, converting between JSON and Avro container files, compiling schemas or IDL to generated language code, and debugging records in data pipelines. Package managers usually expose this as an avro-tools command wrapping the upstream jar.

Avro Tools has no documented per-user config file or credential file. Inputs are schemas, Avro files, IDL/protocol files, and command-line options.

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

For package nerds, avro-tools is the canonical example of a data-format CLI shipped as a Java artifact but consumed like a Unix tool. The formula is less about libraries and more about making a jar feel like a normal executable in scripts.

It also anchors the split packaging story for Avro: avro-tools for the Java CLI, avro-c for native C utilities, and avro-cpp for generated C++ bindings, all backed by one upstream release stream.

### 时间线

- 2010: Apache Avro 1.0.0 announced as the first Avro release.
- 2021: Avro 1.11.0 released with 120 JIRA issues addressed.
- 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 and avro-cpp package native parts of the same Apache Avro source tree.
- Apache Avro language bindings and the Avro specification define the data files that avro-tools reads and writes.
- Data platforms that store or stream Avro records often use avro-tools for local inspection and pipeline debugging.

### 来源

- <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/java/org/apache/avro/tool/package-summary.html>
- <https://github.com/apache/avro>
- source_facts.description
- 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-tools
- **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-tools: normalized package name match | nixpkgs package indexes: pkgs/by-name/av/avro-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/avro-tools: normalized package name match | Scoop official bucket manifest trees: bucket/avro-tools.json from https://api.github.com/repos/ScoopInstaller/Main/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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [avro-c](https://pkg.so/zh-hans/brew/avro-c/) - Shares the same upstream homepage.
- [avro-cpp](https://pkg.so/zh-hans/brew/avro-cpp/) - 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.
- [cubejs-cli](https://pkg.so/zh-hans/brew/cubejs-cli/) - Shares pkgdb curated category or tags: cli, data.
- [apache-arrow](https://pkg.so/zh-hans/brew/apache-arrow/) - Shares pkgdb curated category or tags: apache, cli, data.
- [kafka](https://pkg.so/zh-hans/brew/kafka/) - Shares pkgdb curated category or tags: cli, data, java.
- [parquet-cli](https://pkg.so/zh-hans/brew/parquet-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: apache, cli, command-line, data, java.

## Combined YAML source

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