# ansifilter を Homebrew, apk, apt, dnf, MacPorts, Nix, zypper でインストール

ansifilter のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:ansifilter
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install ansifilter
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ansifilter
```

  証拠: MacPorts ports tree: textproc/ansifilter/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ansifilter
```

  証拠: Alpine Linux edge package indexes: ansifilter from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install ansifilter
```

  証拠: Debian stable package indexes: ansifilter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install ansifilter
```

  証拠: Fedora Rawhide package metadata: ansifilter 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#ansifilter
```

  証拠: nixpkgs package indexes: pkgs/by-name/an/ansifilter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install ansifilter
```

  証拠: openSUSE Tumbleweed package metadata: ansifilter from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:ansifilter
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.22
- **ソース概要:** Strip or convert ANSI codes into HTML, (La)Tex, RTF, or BBCode
- **ホームページ:** <http://andre-simon.de/doku/ansifilter/en/ansifilter.php>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- ansifilter (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.22
## プロジェクトの歴史と使われ方

ansifilter is a small command-line converter for text containing ANSI terminal escape sequences. It can strip escape codes or interpret them into formatted output such as HTML, RTF, TeX, LaTeX, BBCode, Pango Markup, and SVG.

### プロジェクトの歴史

The official changelog starts with ansifilter 0.1 on 25 October 2007. Early releases focused on terminal color escape handling, including xterm 256-color support by 1.0 in 2008 and license migration from GPLv2 to GPLv3 in 2009.

The tool gradually expanded from a filter into a format bridge. LaTeX, TeX, BBCode, Pango, SVG, true color, OSC 8 hyperlinks, and ANSI-art formats were added over time, while the README documents a single CLI that can read stdin or files and produce multiple markup formats.

### 採用の歴史

ansifilter appears in many Unix package managers because it solves a packaging-adjacent problem: converting colorized CLI output into archival or publishable text. Its changelog references contributions and fixes from distro and user communities, including Portage warning fixes, shell completion scripts, and issues from both its older GitHub tracker and current GitLab tracker.

### 使われ方

Typical use is pipeline-oriented: pass colorized command output through ansifilter to strip ANSI escapes, or choose an output format such as --html, --latex, --rtf, --svg, or --bbcode. The README also documents --tail for following log files and ANSIFILTER_OPTIONS for default CLI options.

For package users, ansifilter is a handy companion to grep, test logs, CI logs, terminal captures, and ANSI-art files. It is deliberately not a credentials-bearing tool and has no documented default config file.

### パッケージ好きにとっての重要性

Package nerds care about ansifilter because it lives at the boundary between terminals and documentation. It turns the color and formatting conventions emitted by Unix commands into artifacts suitable for web pages, bug reports, manuals, and forums without dragging in a full terminal emulator.

### タイムライン

- 2007: Initial ansifilter 0.1 release.
- 2008: ansifilter 1.0 adds xterm 256-color sequence support.
- 2009: License changes from GPLv2 to GPLv3.
- 2016: ansifilter 2.0 adds a new CSI parser and ANSI/BIN/XBIN art options.
- 2019: ansifilter 2.14 adds SVG output.
- 2021: ansifilter 2.18 adds OSC 8 hyperlink support.
- 2025: ansifilter 2.22 adds tee and append-oriented CLI output features.

### Related projects

- highlight is another Andre Simon project focused on source-code highlighting rather than ANSI escape conversion.
- Terminal log renderers and CI systems often need similar ANSI stripping or HTML conversion behavior.

### ソース

- <https://gitlab.com/saalen/ansifilter/-/raw/master/ChangeLog.adoc>
- <https://gitlab.com/saalen/ansifilter/-/raw/master/README.adoc>
- source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - ansifilter - 2.21-1: normalized package name match | Debian stable package indexes: ansifilter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | parse common (terminal) ANSI codes and remove or convert them | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- Debian apt - ansifilter-gui - 2.21-1: normalized package name match | Debian stable package indexes: ansifilter-gui from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | parse common (terminal) ANSI codes and remove or convert them (GUI) | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- Nix - ansifilter: normalized package name match | nixpkgs package indexes: pkgs/by-name/an/ansifilter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ansifilter - 2.18+dfsg1-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: ansifilter from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | parse common (terminal) ANSI codes and remove or convert them | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- Ubuntu apt - ansifilter-gui - 2.18+dfsg1-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: ansifilter-gui from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | parse common (terminal) ANSI codes and remove or convert them (GUI) | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- apk - ansifilter - 2.22-r0: normalized package name match | Alpine Linux edge package indexes: ansifilter from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Convert text files containing ANSI terminal escape codes to a variety of output formats | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- apk - ansifilter-bash-completion - 2.22-r0: normalized package name match | Alpine Linux edge package indexes: ansifilter-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for ansifilter | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- apk - ansifilter-doc - 2.22-r0: normalized package name match | Alpine Linux edge package indexes: ansifilter-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Convert text files containing ANSI terminal escape codes to a variety of output formats (documentation) | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- apk - ansifilter-fish-completion - 2.22-r0: normalized package name match | Alpine Linux edge package indexes: ansifilter-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for ansifilter | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- apk - ansifilter-zsh-completion - 2.22-r0: normalized package name match | Alpine Linux edge package indexes: ansifilter-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for ansifilter | http://andre-simon.de/doku/ansifilter/en/ansifilter.php
- dnf - ansifilter - 2.22-7.fc45: normalized package name match | Fedora Rawhide package metadata: ansifilter from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | ANSI terminal escape code converter | http://www.andre-simon.de/doku/ansifilter/ansifilter.php
- dnf - ansifilter-gui - 2.22-7.fc45: normalized package name match | Fedora Rawhide package metadata: ansifilter-gui from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GUI for ansifilter based on Qt6 | http://www.andre-simon.de/doku/ansifilter/ansifilter.php
- zypper - ansifilter - 2.22-1.6: normalized package name match | openSUSE Tumbleweed package metadata: ansifilter from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ANSI Terminal Escape Code Converter | http://www.andre-simon.de/
- zypper - ansifilter-gui - 2.22-1.6: normalized package name match | openSUSE Tumbleweed package metadata: ansifilter-gui from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ANSI Terminal Escape Code Converter - Qt GUI | http://www.andre-simon.de/
- MacPorts - ansifilter: normalized package name match | MacPorts ports tree: textproc/ansifilter/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/ansifilter.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ansifilter.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
