# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 chafa

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

## 安装

```sh
sudo av install brew:chafa
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install chafa
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install chafa
```

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

### Linux

- apk (92%):

```sh
sudo apk add chafa
```

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

- Debian apt (92%):

```sh
sudo apt install chafa
```

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

- dnf (92%):

```sh
sudo dnf install chafa
```

  证据: Fedora Rawhide package metadata: chafa 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#chafa
```

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

- pacman (92%):

```sh
sudo pacman -S chafa
```

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

- zypper (92%):

```sh
sudo zypper install chafa
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/chafa
```

  证据: Scoop official bucket manifest trees: bucket/chafa.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id hpjansson.Chafa -e
```

  证据: Windows Package Manager source index: hpjansson.Chafa from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:chafa
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/chafa>
- **版本:** 1.18.2
- **来源摘要:** Versatile and fast Unicode/ASCII/ANSI graphics renderer
- **主页:** <https://hpjansson.org/chafa/>
- **仓库:** <https://github.com/hpjansson/chafa>
- **上游文档:** <https://hpjansson.org/chafa/>
- **许可证:** LGPL-3.0-or-later
- **源码归档:** <https://hpjansson.org/chafa/releases/chafa-1.18.2.tar.xz>
- **最后更新:** 2026-07-05T23:07:18Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- chafa (cli)
- chafa (别名)

## 依赖

- cairo
- freetype
- gdk-pixbuf
- gettext
- glib
- jpeg-turbo
- jpeg-xl
- libavif
- librsvg
- libtiff
- webp

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.18.2
- 管理器更新时间: 2026-07-05
- 本地数据: OK
- 上游仓库: https://hpjansson.org/chafa/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Chafa is a terminal graphics renderer and C library that converts images and animations into ANSI, Unicode, sixel, Kitty, and related terminal graphics formats. It moved from a clever ANSI-art utility into a widely packaged terminal-media component with bindings and downstream integrations.

### 项目历史

Hans Petter Jansson introduced Chafa on April 24, 2018 as an open-source tool for displaying graphics in terminal environments. The project site describes it as a command-line utility plus a documented, stable C API; the README says it can handle animated GIFs and produce graphics or ANSI/Unicode character art for terminals ranging from historical teleprinters to modern emulators.

### 采用历史

Chafa's official download page says packages are available for many Linux distributions, Windows, Homebrew, and MacPorts, and lists Arch, Brew, Debian, Fedora, FreeBSD, Gentoo, Guix, Kali, MacPorts, OpenBSD, openSUSE, Ubuntu, Scoop, and Winget examples. The supplied input also records broad package-manager coverage across apk, brew, Debian, dnf, MacPorts, Nix, pacman, Scoop, Ubuntu, Winget, and zypper.

### 使用方式

Users invoke chafa to render images and animations in terminals, choosing symbol sets, color modes, terminal graphics protocols, and output sizing. Developers can use libchafa through its C API, and the official site points to Python bindings and JavaScript/WebAssembly bindings for embedding the renderer in other tools.

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

Chafa matters to package nerds because it is a cross-platform terminal-media primitive: small enough to ship as a CLI, useful as a library, and visible in package ecosystems because terminal applications increasingly want inline image previews. Its official development page lists downstream users including Kew, Felix, HarfBuzz hb-view, nb, Neofetch, Offpunk, Oyomu, and Neovim plugins.

### 时间线

- 2018: Chafa was introduced publicly as an open-source terminal graphics tool.
- 2020: Chafa 1.4.0 added sixel output, expanding from character-cell mosaics into terminal pixel graphics protocols.
- 2021: Chafa 1.8 broadened terminal graphics support, according to the official release-post list on the project site.
- 2024: Chafa 1.14 was announced in the official release-post list.
- 2026: The official download page lists Chafa 1.18.2 released on 2026-04-30.

### Related projects

- The introductory Chafa post places it in a lineage with aalib, libcaca, and timg. Official pages also point to chafapy, chafa-wasm, HarfBuzz hb-view, Neofetch, Offpunk, Telescope media files, and chafa.nvim as related bindings or consumers.

### 来源

- <https://hpjansson.org/chafa/>
- <https://hpjansson.org/chafa/download/>
- <https://hpjansson.org/chafa/development/>
- <https://hpjansson.org/blag/2018/04/24/introducing-chafa/>
- <https://hpjansson.org/blag/2020/04/01/chafa-1-4-0-now-with-sixels/>
- <https://github.com/hpjansson/chafa/blob/master/README.md>


## 安全说明

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:** chafa
- **Version Scheme:** 0
- **Revision:** 1
- **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 - chafa - 1.14.5-1: normalized package name match | Debian stable package indexes: chafa from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Image-to-text converter supporting a wide range of symbols, etc. | https://hpjansson.org/chafa/
- Debian apt - libchafa-dev - 1.14.5-1: normalized package name match | Debian stable package indexes: libchafa-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files for image-to-text converter chafa | https://hpjansson.org/chafa/
- Debian apt - libchafa0t64 - 1.14.5-1: normalized package name match | Debian stable package indexes: libchafa0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for image-to-text converter chafa | https://hpjansson.org/chafa/
- Nix - chafa: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/chafa/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - chafa - 1.14.0-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: chafa from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Image-to-text converter supporting a wide range of symbols, etc. | https://hpjansson.org/chafa/
- Ubuntu apt - libchafa-dev - 1.14.0-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libchafa-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | development files for image-to-text converter chafa | https://hpjansson.org/chafa/
- Ubuntu apt - libchafa0t64 - 1.14.0-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libchafa0t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for image-to-text converter chafa | https://hpjansson.org/chafa/
- apk - chafa - 1.18.2-r0: normalized package name match | Alpine Linux edge package indexes: chafa from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal graphics for the 21st century | https://hpjansson.org/chafa
- apk - chafa-bash-completion - 1.18.2-r0: normalized package name match | Alpine Linux edge package indexes: chafa-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for chafa | https://hpjansson.org/chafa
- apk - chafa-dev - 1.18.2-r0: normalized package name match | Alpine Linux edge package indexes: chafa-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal graphics for the 21st century (development files) | https://hpjansson.org/chafa
- apk - chafa-doc - 1.18.2-r0: normalized package name match | Alpine Linux edge package indexes: chafa-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal graphics for the 21st century (documentation) | https://hpjansson.org/chafa
- apk - chafa-fish-completion - 1.18.2-r0: normalized package name match | Alpine Linux edge package indexes: chafa-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for chafa | https://hpjansson.org/chafa
- apk - chafa-libs - 1.18.2-r0: normalized package name match | Alpine Linux edge package indexes: chafa-libs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal graphics for the 21st century (libraries) | https://hpjansson.org/chafa
- apk - chafa-zsh-completion - 1.18.2-r0: normalized package name match | Alpine Linux edge package indexes: chafa-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for chafa | https://hpjansson.org/chafa
- dnf - chafa - 1.18.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: chafa from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Image-to-text converter for terminal | https://hpjansson.org/chafa/
- dnf - chafa-devel - 1.18.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: chafa-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Image-to-text converter for terminal (development files) | https://hpjansson.org/chafa/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libtiff](https://pkg.so/zh-hans/brew/libtiff/) - Runtime dependency declared by Homebrew.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Runtime dependency declared by Homebrew.
- [cairo](https://pkg.so/zh-hans/brew/cairo/) - Runtime dependency declared by Homebrew.
- [webp](https://pkg.so/zh-hans/brew/webp/) - Runtime dependency declared by Homebrew.
- [jpeg-xl](https://pkg.so/zh-hans/brew/jpeg-xl/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [kew](https://pkg.so/zh-hans/brew/kew/) - Popular package that depends on this formula.
- [mdfried](https://pkg.so/zh-hans/brew/mdfried/) - Popular package that depends on this formula.
- [fnt](https://pkg.so/zh-hans/brew/fnt/) - Popular package that depends on this formula.
- [lazycut](https://pkg.so/zh-hans/brew/lazycut/) - Popular package that depends on this formula.
- [libcaca](https://pkg.so/zh-hans/brew/libcaca/) - Shares pkgdb curated category or tags: cli, media, terminal-graphics.
- [lsix](https://pkg.so/zh-hans/brew/lsix/) - Shares pkgdb curated category or tags: cli, media, terminal-graphics.
- [graphite2](https://pkg.so/zh-hans/brew/graphite2/) - Shares pkgdb curated category or tags: cli, media, unicode.
- [fribidi](https://pkg.so/zh-hans/brew/fribidi/) - Shares pkgdb curated category or tags: cli, media, unicode.
- [libsixel](https://pkg.so/zh-hans/brew/libsixel/) - Shares pkgdb curated category or tags: cli, media, terminal-graphics.
- [nyancat](https://pkg.so/zh-hans/brew/nyancat/) - Shares pkgdb curated category or tags: ansi, cli, media.
- [ansilove](https://pkg.so/zh-hans/brew/ansilove/) - Shares pkgdb curated category or tags: ansi, cli, media.
- [durdraw](https://pkg.so/zh-hans/brew/durdraw/) - Shares pkgdb curated category or tags: cli, media, unicode.
- [imagemagick-full](https://pkg.so/zh-hans/brew/imagemagick-full/) - Both packages work with overlapping file formats or content types. Shared terms: cairo, cli, freetype, gdk, gdk-pixbuf.
- [timg](https://pkg.so/zh-hans/brew/timg/) - Both packages work with overlapping file formats or content types. Shared terms: cairo, cli, gdk, gdk-pixbuf, gettext.
- [geeqie](https://pkg.so/zh-hans/brew/geeqie/) - Both packages work with overlapping file formats or content types. Shared terms: cairo, cli, gdk, gdk-pixbuf, gettext.

## Combined YAML source

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