# Install ghostscript with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

Interpreter for PostScript and PDF. Version 10.07.1 via Homebrew; verified 2026-05-23.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ghostscript
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ghostscript
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

  Evidence: 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
```

  Evidence: 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
```

  Evidence: openSUSE Tumbleweed package metadata: ghostscript from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install Ghostscript
```

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

- Scoop (92%):

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

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

## Package facts

- **Package key:** brew:ghostscript
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ghostscript>
- **Version:** 10.07.1
- **Source summary:** Interpreter for PostScript and PDF
- **Homepage:** <https://www.ghostscript.com/>
- **Repository:** <https://github.com/ArtifexSoftware/ghostpdl-downloads>
- **Upstream docs:** <https://ghostscript.com/documentation/index.html>
- **License:** AGPL-3.0-or-later
- **Source archive:** <https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10071/ghostpdl-10.07.1.tar.xz>
- **Last updated:** 2026-05-23T00:55:24Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

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

## Dependencies

- fontconfig
- freetype
- jbig2dec
- jpeg-turbo
- leptonica
- libarchive
- libidn
- libpng
- libtiff
- little-cms2
- openjpeg
- tesseract

## Build dependencies

- pkgconf

## Uses from macOS

- expat

## Install behavior

- Post-install hook: not defined
- Caveats: Ghostscript is now built `--without-versioned-path`. Temporary backwards compatibility symlinks exist but will be removed with 10.07.0 release.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 10.07.1
- Package-manager updated: 2026-05-23
- Local data: ok
- Upstream repository: https://github.com/ArtifexSoftware/ghostpdl-downloads
- info: No cached GitHub release or tag data was available.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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/>


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Source Database Details

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

## Other Package-Manager Records

- 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/


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [fontconfig](https://www.automicvault.com/pkg/brew/fontconfig/) - Runtime dependency declared by Homebrew.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [jbig2dec](https://www.automicvault.com/pkg/brew/jbig2dec/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [leptonica](https://www.automicvault.com/pkg/brew/leptonica/) - Runtime dependency declared by Homebrew.
- [libarchive](https://www.automicvault.com/pkg/brew/libarchive/) - Runtime dependency declared by Homebrew.
- [libidn](https://www.automicvault.com/pkg/brew/libidn/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [asymptote](https://www.automicvault.com/pkg/brew/asymptote/) - Popular package that depends on this formula.
- [djvu2pdf](https://www.automicvault.com/pkg/brew/djvu2pdf/) - Popular package that depends on this formula.
- [dvisvgm](https://www.automicvault.com/pkg/brew/dvisvgm/) - Popular package that depends on this formula.
- [epstool](https://www.automicvault.com/pkg/brew/epstool/) - Popular package that depends on this formula.
- [fig2dev](https://www.automicvault.com/pkg/brew/fig2dev/) - Popular package that depends on this formula.
- [groff](https://www.automicvault.com/pkg/brew/groff/) - Popular package that depends on this formula.
- [imagemagick-full](https://www.automicvault.com/pkg/brew/imagemagick-full/) - Popular package that depends on this formula.
- [lanraragi](https://www.automicvault.com/pkg/brew/lanraragi/) - Popular package that depends on this formula.
- [psutils](https://www.automicvault.com/pkg/brew/psutils/) - Shares av.db curated category or tags: cli, document-processing, media, pdf, postscript.
- [md2pdf](https://www.automicvault.com/pkg/brew/md2pdf/) - Shares av.db curated category or tags: cli, document-conversion, media, pdf.
- [paps](https://www.automicvault.com/pkg/brew/paps/) - Shares av.db curated category or tags: cli, document-conversion, media, postscript, printing.
- [poster](https://www.automicvault.com/pkg/brew/poster/) - Shares av.db curated category or tags: cli, media, postscript, printing.
- [ps2eps](https://www.automicvault.com/pkg/brew/ps2eps/) - Shares av.db curated category or tags: cli, document-conversion, media, pdf, postscript.
- [pstoedit](https://www.automicvault.com/pkg/brew/pstoedit/) - Shares av.db curated category or tags: cli, document-conversion, media, pdf, postscript.
- [unpaper](https://www.automicvault.com/pkg/brew/unpaper/) - Shares av.db curated category or tags: cli, document-processing, media.

## Combined YAML source

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


## Sources

- 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
