# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.3.2
- **来源摘要:** GObject based library for handling and rendering XPS documents
- **主页:** <https://wiki.gnome.org/Projects/libgxps>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
