# Install fop with Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper

XSL-FO print formatter for making PDF or PS documents. Version 2.11 via Homebrew; verified 2026-06-22. Also installable with debian: sudo apt install fop.

## Install

```sh
sudo av install brew:fop
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fop
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fop
```

  Evidence: MacPorts ports tree: textproc/fop/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install fop
```

  Evidence: Debian stable package indexes: fop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install fop
```

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

  Evidence: nixpkgs package indexes: pkgs/by-name/fo/fop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S fop
```

  Evidence: Arch Linux sync databases: fop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install xmlgraphics-fop
```

  Evidence: openSUSE Tumbleweed package metadata: xmlgraphics-fop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:fop
- **Package manager:** Homebrew
- **Version:** 2.11
- **Source summary:** XSL-FO print formatter for making PDF or PS documents
- **Homepage:** <https://xmlgraphics.apache.org/fop/index.html>
- **Last updated:** 2026-06-22T14:03:21-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- fop (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.11
## Project history and usage

Apache FOP, the Formatting Objects Processor, is an Apache XML Graphics project for rendering XSL formatting objects into paged output. Its primary output target is PDF, with official documentation also listing formats such as PostScript, PCL, AFP, XML area trees, print, AWT, PNG, RTF, and TXT.

### Project history

FOP has a long Apache history as a Java implementation of XSL-FO processing. The current project site frames it as both a print formatter driven by XSL-FO and an output-independent formatter that reads an FO tree and lays out pages before rendering.

The public news archive shows the older 0.20.x line in 2003, the 0.9x rewrite era in the mid-2000s, a production-grade 1.0 release in 2010, and the 2.x series beginning with FOP 2.0 in 2015.

### Adoption history

FOP became the default open-source command-line answer for XML-to-PDF pipelines in Java and Ant-era publishing workflows because XSL-FO is XML and can be generated from semantic XML using XSLT. The Apache site explicitly documents command-line running, embedding, servlet use, an Ant task, configuration, and compliance.

### How it is used

Typical usage is to convert XML-derived XSL-FO into PDF or another supported output format. The configuration guide documents fop.xconf as an XML configuration file, with a sample at {fop-dir}/conf/fop.xconf that users copy and edit before telling FOP where to find it.

### Why package nerds care

Package maintainers care about FOP because it is a Java CLI with a broad documentation surface, examples, fonts and configuration, and historical compatibility concerns across the 0.20.5, 1.x, and 2.x configuration formats. It is also the canonical Apache implementation many build systems reach for when they need deterministic PDF generation from XML.

### Timeline

- 2003: Apache FOP 0.20.5 released.
- 2008: Apache FOP 0.95 released as a production-grade release of the new codebase.
- 2010: Apache FOP 1.0 released as a production-grade release.
- 2015: Apache FOP 2.0 released.
- 2025: Apache FOP 2.11 released.

### Related projects

- FOP is part of Apache XML Graphics. The site navigation and release news also point to FOP-PDF-Images, Apache Batik, XSL-FO, and the broader Apache XML Graphics documentation and wiki ecosystem.

### Sources

- <https://xmlgraphics.apache.org/fop/dev/index.html>
- <https://xmlgraphics.apache.org/fop/index.html>
- <https://xmlgraphics.apache.org/fop/news.html>
- <https://xmlgraphics.apache.org/fop/trunk/configuration.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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: <fop-dir>/conf/fop.xconf
## Other Package-Manager Records

- Debian apt - fop - 1:2.10+dfsg-2: normalized package name match | Debian stable package indexes: fop from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XML formatter driven by XSL Formatting Objects (XSL-FO.) - app | https://xmlgraphics.apache.org/fop/
- Debian apt - fop-doc - 1:2.10+dfsg-2: normalized package name match | Debian stable package indexes: fop-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XML formatter driven by XSL Formatting Objects (doc) - doc | https://xmlgraphics.apache.org/fop/
- Debian apt - libfop-java - 1:2.10+dfsg-2: normalized package name match | Debian stable package indexes: libfop-java from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XML formatter driven by XSL Formatting Objects (XSL-FO.) - libs | https://xmlgraphics.apache.org/fop/
- Nix - fop: normalized package name match | nixpkgs package indexes: pkgs/by-name/fo/fop/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fop - 1:2.8-3: normalized package name match | Ubuntu 24.04 LTS package indexes: fop from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XML formatter driven by XSL Formatting Objects (XSL-FO.) - app | https://xmlgraphics.apache.org/fop/
- Ubuntu apt - fop-doc - 1:2.8-3: normalized package name match | Ubuntu 24.04 LTS package indexes: fop-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XML formatter driven by XSL Formatting Objects (doc) - doc | https://xmlgraphics.apache.org/fop/
- Ubuntu apt - libfop-java - 1:2.8-3: normalized package name match | Ubuntu 24.04 LTS package indexes: libfop-java from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | XML formatter driven by XSL Formatting Objects (XSL-FO.) - libs | https://xmlgraphics.apache.org/fop/
- dnf - fop - 2.11-3.fc45: normalized package name match | Fedora Rawhide package metadata: fop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | XSL-driven print formatter | https://xmlgraphics.apache.org/fop
- dnf - fop-javadoc - 2.11-3.fc45: normalized package name match | Fedora Rawhide package metadata: fop-javadoc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Javadoc for fop | https://xmlgraphics.apache.org/fop
- pacman - fop - 2.11-3: normalized package name match | Arch Linux sync databases: fop from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | XSL-FO to PDF formatter | https://xmlgraphics.apache.org/fop/
- zypper - xmlgraphics-fop - 2.10-3.6: normalized package name match | openSUSE Tumbleweed package metadata: xmlgraphics-fop from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Formatter for Printing XSLT Processed XML Files | https://xmlgraphics.apache.org/fop/
- MacPorts - fop: normalized package name match | MacPorts ports tree: textproc/fop/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/fop.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fop.yml)


## Sources

- 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
