# 使用 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:enscript
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/enscript>
- **版本:** 1.6.6
- **来源摘要:** Convert text to Postscript, HTML, or RTF, with syntax highlighting
- **主页:** <https://www.gnu.org/software/enscript/>
- **仓库:** <https://git.savannah.gnu.org/git/enscript.git>
- **上游文档:** <https://www.gnu.org/software/enscript>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://ftpmirror.gnu.org/gnu/enscript/enscript-1.6.6.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

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

## 依赖

- gettext

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.6.6
- 本地数据: OK
- 上游仓库: https://www.gnu.org/software/enscript/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** enscript
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Conflicts With:** cspice
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- 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-38.fc44: normalized package name match | Fedora Rawhide package metadata: enscript from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.3: normalized package name match | openSUSE Tumbleweed package metadata: enscript from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gettext](https://www.automicvault.com/zh-hans/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [gawk](https://www.automicvault.com/zh-hans/pkg/brew/gawk/) - Shares av.db curated category or tags: cli, developer-tools, gnu, text-processing.
- [grep](https://www.automicvault.com/zh-hans/pkg/brew/grep/) - Shares av.db curated category or tags: cli, developer-tools, gnu, text-processing.
- [wdiff](https://www.automicvault.com/zh-hans/pkg/brew/wdiff/) - Shares av.db curated category or tags: cli, developer-tools, gnu, text-processing.
- [align](https://www.automicvault.com/zh-hans/pkg/brew/align/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [bsdconv](https://www.automicvault.com/zh-hans/pkg/brew/bsdconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cconv](https://www.automicvault.com/zh-hans/pkg/brew/cconv/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [cmigemo](https://www.automicvault.com/zh-hans/pkg/brew/cmigemo/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [decasify](https://www.automicvault.com/zh-hans/pkg/brew/decasify/) - Shares av.db curated category or tags: cli, developer-tools, text-processing.
- [gnu-sed](https://www.automicvault.com/zh-hans/pkg/brew/gnu-sed/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gnu, processing.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
