# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.5.1
- **来源摘要:** ANSI HTML adapter
- **主页:** <https://github.com/theZiz/aha>
- **仓库:** <https://github.com/theZiz/aha>
- **最后更新:** 2026-07-10T16:49:54-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- aha (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
