# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 aha

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

## 安装

```sh
sudo av install brew:aha
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install aha
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install aha
```

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

### Linux

- apk (92%):

```sh
sudo apk add aha
```

  证据: Alpine Linux edge package indexes: aha from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install aha
```

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

- dnf (92%):

```sh
sudo dnf install aha
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#aha
```

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

- pacman (92%):

```sh
sudo pacman -S aha
```

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

- zypper (92%):

```sh
sudo zypper install aha
```

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

## 软件包事实

- **软件包键:** brew:aha
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/aha>
- **版本:** 0.5.1
- **来源摘要:** ANSI HTML adapter
- **主页:** <https://github.com/theZiz/aha>
- **仓库:** <https://github.com/theZiz/aha>
- **许可证:** LGPL-2.0-or-later OR MPL-1.1
- **源码归档:** <https://github.com/theZiz/aha/archive/refs/tags/0.5.1.tar.gz>
- **最后更新:** 2026-07-10T16:49:54-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- aha (cli)
- aha (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.5.1
- 管理器更新时间: 2026-07-10
- 本地数据: OK
- 上游仓库: https://github.com/theZiz/aha
- 检测到的最新版本: 0.5.1 (当前)
## 项目历史与用法

aha, the ANSI HTML Adapter, is a small C command-line utility for turning ANSI SGR-colored terminal output into HTML. Its niche is deliberately narrow: preserve colored command output from tools such as colordiff, ls, htop, and formatted man pages so it can be posted or archived as standards-compliant HTML.

### 项目历史

The public GitHub repository for aha began in May 2012 with an initial commit. The project has stayed close to the Unix filter model: read colored terminal text on standard input, emit HTML on standard output, and avoid runtime dependencies beyond a C compiler and make for source builds.

Version tags in the official repository show a long-lived but compact tool rather than a fast-moving framework. Notable repository tags include 0.5 in 2018 and 0.5.1 in 2020, with the README continuing to document source builds and simple shell-pipeline examples.

### 采用历史

aha's adoption is mostly package-manager adoption: the project README explicitly documents Homebrew and conda installation, and the supplied package facts list packages in Homebrew, Debian, Fedora, Arch, MacPorts, Nix, Alpine, Ubuntu, and openSUSE ecosystems.

That distribution profile matches the tool's role: it is useful in scripts, CI logs, bug reports, and documentation pipelines where terminal color needs to survive outside a terminal emulator.

### 使用方式

Typical usage pipes colored command output into aha and redirects the result to an HTML file. Official examples include converting aha's own help output, colordiff output, colored ls output, htop output with line-fix handling, and formatted man-page output.

For package users, the important operational detail is that aha is dependency-light and filter-shaped. It can be dropped into an existing shell pipeline without adopting a larger documentation or terminal-recording stack.

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

aha is the kind of package that appears small until it is missing from a packaging set: it fills the specific gap between ANSI-colored CLI output and static HTML artifacts. Its broad distro coverage makes it a handy compatibility target for scripts that need portable terminal-to-web conversion.

### 时间线

- 2012: Public GitHub repository created with an initial commit.
- 2018: Official repository tag 0.5 recorded.
- 2020: Official repository tag 0.5.1 recorded.
- 2026: Input package facts list aha across Homebrew, Debian, Fedora, Arch, MacPorts, Nix, Alpine, Ubuntu, and openSUSE.

### Related projects

- aha commonly sits beside terminal-color producers such as colordiff, ls --color, htop, and man/ul pipelines rather than replacing them.
- It overlaps in purpose with broader terminal capture or documentation tools, but stays focused on ANSI-to-HTML conversion.

### 来源

- <https://api.github.com/repos/theZiz/aha>
- <https://api.github.com/repos/theZiz/aha/commits?per_page=1&page=181>
- <https://api.github.com/repos/theZiz/aha/git/commits/41c2320eb31ef1c95fcd45a0feb0303f606fc711>
- <https://github.com/theZiz/aha#readme>
- source_facts.package-manager


## 安全说明

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:** aha
- **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 - aha - 0.5.1-3: normalized package name match | Debian stable package indexes: aha from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ANSI color to HTML converter | https://github.com/theZiz/aha
- Nix - aha: normalized package name match | nixpkgs package indexes: pkgs/by-name/ah/aha/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - aha - 0.5.1-3build1: normalized package name match | Ubuntu 24.04 LTS package indexes: aha from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ANSI color to HTML converter | https://github.com/theZiz/aha
- apk - aha - 0.5.1-r3: normalized package name match | Alpine Linux edge package indexes: aha from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | ANSI color to HTML converter | https://github.com/theZiz/aha
- apk - aha-doc - 0.5.1-r3: normalized package name match | Alpine Linux edge package indexes: aha-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | ANSI color to HTML converter (documentation) | https://github.com/theZiz/aha
- dnf - aha - 0.5.1-17.fc45: normalized package name match | Fedora Rawhide package metadata: aha from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Convert terminal output to HTML | https://github.com/theZiz/aha
- pacman - aha - 0.5.1-3: normalized package name match | Arch Linux sync databases: aha from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Ansi HTML Adapter: convert ANSI escape sequences to HTML | https://github.com/theZiz/aha
- zypper - aha - 0.5.1-1.23: normalized package name match | openSUSE Tumbleweed package metadata: aha from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ANSI color to HTML converter | https://github.com/theZiz/aha/
- MacPorts - aha: normalized package name match | MacPorts ports tree: textproc/aha/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [asn](https://pkg.so/zh-hans/brew/asn/) - Popular package that depends on this formula.
- [ansifilter](https://pkg.so/zh-hans/brew/ansifilter/) - Shares pkgdb curated category or tags: ansi, cli, developer-tools, html, terminal.
- [sequin](https://pkg.so/zh-hans/brew/sequin/) - Shares pkgdb curated category or tags: ansi, cli, developer-tools, terminal.
- [libxml2](https://pkg.so/zh-hans/brew/libxml2/) - Shares pkgdb curated category or tags: cli, developer-tools, html.
- [fzf](https://pkg.so/zh-hans/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [neovim](https://pkg.so/zh-hans/brew/neovim/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [pandoc](https://pkg.so/zh-hans/brew/pandoc/) - Shares pkgdb curated category or tags: cli, developer-tools, html.
- [starship](https://pkg.so/zh-hans/brew/starship/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal.
- [tidy-html5](https://pkg.so/zh-hans/brew/tidy-html5/) - Shares pkgdb curated category or tags: cli, developer-tools, html.
- [cfonts](https://pkg.so/zh-hans/brew/cfonts/) - Local package facts share a topical domain. Shared terms: ansi, cli, developer, developer-tools, terminal.
- [chalk-cli](https://pkg.so/zh-hans/brew/chalk-cli/) - Local package facts share a topical domain. Shared terms: ansi, cli, developer, developer-tools, terminal.

## Combined YAML source

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