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

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fop
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fop
```

  证据: 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
```

  证据: 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
```

  证据: Fedora Rawhide package metadata: fop from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#fop
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:fop
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fop>
- **版本:** 2.11
- **来源摘要:** XSL-FO print formatter for making PDF or PS documents
- **主页:** <https://xmlgraphics.apache.org/fop/index.html>
- **上游文档:** <https://xmlgraphics.apache.org/fop/index.html>
- **许可证:** Apache-2.0
- **源码归档:** <https://www.apache.org/dyn/closer.lua?path=xmlgraphics/fop/binaries/fop-2.11-bin.tar.gz>
- **最后更新:** 2026-06-22T14:03:21-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fop (cli)
- fop (别名)

## 依赖

- openjdk

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.11
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://xmlgraphics.apache.org/fop/index.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

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: <fop-dir>/conf/fop.xconf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fop
- **Aliases:** apache-fop
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [openjdk](https://pkg.so/zh-hans/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [typst](https://pkg.so/zh-hans/brew/typst/) - Shares pkgdb curated category or tags: cli, documents, pdf, productivity.
- [yamlresume](https://pkg.so/zh-hans/brew/yamlresume/) - Shares pkgdb curated category or tags: cli, documents, pdf, productivity.
- [briss](https://pkg.so/zh-hans/brew/briss/) - Shares pkgdb curated category or tags: cli, java, pdf, productivity.
- [jpdfbookmarks](https://pkg.so/zh-hans/brew/jpdfbookmarks/) - Shares pkgdb curated category or tags: cli, java, pdf, productivity.
- [marp-cli](https://pkg.so/zh-hans/brew/marp-cli/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [diff-pdf](https://pkg.so/zh-hans/brew/diff-pdf/) - Shares pkgdb curated category or tags: cli, documents, pdf, productivity.
- [evince](https://pkg.so/zh-hans/brew/evince/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [xpdf](https://pkg.so/zh-hans/brew/xpdf/) - Shares pkgdb curated category or tags: cli, pdf, productivity.
- [nuxeo](https://pkg.so/zh-hans/brew/nuxeo/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, java, openjdk, productivity.

## Combined YAML source

View the package source record on GitHub. [combined/fop.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fop.yml)


## 来源

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