# 使用 Homebrew, Nix, zypper 安装 bao

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

## 安装

```sh
sudo av install brew:bao
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bao
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bao
```

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

- zypper (92%):

```sh
sudo zypper install openbao
```

  证据: openSUSE Tumbleweed package metadata: openbao from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:bao
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bao>
- **版本:** 0.13.1
- **来源摘要:** Implementation of BLAKE3 verified streaming
- **主页:** <https://github.com/oconnor663/bao>
- **仓库:** <https://github.com/oconnor663/bao>
- **上游文档:** <https://github.com/oconnor663/bao#readme>
- **许可证:** Apache-2.0 OR CC0-1.0
- **源码归档:** <https://github.com/oconnor663/bao/archive/refs/tags/0.13.1.tar.gz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- bao (cli)
- bao (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 0.13.1
- 本地数据: OK
- 上游仓库: https://github.com/oconnor663/bao
- 检测到的最新版本: 0.13.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Bao is a Rust implementation of BLAKE3 verified streaming. It provides both a library crate and the bao command-line utility for encoding, decoding, hashing, and verifying byte streams with tree-hash-based random access.

### 项目历史

The official Git history begins in November 2016 with preliminary verified-streaming work, and the 0.1.0 tag followed in October 2017. The README explains that Bao's original motivation was secure streaming of large attachments where a recipient knows a root hash but does not want to download the whole file before verification.

The current spec documents an important historical shift: earlier Bao versions used BLAKE2 in a custom tree hashing mode, then the BLAKE3 project evolved out of that tree mode. After BLAKE3 was published separately, Bao was rebased and narrowed to focus on verified streaming.

### 采用历史

Bao is niche compared with general-purpose checksum tools, but it is packaged where Rust cryptography and content-addressed tooling users might need it. The supplied package facts list Homebrew and Nix packaging, and the README points Rust users to the bao_bin crate on crates.io for the CLI.

### 使用方式

The README demonstrates bao encode, bao hash, bao decode, slice extraction, decode-slice, and outboard mode. The main workflow is to store or transmit encoded data plus a known BLAKE3 hash, then verify bytes as they are streamed or randomly sliced.

The project cautions that Bao is beta cryptography software and has not been formally audited, an important usage note for security-sensitive deployments.

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

Bao matters to package nerds less as a mass-market CLI and more as an artifact of the BLAKE3 ecosystem. It shows how tree hashes can support verified partial reads, outboard metadata, and streaming-friendly integrity checks.

It is also notable packaging-wise because the command is provided by the bao_bin Rust crate while the repository also contains the bao library crate, so package definitions need to select the binary crate behavior rather than assuming a single-crate CLI.

### 时间线

- 2016: Public Git history begins with preliminary verified-streaming work.
- 2017: 0.1.0 is tagged after Cargo metadata is added.
- 2018: Early 0.x tags iterate on the Rust crate and encoding format.
- 2020s: Bao is rebased around BLAKE3 after earlier versions used BLAKE2 in a custom tree mode.
- 2025: 0.13.1 is tagged as a recent maintenance release.

### Related projects

- Bao is directly related to BLAKE3, the BLAKE3 specification, b3sum-style hashing, Rust crates.io packaging, and content-addressed storage or secure streaming systems that need partial verification.

### 来源

- <https://github.com/oconnor663/bao>
- <https://github.com/oconnor663/bao/blob/master/README.md>
- <https://github.com/oconnor663/bao/blob/master/docs/spec.md>
- <https://github.com/oconnor663/bao/commit/0d41eb137a6d1bb496e7546a12515051c9c0a140>
- input.source_facts.package-manager


## 安全说明

没有找到 bao 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bao
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** openbao
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Nix - bao: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bao/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - openbao - 2.5.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: openbao from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Manage, store, and distribute sensitive data | https://github.com/openbao/openbao


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://www.automicvault.com/zh-hans/pkg/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [nettle](https://www.automicvault.com/zh-hans/pkg/brew/nettle/) - Shares av.db curated category or tags: cli, cryptography, hashing, security.
- [sha1dc](https://www.automicvault.com/zh-hans/pkg/brew/sha1dc/) - Shares av.db curated category or tags: cli, cryptography, hashing, security.
- [sha3sum](https://www.automicvault.com/zh-hans/pkg/brew/sha3sum/) - Shares av.db curated category or tags: cli, cryptography, hashing, security.
- [argon2](https://www.automicvault.com/zh-hans/pkg/brew/argon2/) - Shares av.db curated category or tags: cli, cryptography, security.
- [aws-lc](https://www.automicvault.com/zh-hans/pkg/brew/aws-lc/) - Shares av.db curated category or tags: cli, cryptography, security.
- [b3sum](https://www.automicvault.com/zh-hans/pkg/brew/b3sum/) - Shares av.db curated category or tags: blake3, cli, cryptography, hashing, security.
- [botan](https://www.automicvault.com/zh-hans/pkg/brew/botan/) - Shares av.db curated category or tags: cli, cryptography, security.
- [ccrypt](https://www.automicvault.com/zh-hans/pkg/brew/ccrypt/) - Shares av.db curated category or tags: cli, cryptography, security.

## Combined YAML source

View the package source record on GitHub. [combined/bao.yml](https://github.com/automic-vault/db/blob/main/combined/bao.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
