# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper, chocolatey 安装 libxslt

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

## 安装

```sh
sudo av install brew:libxslt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libxslt
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libxslt
```

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

### Linux

- apk (92%):

```sh
sudo apk add libxslt
```

  证据: Alpine Linux edge package indexes: libxslt from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libxslt
```

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

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

- pacman (92%):

```sh
sudo pacman -S libxslt
```

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

- Debian apt (92%):

```sh
sudo apt install libxslt1-dev
```

  证据: Debian stable package indexes: libxslt1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libexslt0
```

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

### Windows

- Chocolatey (92%):

```sh
choco install xsltproc
```

  证据: Chocolatey community package catalog: xsltproc from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','wsl-ubuntu-2204'

## 软件包事实

- **软件包键:** brew:libxslt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libxslt>
- **版本:** 1.1.45
- **来源摘要:** C XSLT library for GNOME
- **主页:** <http://xmlsoft.org/XSLT/>
- **上游文档:** <http://xmlsoft.org/XSLT/>
- **许可证:** X11
- **源码归档:** <https://download.gnome.org/sources/libxslt/1.1/libxslt-1.1.45.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- xslt-config (cli)
- xsltproc (cli)
- xslt-config (别名)
- xsltproc (别名)

## 依赖

- libgcrypt
- libgpg-error
- libxml2

## 构建依赖

- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 注意事项: To allow the nokogiri gem to link against this libxslt run: gem install nokogiri -- --with-xslt-dir=$HOMEBREW_PREFIX/opt/libxslt
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

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

libxslt is the GNOME XSLT C library, built on libxml2 and packaged with xsltproc, the small command-line transformer that made XSLT practical in Unix pipelines, documentation builds, and application installers.

### 项目历史

Daniel Veillard wrote libxslt for the GNOME project. The GNOME-hosted reference manual describes it as the XSLT C library developed for GNOME, based on libxml2, and implementing much of EXSLT alongside XSLT processing.

Veillard announced libxslt 1.0.0 on July 10, 2001 as the first stable release of the GNOME XSLT library. The announcement said it implemented the XSLT 1.0 constructs, included common extensions, provided an extension framework, and shipped xsltproc with profiling support.

### 采用历史

The 1.0.0 announcement framed DocBook processing as an early adoption path: GNOME and KDE documentation were named as target users, and KDE, GNOME, AxKit, and other projects were thanked for reuse and patches. That put libxslt directly into the XML documentation toolchain culture of early-2000s free software.

The NEWS file shows the library settling into long-term maintenance after the early GNOME/XML push, with portability work, EXSLT fixes, Windows build support, lxml-facing exported symbols in 2009, and security fixes across later releases.

### 使用方式

Package users usually meet libxslt through xsltproc, build-time documentation generation, language bindings, or applications that need an embeddable C XSLT engine rather than a JVM or browser runtime. Its tight pairing with libxml2 made it a standard dependency for XML-heavy C, Python, and desktop software stacks.

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

libxslt is one of those quiet infrastructure packages that explains why so many old source builds can turn DocBook XML into man pages, HTML, or release documentation. Package nerds care because xsltproc is both a standalone CLI and a build dependency that leaks into dependency graphs far beyond visible XML applications.

### 时间线

- 2001-07-10: Daniel Veillard announced libxslt 1.0.0 as the first stable GNOME XSLT library release.
- 2003-11-04: libxslt 1.1.0 was released, according to the project NEWS file.
- 2009-09-24: libxslt 1.1.26 exported xsltProcessOneNode for lxml.
- 2017-11-02: libxslt 1.1.32 included portability and Windows test work.

### Related projects

- libxml2 is the base XML C library underneath libxslt. EXSLT supplies many of the portable extension functions implemented by libxslt. xsltproc is the command-line face of the library, and DocBook toolchains are one of its historically important consumers.

### 来源

- <https://github.com/GNOME/libxslt/blob/master/NEWS>
- <https://gnome.pages.gitlab.gnome.org/libxslt/devhelp/>
- <https://gnome.pages.gitlab.gnome.org/libxslt/tutorial/libxslttutorial.html>
- <https://groups.google.com/g/mailing.gnome.announce/c/AJwONLlAteQ>


## 安全说明

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:** libxslt
- **Version Scheme:** 0
- **Revision:** 0
- **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 - libxslt1-dev - 1.1.35-1.2+deb13u3: normalized package name match | Debian stable package indexes: libxslt1-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XSLT 1.0 processing library - development kit | https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home
- Debian apt - libxslt1.1 - 1.1.35-1.2+deb13u3: normalized package name match | Debian stable package indexes: libxslt1.1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XSLT 1.0 processing library - runtime library | https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home
- Debian apt - xsltproc - 1.1.35-1.2+deb13u3: normalized package name match | Debian stable package indexes: xsltproc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | XSLT 1.0 command line processor | https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home
- Nix - libxslt: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libxslt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libxslt1-dev - 1.1.39-0exp1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxslt1-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | XSLT 1.0 processing library - development kit | https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home
- Ubuntu apt - libxslt1.1 - 1.1.39-0exp1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxslt1.1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | XSLT 1.0 processing library - runtime library | https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home
- Ubuntu apt - xsltproc - 1.1.39-0exp1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: xsltproc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | XSLT 1.0 command line processor | https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home
- apk - libxslt - 1.1.43-r3: normalized package name match | Alpine Linux edge package indexes: libxslt from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML stylesheet transformation library | http://xmlsoft.org/XSLT/
- apk - libxslt-dev - 1.1.43-r3: normalized package name match | Alpine Linux edge package indexes: libxslt-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML stylesheet transformation library (development files) | http://xmlsoft.org/XSLT/
- apk - libxslt-doc - 1.1.43-r3: normalized package name match | Alpine Linux edge package indexes: libxslt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML stylesheet transformation library (documentation) | http://xmlsoft.org/XSLT/
- apk - libxslt-static - 1.1.43-r3: normalized package name match | Alpine Linux edge package indexes: libxslt-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML stylesheet transformation library (static library) | http://xmlsoft.org/XSLT/
- dnf - libxslt - 1.1.43-9.fc45: normalized package name match | Fedora Rawhide package metadata: libxslt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Library providing the Gnome XSLT engine | https://gitlab.gnome.org/GNOME/libxslt
- dnf - libxslt-devel - 1.1.43-9.fc45: normalized package name match | Fedora Rawhide package metadata: libxslt-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development libraries and header files for libxslt | https://gitlab.gnome.org/GNOME/libxslt
- dnf - python3-libxslt - 1.1.43-9.fc45: normalized package name match | Fedora Rawhide package metadata: python3-libxslt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Python 3 bindings for libxslt | https://gitlab.gnome.org/GNOME/libxslt
- pacman - libxslt - 1.1.45-2: normalized package name match | Arch Linux sync databases: libxslt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | XML stylesheet transformation library | https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home
- zypper - libexslt0 - 1.1.45-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libexslt0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | EXSLT Library | https://gitlab.gnome.org/GNOME/libxslt


## 相关链接

- [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.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [libgpg-error](https://pkg.so/zh-hans/brew/libgpg-error/) - Runtime dependency declared by Homebrew.
- [libgcrypt](https://pkg.so/zh-hans/brew/libgcrypt/) - Runtime dependency declared by Homebrew.
- [libxml2](https://pkg.so/zh-hans/brew/libxml2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [webkitgtk](https://pkg.so/zh-hans/brew/webkitgtk/) - Popular package that depends on this formula.
- [iputils](https://pkg.so/zh-hans/brew/iputils/) - Popular package that depends on this formula.
- [aqbanking](https://pkg.so/zh-hans/brew/aqbanking/) - Popular package that depends on this formula.
- [expat](https://pkg.so/zh-hans/brew/expat/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries, xml.
- [saxon](https://pkg.so/zh-hans/brew/saxon/) - Shares pkgdb curated category or tags: cli, developer-tools, xml, xslt.
- [libslax](https://pkg.so/zh-hans/brew/libslax/) - Shares pkgdb curated category or tags: cli, developer-tools, xml, xslt.
- [libxo](https://pkg.so/zh-hans/brew/libxo/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries, xml.
- [pcre2](https://pkg.so/zh-hans/brew/pcre2/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.
- [ncurses](https://pkg.so/zh-hans/brew/ncurses/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.
- [pango](https://pkg.so/zh-hans/brew/pango/) - Shares pkgdb curated category or tags: cli, developer-tools, gnome, libraries.

## Combined YAML source

View the package source record on GitHub. [combined/libxslt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libxslt.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
