Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 ansifilter

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ansifilter

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install ansifilter

MacPorts ports tree · textproc/ansifilter/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add ansifilter

Alpine Linux edge package indexes · ansifilter · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install ansifilter

Debian stable package indexes · ansifilter · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ansifilter

Fedora Rawhide package metadata · ansifilter · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ansifilter

nixpkgs package indexes · pkgs/by-name/an/ansifilter/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install ansifilter

openSUSE Tumbleweed package metadata · ansifilter · 来源: download.opensuse.org

概览

软件包摘要

Strip or convert ANSI codes into HTML, (La)Tex, RTF, or BBCode

命令和别名

  • ansifilter

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ansifiltercli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.22
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

安装元数据

软件包元数据

软件包键brew:ansifilter
版本2.22
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ansifilter
主页http://andre-simon.de/doku/ansifilter/en/ansifilter.php
仓库https://gitlab.com/saalen/ansifilter
上游文档http://andre-simon.de/doku/ansifilter/en/ansifilter.php
许可证GPL-3.0-or-later
源码归档https://gitlab.com/saalen/ansifilter/-/archive/2.22/ansifilter-2.22.tar.bz2
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameansifilter
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

ansifilter 2.21-1

parse common (terminal) ANSI codes and remove or convert them

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apt install ansifilter
  • Section: devel
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Ansifilter
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ansifilter from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ansifilter-gui 2.21-1

parse common (terminal) ANSI codes and remove or convert them (GUI)

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apt install ansifilter-gui
  • Section: devel
  • Architecture: amd64
  • Source Package: ansifilter
  • 7 依赖
  • normalized package name match
  • 匹配方式:Ansifilter
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ansifilter-gui from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ansifilter

nix profile install nixpkgs#ansifilter
  • normalized package name match
  • 匹配方式:Ansifilter
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/an/ansifilter/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ansifilter 2.18+dfsg1-2build2

parse common (terminal) ANSI codes and remove or convert them

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apt install ansifilter
  • Section: universe/devel
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Ansifilter
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ansifilter from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ansifilter-gui 2.18+dfsg1-2build2

parse common (terminal) ANSI codes and remove or convert them (GUI)

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apt install ansifilter-gui
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: ansifilter
  • 7 依赖
  • normalized package name match
  • 匹配方式:Ansifilter
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ansifilter-gui from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ansifilter 2.22-r0

Convert text files containing ANSI terminal escape codes to a variety of output formats

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apk add ansifilter
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: ansifilter
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ansifilter
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ansifilter from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ansifilter-bash-completion 2.22-r0

Bash completions for ansifilter

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apk add ansifilter-bash-completion
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: ansifilter
  • normalized package name match
  • 匹配方式:Ansifilter
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ansifilter-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ansifilter-doc 2.22-r0

Convert text files containing ANSI terminal escape codes to a variety of output formats (documentation)

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apk add ansifilter-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: ansifilter
  • normalized package name match
  • 匹配方式:Ansifilter
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ansifilter-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ansifilter-fish-completion 2.22-r0

Fish completions for ansifilter

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apk add ansifilter-fish-completion
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: ansifilter
  • normalized package name match
  • 匹配方式:Ansifilter
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ansifilter-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

ansifilter-zsh-completion 2.22-r0

Zsh completions for ansifilter

http://andre-simon.de/doku/ansifilter/en/ansifilter.php

sudo apk add ansifilter-zsh-completion
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: ansifilter
  • normalized package name match
  • 匹配方式:Ansifilter
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ansifilter-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

ansifilter 2.22-4.fc45

ANSI terminal escape code converter

http://www.andre-simon.de/doku/ansifilter/ansifilter.php

sudo dnf install ansifilter
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ansifilter
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Ansifilter
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ansifilter from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ansifilter-gui 2.22-4.fc45

GUI for ansifilter based on Qt6

http://www.andre-simon.de/doku/ansifilter/ansifilter.php

sudo dnf install ansifilter-gui
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ansifilter
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ansifilter
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ansifilter-gui from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

ansifilter 2.22-1.4

ANSI Terminal Escape Code Converter

http://www.andre-simon.de/

sudo zypper install ansifilter
  • License: GPL-3.0-or-later
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: ansifilter
  • 3 依赖
  • 4 提供
  • normalized package name match
  • 匹配方式:Ansifilter
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ansifilter from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

ansifilter-gui 2.22-1.4

ANSI Terminal Escape Code Converter - Qt GUI

http://www.andre-simon.de/

sudo zypper install ansifilter-gui
  • License: GPL-3.0-or-later
  • Category: Development/Tools/Other
  • Architecture: x86_64
  • Source Package: ansifilter
  • 7 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Ansifilter
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ansifilter-gui from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

ansifilter

sudo port install ansifilter
  • normalized package name match
  • 匹配方式:Ansifilter
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/ansifilter/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment