# Installer libxml2 avec Homebrew, apk, apt, dnf, MacPorts, pacman, scoop, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de libxml2 pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:libxml2
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install libxml2
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libxml2
```

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

### Linux

- apk (92%):

```sh
sudo apk add libxml2
```

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

- Debian apt (92%):

```sh
sudo apt install libxml2
```

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

- dnf (92%):

```sh
sudo dnf install libxml2
```

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

- pacman (92%):

```sh
sudo pacman -S libxml2
```

  Preuve: Arch Linux sync databases: libxml2 from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libxml2-16
```

  Preuve: openSUSE Tumbleweed package metadata: libxml2-16 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/libxml2
```

  Preuve: Scoop official bucket manifest trees: bucket/libxml2.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:libxml2
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/libxml2>
- **Version:** 2.15.3
- **Résumé source:** GNOME XML library
- **Page d'accueil:** <http://xmlsoft.org/>
- **Docs amont:** <http://xmlsoft.org/>
- **Licence:** MIT
- **Archive source:** <https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz>
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- xml2-config (cli)
- xmlcatalog (cli)
- xmllint (cli)
- xml2-config (alias)
- xmlcatalog (alias)
- xmllint (alias)

## Dépendances

- readline

## Dépendances de compilation

- pkgconf

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 2.15.3
- données locales: OK
- dépôt amont: http://xmlsoft.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Historique du projet et usages

libxml2 is the GNOME XML C parser and toolkit, but its reach extends far beyond GNOME. It became one of the default XML implementations for Unix-like systems because it combines parser, tree API, validation support, HTML parsing, catalog handling, command-line tools, and language bindings in a portable C library.

### Historique du projet

The libxml2 documentation describes the project as an XML toolkit implemented in C and originally developed for the GNOME Project. The historical xmlsoft.org documentation credited Daniel Veillard as the maintainer and pointed users to GNOME CVS modules for libxml2 and libxslt.

GNOME's release archive contains the libxml2 2.0.0 source tarball dated 2000-04-12. The project's public documentation records the GNOME GitLab repository and the GNOME download archive as official locations, showing the migration from the older xmlsoft/GNOME CVS era to GNOME-hosted GitLab and generated API documentation.

### Historique d'adoption

libxml2 was adopted widely because XML was a core interchange format for desktop files, configuration formats, documentation systems, web service stacks, office formats, and build tooling. Its permissive MIT license, C API, portability, and bindings made it attractive to distributions and application runtimes.

The command-line tools xmllint and xmlcatalog gave the library a direct package-manager presence. Even users who never linked libxml2 could install the package to validate XML, inspect documents, test XPath expressions, or manage XML catalogs in build and documentation pipelines.

### Modes d'utilisation

Common package usage includes linking against libxml2 for parsing and validation, using xmllint in scripts and tests, and using xmlcatalog where systems rely on XML catalog resolution. It is also a dependency layer for related XML software such as libxslt and xmlsec.

### Pourquoi les passionnés de paquets s'y intéressent

libxml2 is package-nerd infrastructure: small enough to be considered a library dependency, but important enough that parser behavior, security fixes, and ABI expectations affect browsers, language ecosystems, desktop software, and distro bootstrap graphs. Its presence in package managers is a sign that XML support is part of the Unix substrate rather than a niche add-on.

### Chronologie

- 2000: GNOME's source archive lists libxml2 2.0.0 dated 2000-04-12.
- 2002: Historical xmlsoft documentation points to GNOME CVS modules for libxml2 and libxslt.
- 2022: GNOME-hosted API documentation records the project repository on GNOME GitLab.
- 2026: GNOME's source archive lists maintained 2.x release directories through the 2.15 series.

### Related projects

- libxslt builds on the same GNOME XML stack for XSLT processing. XML Security Library uses libxml2 as its XML foundation. Higher-level bindings and wrappers expose libxml2 to languages such as Python, Perl, Ruby, PHP, and others.

### Sources

- <https://download.gnome.org/sources/libxml2/>
- <https://download.gnome.org/sources/libxml2/2.0/>
- <https://gnome.pages.gitlab.gnome.org/libxml2/>
- <https://web.mit.edu/ghudson/dev/nokrb/third/libxml2/doc/downloads.html>


## Notes de sécurité

library-like package without higher-risk signals.

- **Risque Geiger:** vert / faible
- library-like package without higher-risk signals

## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libxml2
- **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

## Autres enregistrements de gestionnaires de paquets

- Debian apt - libxml2 - 2.12.7+dfsg+really2.9.14-2.1+deb13u3: normalized package name match | Debian stable package indexes: libxml2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME XML library | http://xmlsoft.org
- Debian apt - libxml2-dev - 2.12.7+dfsg+really2.9.14-2.1+deb13u3: normalized package name match | Debian stable package indexes: libxml2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME XML library - development files | http://xmlsoft.org
- Debian apt - libxml2-doc - 2.12.7+dfsg+really2.9.14-2.1+deb13u3: normalized package name match | Debian stable package indexes: libxml2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME XML library - documentation | http://xmlsoft.org
- Debian apt - libxml2-utils - 2.12.7+dfsg+really2.9.14-2.1+deb13u3: normalized package name match | Debian stable package indexes: libxml2-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME XML library - utilities | http://xmlsoft.org
- Debian apt - python3-libxml2 - 2.12.7+dfsg+really2.9.14-2.1+deb13u3: normalized package name match | Debian stable package indexes: python3-libxml2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME XML library - Python3 bindings | http://xmlsoft.org
- Ubuntu apt - libxml2 - 2.9.14+dfsg-1.3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libxml2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNOME XML library | http://xmlsoft.org
- Ubuntu apt - libxml2-dev - 2.9.14+dfsg-1.3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libxml2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNOME XML library - development files | http://xmlsoft.org
- Ubuntu apt - libxml2-doc - 2.9.14+dfsg-1.3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libxml2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNOME XML library - documentation | http://xmlsoft.org
- Ubuntu apt - libxml2-utils - 2.9.14+dfsg-1.3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: libxml2-utils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNOME XML library - utilities | http://xmlsoft.org
- Ubuntu apt - python3-libxml2 - 2.9.14+dfsg-1.3ubuntu3: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-libxml2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNOME XML library - Python3 bindings | http://xmlsoft.org
- apk - libxml2 - 2.13.9-r2: normalized package name match | Alpine Linux edge package indexes: libxml2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML parsing library, version 2 | https://gitlab.gnome.org/GNOME/libxml2
- apk - libxml2-dbg - 2.13.9-r2: normalized package name match | Alpine Linux edge package indexes: libxml2-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML parsing library, version 2 (debug symbols) | https://gitlab.gnome.org/GNOME/libxml2
- apk - libxml2-dev - 2.13.9-r2: normalized package name match | Alpine Linux edge package indexes: libxml2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML parsing library, version 2 (development files) | https://gitlab.gnome.org/GNOME/libxml2
- apk - libxml2-doc - 2.13.9-r2: normalized package name match | Alpine Linux edge package indexes: libxml2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML parsing library, version 2 (documentation) | https://gitlab.gnome.org/GNOME/libxml2
- apk - libxml2-static - 2.13.9-r2: normalized package name match | Alpine Linux edge package indexes: libxml2-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML parsing library, version 2 (static library) | https://gitlab.gnome.org/GNOME/libxml2
- apk - libxml2-utils - 2.13.9-r2: normalized package name match | Alpine Linux edge package indexes: libxml2-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | XML utilities | https://gitlab.gnome.org/GNOME/libxml2


## Liens liés

- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/fr/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pkgconf](https://pkg.so/fr/brew/pkgconf/) - Build dependency declared by Homebrew.
- [gdal](https://pkg.so/fr/brew/gdal/) - Popular package that depends on this formula.
- [libxslt](https://pkg.so/fr/brew/libxslt/) - Popular package that depends on this formula.
- [wayland](https://pkg.so/fr/brew/wayland/) - Popular package that depends on this formula.
- [openslide](https://pkg.so/fr/brew/openslide/) - Popular package that depends on this formula.
- [postgis](https://pkg.so/fr/brew/postgis/) - Popular package that depends on this formula.
- [libxmlsec1](https://pkg.so/fr/brew/libxmlsec1/) - Popular package that depends on this formula.
- [streamlink](https://pkg.so/fr/brew/streamlink/) - Popular package that depends on this formula.
- [expat](https://pkg.so/fr/brew/expat/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries, parser.
- [libxo](https://pkg.so/fr/brew/libxo/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, html, libraries.
- [libwbxml](https://pkg.so/fr/brew/libwbxml/) - Shares pkgdb curated category or tags: cli, developer-tools, parser, xml.
- [pcre2](https://pkg.so/fr/brew/pcre2/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.
- [ncurses](https://pkg.so/fr/brew/ncurses/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.
- [pango](https://pkg.so/fr/brew/pango/) - Shares pkgdb curated category or tags: cli, developer-tools, gnome, libraries.
- [libevent](https://pkg.so/fr/brew/libevent/) - Shares pkgdb curated category or tags: c-library, cli, developer-tools, libraries.

## Combined YAML source

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


## Sources

- 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
