# Install aha with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

ANSI HTML adapter. Version 0.5.1 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install aha
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install aha
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

- Nix (92%):

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

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:aha
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/aha>
- **Version:** 0.5.1
- **Source summary:** ANSI HTML adapter
- **Homepage:** <https://github.com/theZiz/aha>
- **Repository:** <https://github.com/theZiz/aha>
- **Upstream docs:** <https://github.com/theZiz/aha#readme>
- **License:** LGPL-2.0-or-later OR MPL-1.1
- **Source archive:** <https://github.com/theZiz/aha/archive/refs/tags/0.5.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- aha (cli)
- aha (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.5.1
- Local data: ok
- Upstream repository: https://github.com/theZiz/aha
- Upstream latest detected: 0.5.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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-16.fc44: normalized package name match | Fedora Rawhide package metadata: aha from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.21: normalized package name match | openSUSE Tumbleweed package metadata: aha from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [asn](https://www.automicvault.com/pkg/brew/asn/) - Popular package that depends on this formula.
- [ansifilter](https://www.automicvault.com/pkg/brew/ansifilter/) - Shares av.db curated category or tags: ansi, cli, developer-tools, html, terminal.
- [sequin](https://www.automicvault.com/pkg/brew/sequin/) - Shares av.db curated category or tags: ansi, cli, developer-tools, terminal.
- [amtterm](https://www.automicvault.com/pkg/brew/amtterm/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ccat](https://www.automicvault.com/pkg/brew/ccat/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [clive](https://www.automicvault.com/pkg/brew/clive/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [colordiff](https://www.automicvault.com/pkg/brew/colordiff/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [colormake](https://www.automicvault.com/pkg/brew/colormake/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [et](https://www.automicvault.com/pkg/brew/et/) - Shares av.db curated category or tags: cli, developer-tools, terminal.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- 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
