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

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

## 安装

```sh
sudo av install brew:libgxps
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libgxps
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install libgxps
```

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

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

- pacman (92%):

```sh
sudo pacman -S libgxps
```

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

- Debian apt (92%):

```sh
sudo apt install gir1.2-gxps-0.1
```

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

- zypper (92%):

```sh
sudo zypper install libgxps-devel
```

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

## 软件包事实

- **软件包键:** brew:libgxps
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libgxps>
- **版本:** 0.3.2
- **来源摘要:** GObject based library for handling and rendering XPS documents
- **主页:** <https://wiki.gnome.org/Projects/libgxps>
- **上游文档:** <https://wiki.gnome.org/Projects/libgxps>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://download.gnome.org/sources/libgxps/0.3/libgxps-0.3.2.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- xpstojpeg (cli)
- xpstopdf (cli)
- xpstopng (cli)
- xpstops (cli)
- xpstosvg (cli)
- xpstojpeg (别名)
- xpstopdf (别名)
- xpstopng (别名)
- xpstops (别名)
- xpstosvg (别名)

## 依赖

- cairo
- freetype
- gettext
- glib
- jpeg-turbo
- libarchive
- libpng
- libtiff
- little-cms2

## 构建依赖

- gobject-introspection
- meson
- ninja
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 注意事项: `ghostscript` now installs a conflicting libgxps.dylib. You may need to `brew unlink libgxps` if you have both installed.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

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

libgxps is a GNOME C library and toolset for reading, rendering, and converting XPS and OpenXPS documents. It fills a practical desktop gap: support for Microsoft's XML Paper Specification in GTK/GNOME document workflows without treating XPS as a first-class platform format.

### 项目历史

The GNOME wiki describes libgxps as a GObject-based library for handling and rendering XPS documents, built on GLib, GObject, GIO, cairo, libarchive, and FreeType, with optional image and color-management libraries. The same page frames XPS/OpenXPS as an XML-based electronic-paper format originally developed by Microsoft and later standardized as an open document format.

The NEWS file records libgxps 0.1.0 on October 12, 2011 as the first public release. Version 0.2.0 followed on November 19, 2011 with API changes and documentation work, while version 0.3.0 on August 8, 2017 added OpenXPS fixed-representation schema support and switched the build system to Meson.

### 采用历史

libgxps was adopted as a distribution library because document viewers and converters need occasional XPS support even on systems where XPS is not a native document culture. The GNOME wiki listed Evince as a project using libgxps and linked to packages for Arch, Debian, Fedora, and Ubuntu; the batch input also shows Homebrew, Nix, pacman, and openSUSE package coverage.

### 使用方式

The library is used by applications that need to inspect or render XPS documents. Its command-line tools, including xpstopdf, xpstopng, xpstojpeg, xpstops, and xpstosvg, make it useful in scripts that convert XPS files into more common Unix document and image formats.

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

libgxps is a format-bridge package: small enough to be invisible most days, but important when a user receives an XPS file and expects the desktop stack to do something sensible. It also shows the GNOME pattern of wrapping document parsing, cairo rendering, and conversion utilities around a specific file format.

### 时间线

- 2011-10-12: libgxps 0.1.0 was the first public release.
- 2011-11-19: libgxps 0.2.0 added API and documentation changes.
- 2017-08-08: libgxps 0.3.0 added OpenXPS fixed-representation schema support and switched to Meson.
- 2021-02-16: libgxps 0.3.2 added Windows WIC support for WDP images and conversion crash fixes.

### Related projects

- Evince is listed by GNOME as a project using libgxps.
- cairo, libarchive, FreeType, GLib, GObject, and GIO are core dependencies named by the GNOME wiki.
- XPS and OpenXPS are the document formats handled by libgxps.

### 来源

- <https://formulae.brew.sh/formula/libgxps>
- <https://gitlab.gnome.org/GNOME/libgxps>
- <https://gitlab.gnome.org/GNOME/libgxps/-/raw/master/NEWS>
- <https://gitlab.gnome.org/GNOME/libgxps/-/raw/master/README>
- <https://wiki.gnome.org/Projects/libgxps>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - gir1.2-gxps-0.1 - 0.3.2-4+b2: normalized package name match | Debian stable package indexes: gir1.2-gxps-0.1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GObject introspection data for the gxps library | https://wiki.gnome.org/libgxps
- Debian apt - libgxps-dev - 0.3.2-4+b2: normalized package name match | Debian stable package indexes: libgxps-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | handling and rendering XPS documents (development files) | https://wiki.gnome.org/libgxps
- Debian apt - libgxps-doc - 0.3.2-4: normalized package name match | Debian stable package indexes: libgxps-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for handling and rendering XPS documents (documentation) | https://wiki.gnome.org/libgxps
- Debian apt - libgxps-utils - 0.3.2-4+b2: normalized package name match | Debian stable package indexes: libgxps-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | handling and rendering XPS documents (utilities) | https://wiki.gnome.org/libgxps
- Debian apt - libgxps2t64 - 0.3.2-4+b2: normalized package name match | Debian stable package indexes: libgxps2t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | handling and rendering XPS documents (library) | https://wiki.gnome.org/libgxps
- Nix - libgxps: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libgxps/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-gxps-0.1 - 0.3.2-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-gxps-0.1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GObject introspection data for the gxps library | https://wiki.gnome.org/libgxps
- Ubuntu apt - libgxps-dev - 0.3.2-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgxps-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | handling and rendering XPS documents (development files) | https://wiki.gnome.org/libgxps
- Ubuntu apt - libgxps-doc - 0.3.2-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgxps-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for handling and rendering XPS documents (documentation) | https://wiki.gnome.org/libgxps
- Ubuntu apt - libgxps-utils - 0.3.2-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgxps-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | handling and rendering XPS documents (utilities) | https://wiki.gnome.org/libgxps
- Ubuntu apt - libgxps2t64 - 0.3.2-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libgxps2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | handling and rendering XPS documents (library) | https://wiki.gnome.org/libgxps
- dnf - libgxps - 0.3.2-13.fc45: normalized package name match | Fedora Rawhide package metadata: libgxps from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | GObject based library for handling and rendering XPS documents | https://wiki.gnome.org/Projects/libgxps
- dnf - libgxps-devel - 0.3.2-13.fc45: normalized package name match | Fedora Rawhide package metadata: libgxps-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for libgxps | https://wiki.gnome.org/Projects/libgxps
- dnf - libgxps-tools - 0.3.2-13.fc45: normalized package name match | Fedora Rawhide package metadata: libgxps-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Command-line utility programs for manipulating XPS files | https://wiki.gnome.org/Projects/libgxps
- pacman - libgxps - 0.3.2-5: normalized package name match | Arch Linux sync databases: libgxps from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | XPS Documents library | https://wiki.gnome.org/Projects/libgxps
- zypper - libgxps-devel - 0.3.2+5-1.10: normalized package name match | openSUSE Tumbleweed package metadata: libgxps-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for libgxps, a XPS document render library | https://wiki.gnome.org/Projects/libgxps


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing 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.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://pkg.so/zh-hans/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libtiff](https://pkg.so/zh-hans/brew/libtiff/) - Runtime dependency declared by Homebrew.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Runtime dependency declared by Homebrew.
- [little-cms2](https://pkg.so/zh-hans/brew/little-cms2/) - Runtime dependency declared by Homebrew.
- [cairo](https://pkg.so/zh-hans/brew/cairo/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/zh-hans/brew/meson/) - Build dependency declared by Homebrew.
- [gobject-introspection](https://pkg.so/zh-hans/brew/gobject-introspection/) - Build dependency declared by Homebrew.
- [evince](https://pkg.so/zh-hans/brew/evince/) - Popular package that depends on this formula.
- [plutobook](https://pkg.so/zh-hans/brew/plutobook/) - Shares pkgdb curated category or tags: cli, document-rendering, media.
- [librsvg](https://pkg.so/zh-hans/brew/librsvg/) - Shares pkgdb curated category or tags: cairo, cli, gnome, media.
- [gdk-pixbuf](https://pkg.so/zh-hans/brew/gdk-pixbuf/) - Shares pkgdb curated category or tags: cli, gnome, media.
- [mupdf](https://pkg.so/zh-hans/brew/mupdf/) - Shares pkgdb curated category or tags: cli, media, xps.
- [pdf2svg](https://pkg.so/zh-hans/brew/pdf2svg/) - Shares pkgdb curated category or tags: cairo, cli, media.
- [easy-tag](https://pkg.so/zh-hans/brew/easy-tag/) - Shares pkgdb curated category or tags: cli, gnome, media.
- [svg2pdf](https://pkg.so/zh-hans/brew/svg2pdf/) - Shares pkgdb curated category or tags: cairo, cli, media.
- [libart](https://pkg.so/zh-hans/brew/libart/) - Shares pkgdb curated category or tags: cli, gnome, media.
- [poppler](https://pkg.so/zh-hans/brew/poppler/) - Local package facts share a topical domain. Shared terms: based, cairo, cli, cms2, freetype.
- [efl](https://pkg.so/zh-hans/brew/efl/) - Local package facts share a topical domain. Shared terms: cairo, cli, cms2, freetype, gettext.

## Combined YAML source

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


## 来源

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