# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, chocolatey, scoop 安装 ghostscript

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

## 安装

```sh
sudo av install brew:ghostscript
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ghostscript
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ghostscript
```

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

### Linux

- apk (92%):

```sh
sudo apk add ghostscript
```

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

- Debian apt (92%):

```sh
sudo apt install ghostscript
```

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

- dnf (92%):

```sh
sudo dnf install ghostscript
```

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

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

- pacman (92%):

```sh
sudo pacman -S ghostscript
```

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

- zypper (92%):

```sh
sudo zypper install ghostscript
```

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

### Windows

- Chocolatey (92%):

```sh
choco install Ghostscript
```

  证据: Chocolatey community package catalog: Ghostscript from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'

- Scoop (92%):

```sh
scoop install main/ghostscript
```

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

## 软件包事实

- **软件包键:** brew:ghostscript
- **软件包管理器:** Homebrew
- **版本:** 10.07.1
- **来源摘要:** Interpreter for PostScript and PDF
- **主页:** <https://www.ghostscript.com/>
- **仓库:** <https://github.com/ArtifexSoftware/ghostpdl>
- **最后更新:** 2026-05-23T00:55:24Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dvipdf (别名)
- eps2eps (别名)
- gpcl6 (别名)
- gpcl6c (别名)
- gpdlc (别名)
- gs (别名)
- gsbj (别名)
- gsc (别名)
- gsdj (别名)
- gsdj500 (别名)
- gslj (别名)
- gslp (别名)
- gsnd (别名)
- gsx (别名)
- gxps (别名)
- gxpsc (别名)
- lprsetup.sh (别名)
- pdf2dsc (别名)
- pdf2ps (别名)
- pf2afm (别名)
- pfbtopfa (别名)
- pphs (别名)
- printafm (别名)
- ps2ascii (别名)
- ps2epsi (别名)
- ps2pdf (别名)
- ps2pdf12 (别名)
- ps2pdf13 (别名)
- ps2pdf14 (别名)
- ps2pdfwr (别名)
- ps2ps (别名)
- ps2ps2 (别名)
- unix-lpr.sh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Ghostscript is a long-running interpreter and conversion engine for PostScript and PDF files, with related GhostPDL components for other page description languages.

### 项目历史

Ghostscript dates to the late 1980s: the official version history lists Ghostscript 1.0 on August 11, 1988, followed by early 1.x releases in 1989. The documentation describes the core product as a PostScript interpreter layer paired with a graphics library.

The project grew from a PostScript interpreter into the Ghostscript/GhostPDL family. Official documentation describes GhostPDF, GhostPCL, GhostXPS, and GhostPDL as related products sharing the Ghostscript graphics library, while Artifex documents a newer C-based PDF interpreter and the commercial Ghostscript Enterprise line.

### 采用历史

Ghostscript became infrastructure for Unix printing, document conversion, prepress, archiving, and server-side PDF workflows. The project website describes uses in printers, multifunction devices, raster image processors, document management systems, PDF generation tools, and cloud printing.

### 使用方式

Practitioners usually encounter Ghostscript through the `gs` executable or helper commands such as `ps2pdf`. Common workflows include rendering PostScript or PDF to images, converting PostScript to PDF, selecting output devices, compressing or optimizing PDF files, and embedding the engine through an SDK.

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

Package nerds care about Ghostscript because it is one of the classic pieces of document-processing plumbing: a package that quietly enables print filters, TeX and publishing toolchains, image conversion, PDF generation, and archival pipelines across many operating systems.

### 时间线

- 1988: Ghostscript 1.0 released.
- 1989: Ghostscript 1.1, 1.2, and 1.3 released.
- 2010: Ghostscript 9.00 released.
- 2022: Ghostscript 10.00.0 released.

### Related projects

- Related Artifex projects and product names include GhostPDF, GhostPCL, GhostXPS, GhostPDL, MuPDF, and Ghostscript Enterprise.

### 来源

- <https://ghostscript.readthedocs.io/en/gs10.05.1/Readme.html>
- <https://ghostscript.readthedocs.io/en/gs10.05.1/ReleaseDates.html>
- <https://ghostscript.readthedocs.io/en/gs10.05.1/Use.html>
- <https://github.com/ArtifexSoftware/ghostpdl-downloads>
- <https://web.mit.edu/ghostscript/www/History1.htm>
- <https://www.ghostscript.com/>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

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

- Debian apt - ghostscript - 10.05.1~dfsg-1+deb13u1: normalized package name match | Debian stable package indexes: ghostscript from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interpreter for the PostScript language and for PDF | https://www.ghostscript.com/
- Debian apt - ghostscript-doc - 10.05.1~dfsg-1+deb13u1: normalized package name match | Debian stable package indexes: ghostscript-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interpreter for the PostScript language and for PDF - Documentation | https://www.ghostscript.com/
- Debian apt - libgs-common - 10.05.1~dfsg-1+deb13u1: normalized package name match | Debian stable package indexes: libgs-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interpreter for the PostScript language and for PDF - ICC profiles | https://www.ghostscript.com/
- Debian apt - libgs-dev - 10.05.1~dfsg-1+deb13u1: normalized package name match | Debian stable package indexes: libgs-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interpreter for the PostScript language and for PDF - Development Files | https://www.ghostscript.com/
- Debian apt - libgs10 - 10.05.1~dfsg-1+deb13u1: normalized package name match | Debian stable package indexes: libgs10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interpreter for the PostScript language and for PDF - Library | https://www.ghostscript.com/
- Debian apt - libgs10-common - 10.05.1~dfsg-1+deb13u1: normalized package name match | Debian stable package indexes: libgs10-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | interpreter for the PostScript language and for PDF - common files | https://www.ghostscript.com/
- Nix - ghostscript: normalized package name match | nixpkgs package indexes: pkgs/by-name/gh/ghostscript/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ghostscript - 10.02.1~dfsg1-0ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: ghostscript from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | interpreter for the PostScript language and for PDF | https://www.ghostscript.com/
- Ubuntu apt - ghostscript-doc - 10.02.1~dfsg1-0ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: ghostscript-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | interpreter for the PostScript language and for PDF - Documentation | https://www.ghostscript.com/
- Ubuntu apt - libgs-common - 10.02.1~dfsg1-0ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libgs-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | interpreter for the PostScript language and for PDF - ICC profiles | https://www.ghostscript.com/
- Ubuntu apt - libgs-dev - 10.02.1~dfsg1-0ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libgs-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | interpreter for the PostScript language and for PDF - Development Files | https://www.ghostscript.com/
- Ubuntu apt - libgs10 - 10.02.1~dfsg1-0ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libgs10 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | interpreter for the PostScript language and for PDF - Library | https://www.ghostscript.com/
- Ubuntu apt - libgs10-common - 10.02.1~dfsg1-0ubuntu7: normalized package name match | Ubuntu 24.04 LTS package indexes: libgs10-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | interpreter for the PostScript language and for PDF - common files | https://www.ghostscript.com/
- apk - ghostscript - 10.07.1-r0: normalized package name match | Alpine Linux edge package indexes: ghostscript from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Interpreter for the PostScript language and for PDF | https://ghostscript.com/
- apk - ghostscript-dbg - 10.07.1-r0: normalized package name match | Alpine Linux edge package indexes: ghostscript-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Interpreter for the PostScript language and for PDF (debug symbols) | https://ghostscript.com/
- apk - ghostscript-dev - 10.07.1-r0: normalized package name match | Alpine Linux edge package indexes: ghostscript-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Interpreter for the PostScript language and for PDF (development files) | https://ghostscript.com/


## Combined YAML source

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