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

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

## 安装

```sh
sudo av install brew:enscript
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install enscript
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install enscript
```

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

### Linux

- apk (92%):

```sh
sudo apk add enscript
```

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

- Debian apt (92%):

```sh
sudo apt install enscript
```

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

- dnf (92%):

```sh
sudo dnf install enscript
```

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

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

- pacman (92%):

```sh
sudo pacman -S enscript
```

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

- zypper (92%):

```sh
sudo zypper install enscript
```

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

## 软件包事实

- **软件包键:** brew:enscript
- **软件包管理器:** Homebrew
- **版本:** 1.6.6
- **来源摘要:** Convert text to Postscript, HTML, or RTF, with syntax highlighting
- **主页:** <https://www.gnu.org/software/enscript/>
- **最后更新:** 2026-08-02T15:56:46+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- diffpp (别名)
- enscript (别名)
- mkafmmap (别名)
- over (别名)
- sliceprint (别名)
- states (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GNU Enscript is a GNU command-line program for converting text files to PostScript, and in later versions also to formats such as HTML and RTF, with layout control and language-sensitive highlighting.

### 项目历史

The official README calls GNU Enscript a drop-in replacement for the older enscript program and describes its core job as converting ASCII files to PostScript for files or printers. The AUTHORS file credits Markku Rossi as the author of GNU Enscript.

The GNU FTP archive shows public GNU Enscript tarballs at least as far back as version 1.4.0 in 1996, followed by 1.5.0 in 1997, 1.6.0 in 1998, and later 1.6.x maintenance releases. The NEWS file documents major 1.6-era work around syntax highlighting, output options, encodings, and later security and maintenance fixes.

### 采用历史

Enscript became a familiar Unix packaging item because it filled a durable text-to-PostScript workflow for terminals, print queues, source listings, and documentation. The input metadata lists it across Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, Nix, MacPorts, and openSUSE.

### 使用方式

Users invoke `enscript` to format plain text or source code for printing or generated output. Official documentation describes global and personal configuration through `enscript.cfg`, `enscriptsite.cfg`, and `$HOME/.enscriptrc`, plus helper commands such as `mkafmmap` and language-sensitive highlighting through the `states` program.

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

GNU Enscript is a package-nerd staple because it sits at the intersection of classic Unix printing, PostScript, source-code pretty-printing, font metrics, locale encodings, and GNU release infrastructure. It is small by modern standards but touches many old-school system integration points.

### 时间线

- 1996: GNU FTP archive lists enscript 1.4.0 tarball.
- 1998: GNU FTP archive lists enscript 1.6.0 and 1.6.1 tarballs.
- 2010: NEWS for 1.6.5 notes a new maintainer, GPLv3-or-later licensing, build fixes, security fixes, and syntax-highlighting fixes.
- 2012: NEWS for 1.6.6 notes Translation Project updates, Debian sliceprint patch integration, and option/documentation fixes.
- 2026: ChangeLog records release 1.7.0.

### Related projects

- The project belongs to the GNU tool family and is related operationally to PostScript interpreters, Unix print spoolers such as lpr and lp, and source-code highlighters used in printing workflows.

### 来源

- <https://www.gnu.org/software/enscript>
- <https://git.savannah.gnu.org/cgit/enscript.git>
- <https://git.savannah.gnu.org/cgit/enscript.git/plain/README>
- <https://git.savannah.gnu.org/cgit/enscript.git/plain/NEWS>
- <https://git.savannah.gnu.org/cgit/enscript.git/plain/AUTHORS>
- <https://ftp.gnu.org/gnu/enscript/>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.enscriptrc, $prefix/etc/enscriptsite.cfg, $prefix/etc/enscript.cfg
## 其他软件包管理器记录

- Debian apt - enscript - 1.6.5.90-3.1+b1: normalized package name match | Debian stable package indexes: enscript from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | converts text to Postscript, HTML or RTF with syntax highlighting | http://www.gnu.org/software/enscript/
- Nix - enscript: normalized package name match | nixpkgs package indexes: pkgs/by-name/en/enscript/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - enscript - 1.6.5.90-3.1: normalized package name match | Ubuntu 24.04 LTS package indexes: enscript from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | converts text to Postscript, HTML or RTF with syntax highlighting | http://www.gnu.org/software/enscript/
- apk - enscript - 1.6.6-r7: normalized package name match | Alpine Linux edge package indexes: enscript from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GNU Enscript converts ASCII files to PostScript, HTML, or RTF | https://www.gnu.org/software/enscript/
- apk - enscript-doc - 1.6.6-r7: normalized package name match | Alpine Linux edge package indexes: enscript-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | GNU Enscript converts ASCII files to PostScript, HTML, or RTF (documentation) | https://www.gnu.org/software/enscript/
- dnf - enscript - 1.6.6-39.fc45: normalized package name match | Fedora Rawhide package metadata: enscript from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A plain ASCII to PostScript converter | http://www.gnu.org/software/enscript
- pacman - enscript - 1.6.6-6: normalized package name match | Arch Linux sync databases: enscript from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Convert ASCII files to PostScript suitable for printing | https://git.savannah.gnu.org/cgit/enscript.git
- zypper - enscript - 1.6.6-4.5: normalized package name match | openSUSE Tumbleweed package metadata: enscript from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | An ASCII to PostScript(tm) Converter | http://git.savannah.gnu.org/cgit/enscript.git
- MacPorts - enscript: normalized package name match | MacPorts ports tree: print/enscript/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/enscript.yml](https://github.com/mxcl/pkgdb/blob/main/combined/enscript.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
