# 使用 Homebrew, apt, dnf, MacPorts, pacman, zypper 安装 botan

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

## 安装

```sh
sudo av install brew:botan
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install botan
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install botan
```

  证据: MacPorts ports tree: security/botan/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install botan
```

  证据: Debian stable package indexes: botan from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install botan
```

  证据: Fedora Rawhide package metadata: botan from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S botan
```

  证据: Arch Linux sync databases: botan from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install Botan
```

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

## 软件包事实

- **软件包键:** brew:botan
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/botan>
- **版本:** 3.12.0
- **来源摘要:** Cryptographic algorithms and formats library in C++
- **主页:** <https://botan.randombit.net/>
- **仓库:** <https://github.com/randombit/botan>
- **上游文档:** <https://botan.randombit.net/>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://botan.randombit.net/releases/Botan-3.12.0.tar.xz>
- **最后更新:** 2026-06-22T14:02:54-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- botan (cli)
- botan (别名)

## 依赖

- ca-certificates
- python@3.14
- sqlite

## 构建依赖

- pkgconf

## macOS 提供的库

- bzip2

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.12.0
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://botan.randombit.net/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Botan is a permissively licensed C++ cryptography toolkit with a library-first identity and a substantial command-line companion. In package-manager culture it occupies the same broad territory as OpenSSL, libsodium, and Crypto++, but with a C++ API, modular build controls, Python/C FFI surfaces, and an intentionally broad algorithm catalog.

### 项目历史

The current public development home is the randombit/botan GitHub repository, created in March 2013, while the official documentation describes Botan as a C++ cryptography library focused on production cryptography. Its handbook frames the project around secure distributed systems, constant-time programming, test coverage, side-channel analysis, safe defaults, portability to modern systems, and post-quantum readiness.

Botan 3 became the active release line, with the upstream README documenting quarterly Botan3 minor releases. Botan2 reached end of life on 2025-01-01, with the final Botan2 release listed as 2.19.5 from 2024-07-08.

### 采用历史

Botan is distributed by major Unix-like package systems, including Homebrew, Debian-family distributions, Fedora, Arch, MacPorts, and openSUSE according to the package facts and the upstream README's distribution note. Its adoption is less about a single dominant CLI and more about being a reusable cryptographic substrate for C++ applications that want TLS, X.509, PKCS#11, TPM, password hashing, and newer post-quantum primitives without binding themselves to OpenSSL APIs.

The project also exposes C, Python, and third-party language bindings, which makes it useful to packagers who want one audited native cryptography implementation to serve multiple language ecosystems.

### 使用方式

The installed `botan` executable exposes many library functions in shell form: hashing, HMAC, password hashing, symmetric encryption, public-key operations, certificate handling, TLS-related tooling, and other cryptographic utilities. The library side is used by applications that need a C++ cryptography API with configurable modules and platform certificate-store support.

For package users, Botan is commonly installed as a development dependency as well as a CLI utility; its package significance comes from headers, libraries, ABI concerns, and feature selection as much as from the command-line binary.

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

Botan is a classic package-nerd library: it is security-sensitive, ABI-sensitive, heavily tested, and exposed through many downstream packages. Its release notes read like infrastructure maintenance, with CVEs, certificate-path behavior, compiler support, optimized CPU code paths, TLS conformance, and algorithm additions all mattering to downstream maintainers.

It is also notable as a modern C++ crypto stack that deliberately includes post-quantum algorithms and side-channel testing in its project goals, making it a useful barometer for where general-purpose cryptography libraries are moving.

### 时间线

- 2013: Public GitHub repository created for randombit/botan.
- 2024: Botan 2.19.5 released as the final Botan2 series release.
- 2025: Botan2 reached end of life on January 1.
- 2026: Botan 3.12.0 released with TLS, X.509, performance, and security fixes.

### Related projects

- OpenSSL is the most common comparison point for everyday command-line crypto and TLS tooling.
- Crypto++ is a related C++ cryptography library in the same packaging space.
- libsodium is a related security library with a narrower, opinionated API surface.

### 来源

- <https://api.github.com/repos/randombit/botan>
- <https://botan.randombit.net/handbook/cli.html>
- <https://botan.randombit.net/handbook/goals.html>
- <https://botan.randombit.net/news.html>
- <https://github.com/randombit/botan>


## 安全说明

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


## 源数据库详情

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

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

- Debian apt - botan - 3.7.1+dfsg-2: normalized package name match | Debian stable package indexes: botan from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | multiplatform crypto library (3.x version) | https://botan.randombit.net/
- Debian apt - libbotan-2-19 - 2.19.5+dfsg-4: normalized package name match | Debian stable package indexes: libbotan-2-19 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | multiplatform crypto library (2.x version) | https://botan.randombit.net/
- Debian apt - libbotan-2-dev - 2.19.5+dfsg-4: normalized package name match | Debian stable package indexes: libbotan-2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | multiplatform crypto library (2.x version) | https://botan.randombit.net/
- Debian apt - libbotan-2-doc - 2.19.5+dfsg-4: normalized package name match | Debian stable package indexes: libbotan-2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | multiplatform crypto library (2.x version) | https://botan.randombit.net/
- Ubuntu apt - botan - 2.19.3+dfsg-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: botan from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | multiplatform crypto library (2.x version) | https://botan.randombit.net/
- Ubuntu apt - libbotan-2-19 - 2.19.3+dfsg-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libbotan-2-19 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | multiplatform crypto library (2.x version) | https://botan.randombit.net/
- Ubuntu apt - libbotan-2-dev - 2.19.3+dfsg-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libbotan-2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | multiplatform crypto library (2.x version) | https://botan.randombit.net/
- Ubuntu apt - libbotan-2-doc - 2.19.3+dfsg-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: libbotan-2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | multiplatform crypto library (2.x version) | https://botan.randombit.net/
- Ubuntu apt - python3-botan - 2.19.3+dfsg-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-botan from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | multiplatform crypto library (2.x version), Python3 module | https://botan.randombit.net/
- dnf - botan - 1.10.17-56.fc45: normalized package name match | Fedora Rawhide package metadata: botan from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Crypto library written in C++ | http://botan.randombit.net/
- dnf - botan-devel - 1.10.17-56.fc45: normalized package name match | Fedora Rawhide package metadata: botan-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for botan | http://botan.randombit.net/
- dnf - botan-doc - 1.10.17-56.fc45: normalized package name match | Fedora Rawhide package metadata: botan-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation for botan | http://botan.randombit.net/
- dnf - python3-botan - 1.10.17-56.fc45: normalized package name match | Fedora Rawhide package metadata: python3-botan from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Python3 bindings for botan | http://botan.randombit.net/
- pacman - botan - 3.12.0-1: normalized package name match | Arch Linux sync databases: botan from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Crypto library written in C++ | https://botan.randombit.net/
- zypper - Botan - 3.11.1-1.4: normalized package name match | openSUSE Tumbleweed package metadata: Botan from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A C++ Crypto Library | https://botan.randombit.net
- zypper - Botan-doc - 3.11.1-1.4: normalized package name match | openSUSE Tumbleweed package metadata: Botan-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation of Botan | https://botan.randombit.net


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [qca](https://pkg.so/zh-hans/brew/qca/) - Popular package that depends on this formula.
- [rnp](https://pkg.so/zh-hans/brew/rnp/) - Popular package that depends on this formula.
- [nss](https://pkg.so/zh-hans/brew/nss/) - Shares pkgdb curated category or tags: cli, cryptography, security, tls.
- [mbedtls](https://pkg.so/zh-hans/brew/mbedtls/) - Shares pkgdb curated category or tags: cli, cryptography, security, tls, x509.
- [opensc](https://pkg.so/zh-hans/brew/opensc/) - Shares pkgdb curated category or tags: cli, cryptography, library, security.
- [aws-lc](https://pkg.so/zh-hans/brew/aws-lc/) - Shares pkgdb curated category or tags: cli, cryptography, library, security, tls.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, cryptography, library, security, tls.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: cli, cryptography, security.
- [libxmlsec1](https://pkg.so/zh-hans/brew/libxmlsec1/) - Shares pkgdb curated category or tags: cli, cryptography, library, security.
- [libressl](https://pkg.so/zh-hans/brew/libressl/) - Security-sensitive metadata or terminology overlaps. Shared terms: ca-certificates, certificates, cli, cryptography, security.
- [showcert](https://pkg.so/zh-hans/brew/showcert/) - Both packages touch the same language runtime or ecosystem. Shared terms: certificates, cli, cryptography, python, python-3-14.

## Combined YAML source

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