# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 a2ps

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

## 安装

```sh
sudo av install brew:a2ps
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install a2ps
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install a2ps
```

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

### Linux

- apk (92%):

```sh
sudo apk add a2ps
```

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

- Debian apt (92%):

```sh
sudo apt install a2ps
```

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

- dnf (92%):

```sh
sudo dnf install a2ps
```

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

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

- pacman (92%):

```sh
sudo pacman -S a2ps
```

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

- zypper (92%):

```sh
sudo zypper install a2ps
```

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

## 软件包事实

- **软件包键:** brew:a2ps
- **软件包管理器:** Homebrew
- **版本:** 4.15.8
- **来源摘要:** Any-to-PostScript filter
- **主页:** <https://www.gnu.org/software/a2ps/>
- **最后更新:** 2026-05-26T23:37:44-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- a2ps (别名)
- a2ps-lpr-wrapper (别名)
- card (别名)
- composeglyphs (别名)
- fixps (别名)
- lp2 (别名)
- ogonkify (别名)
- pdiff (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 4.15.8
## 项目历史与用法

GNU a2ps is an Any-to-PostScript filter and pretty-printer: it turns text and many source formats into PostScript, with page layout, headers, style sheets, delegations to other tools, and printer-oriented output.

### 项目历史

The project became a GNU package for command-line printing workflows where PostScript was the common interchange format. Its README describes the tool as highly configurable while still aiming to let novice users perform complex PostScript manipulations.

After long maintenance gaps, release 4.14 in 2007 moved the package to GPLv3-or-later and modernized the build. A new maintenance cycle began in 2022, leading to the 4.15 stable release in 2023 with Reuben Thomas as maintainer, updated autotools/gnulib infrastructure, libpaper integration, CUPS-oriented lpr wrapper support, and security fixes.

### 采用历史

a2ps became a familiar Unix packaging staple because it filled the practical gap between plain text, source code, and printer-ready PostScript. The input package data lists it across Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, MacPorts, Nix, and openSUSE, which matches its long-lived role as a small command-line printing utility.

### 使用方式

Users run a2ps to format files for printing or previewing, especially source files that benefit from syntax-aware pretty-printing. Related tools in the package, such as fixps, card, pdiff, lp2, ogonkify, and composeglyphs, reflect the broader PostScript-cleanup and print-preparation workflow around it.

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

Package nerds care about a2ps because it is the kind of GNU utility that exposes decades of Unix printing assumptions: PostScript pipelines, libpaper defaults, printer wrappers, generated documentation, legacy encodings, and security-sensitive parsers all in one small package.

### 时间线

- 2007: GNU a2ps 4.14 ships as a maintenance release, moves to GPLv3-or-later, and updates build tooling.
- 2022: Alpha releases restart active maintenance with a new maintainer and modernized build system.
- 2023: GNU a2ps 4.15 ships as a stable release with CUPS-oriented printing support, libpaper integration, and security fixes.
- 2025: GNU a2ps 4.15.8 ships with bug fixes and build/documentation updates.

### Related projects

- a2ps delegates work to tools such as Ghostscript, groff, dvips, gzip, psutils, and libpaper, making it part of the classic Unix document-conversion and printing pipeline.

### 来源

- <https://git.savannah.gnu.org/cgit/a2ps.git/plain/NEWS>
- <https://git.savannah.gnu.org/cgit/a2ps.git/plain/README>
- <https://savannah.gnu.org/projects/a2ps>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - a2ps - 1:4.15.6-1+b1: normalized package name match | Debian stable package indexes: a2ps from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU a2ps - 'Anything to PostScript' converter and pretty-printer | https://www.gnu.org/software/a2ps/
- Nix - a2ps: normalized package name match | nixpkgs package indexes: pkgs/by-name/a2/a2ps/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - a2ps - 1:4.15.5-2: normalized package name match | Ubuntu 24.04 LTS package indexes: a2ps from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU a2ps - 'Anything to PostScript' converter and pretty-printer | https://www.gnu.org/software/a2ps/
- apk - a2ps - 4.15.7-r0: normalized package name match | Alpine Linux edge package indexes: a2ps from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | a2ps is an Any to PostScript filter | https://www.gnu.org/software/a2ps/
- apk - a2ps-doc - 4.15.7-r0: normalized package name match | Alpine Linux edge package indexes: a2ps-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | a2ps is an Any to PostScript filter (documentation) | https://www.gnu.org/software/a2ps/
- apk - a2ps-emacs - 4.15.7-r0: normalized package name match | Alpine Linux edge package indexes: a2ps-emacs from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | a2ps is an Any to PostScript filter (emacs plugin) | https://www.gnu.org/software/a2ps/
- dnf - a2ps - 4.15.8-5.fc45: normalized package name match | Fedora Rawhide package metadata: a2ps from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Converts text and other types of files to PostScript | http://www.gnu.org/software/a2ps/
- pacman - a2ps - 4.15.8-1: normalized package name match | Arch Linux sync databases: a2ps from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An Any to PostScript filter | https://www.gnu.org/software/a2ps
- zypper - a2ps - 4.15.6-2.6: normalized package name match | openSUSE Tumbleweed package metadata: a2ps from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool to convert ASCII/Latin Text into PostScript | https://www.gnu.org/software/a2ps/a2ps.html
- zypper - a2ps-devel - 4.15.6-2.6: normalized package name match | openSUSE Tumbleweed package metadata: a2ps-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library and header file for the interface of a2ps | https://www.gnu.org/software/a2ps/a2ps.html
- zypper - a2ps-lang - 4.15.6-2.6: normalized package name match | openSUSE Tumbleweed package metadata: a2ps-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package a2ps | https://www.gnu.org/software/a2ps/a2ps.html
- zypper - liba2ps1 - 4.15.6-2.6: normalized package name match | openSUSE Tumbleweed package metadata: liba2ps1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Library to convert ASCII/Latin text into PostScript | https://www.gnu.org/software/a2ps/a2ps.html
- MacPorts - a2ps: normalized package name match | MacPorts ports tree: print/a2ps/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/a2ps.yml](https://github.com/mxcl/pkgdb/blob/main/combined/a2ps.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
