# 使用 Homebrew, dnf, MacPorts, Nix 安装 cfonts

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

## 安装

```sh
sudo av install brew:cfonts
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cfonts
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cfonts
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install cfonts
```

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

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

## 软件包事实

- **软件包键:** brew:cfonts
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cfonts>
- **版本:** 1.3.0
- **来源摘要:** Sexy ANSI fonts for the console
- **主页:** <https://github.com/dominikwilkowski/cfonts>
- **仓库:** <https://github.com/dominikwilkowski/cfonts>
- **上游文档:** <https://github.com/dominikwilkowski/cfonts#readme>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/dominikwilkowski/cfonts/archive/refs/tags/v1.3.0rust.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- cfonts (cli)
- cfonts (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.3.0
- 本地数据: OK
- 上游仓库: https://github.com/dominikwilkowski/cfonts
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

cfonts is a command-line text banner generator for ANSI console fonts. The official README calls it a small CLI for giving command-line output some visual style, with both Rust and Node.js implementations.

### 项目历史

The official GitHub repository was created in January 2015 and originally grew as a Node.js package. The release-branch documentation describes two implementations, Rust and Node.js, with the Homebrew formula using the Rust release line.

The project's release process distinguishes `vX.Y.Znodejs` tags from `vX.Y.Zrust` tags. The official release instructions also describe publishing to npm, crates.io, Homebrew, AUR, Fedora, and MacPorts, making the repository unusually explicit about its multi-ecosystem packaging workflow.

### 采用历史

The README documents installation through Homebrew, AUR, Fedora, NixOS, MacPorts, Cargo, npm, and Yarn. The package metadata in this batch also shows Homebrew, Fedora, MacPorts, and Nix packaging.

cfonts has stayed useful because terminal banners are a durable CLI trope: release scripts, demos, dev tools, and playful command output often want large colored text without depending on a full TUI framework.

### 使用方式

The CLI accepts text and options for font, alignment, colors, gradients, spacing, and related terminal presentation. The README documents supported characters and multiple font faces such as block, slick, tiny, grid, pallet, shade, chrome, simple, 3d, huge, and console.

There is no official persistent config file or credential file documented for the CLI, so both locations are null.

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

cfonts is package-nerd fun because the project straddles npm and crates.io while exposing the same tiny command name to users. Its release notes read like a tour of how one small CLI moves through multiple packaging ecosystems.

It is also a reminder that not every packaged developer tool is about compilers or infrastructure. Sometimes the valuable artifact is a polished, dependency-light terminal affordance that makes other tools more readable or memorable.

### 时间线

- 2015: The dominikwilkowski/cfonts repository is created on GitHub.
- 2023: The release stream includes both Rust and Node.js tags.
- 2025: v3.3.1nodejs and v1.3.0rust releases show both implementations still tracked in the official repository.

### Related projects

- npm and Yarn are the documented package channels for the Node.js implementation.
- crates.io and docs.rs are the documented package and API documentation surfaces for the Rust implementation.
- Homebrew, AUR, Fedora, NixOS, and MacPorts are documented downstream package channels in the official release notes.

### 来源

- <https://api.github.com/repos/dominikwilkowski/cfonts>
- <https://github.com/dominikwilkowski/cfonts>
- <https://github.com/dominikwilkowski/cfonts#readme>
- <https://formulae.brew.sh/api/formula/cfonts.json>
- <https://api.github.com/repos/dominikwilkowski/cfonts/releases>
- <https://github.com/dominikwilkowski/cfonts/blob/released/RELEASE.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:** cfonts
- **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

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

- Nix - cfonts: normalized package name match | nixpkgs package indexes: pkgs/by-name/cf/cfonts/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - cfonts - 1.3.0-2.fc44: normalized package name match | Fedora Rawhide package metadata: cfonts from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Sexy ANSI fonts for the console | https://crates.io/crates/cfonts
- MacPorts - cfonts: normalized package name match | MacPorts ports tree: textproc/cfonts/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Matched curated package taxonomy and local package facts.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [cfonts](https://www.automicvault.com/zh-hans/pkg/npm/cfonts/) - Same normalized package name appears in another local ecosystem. Shared terms: ansi, cfonts, console, fonts, sexy.
- [lolcat](https://www.automicvault.com/zh-hans/pkg/brew/lolcat/) - Local package facts share a topical domain. Shared terms: ansi, console.
- [cardinal](https://www.automicvault.com/zh-hans/pkg/npm/cardinal/) - Local package facts share a topical domain. Shared terms: ansi, console.
- [cfonts](https://www.automicvault.com/zh-hans/pkg/npm/cfonts/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## 来源

- 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
