macOS
brew install libxml2local Homebrew formula metadata
sudo port install libxml2MacPorts ports tree · textproc/libxml2/Portfile · source: api.github.com
brew
GNOME XML library. Version 2.15.3 via Homebrew; verified 2026-06-22.
install
brew install libxml2local Homebrew formula metadata
sudo port install libxml2MacPorts ports tree · textproc/libxml2/Portfile · source: api.github.com
sudo apk add libxml2Alpine Linux edge package indexes · libxml2 · source: dl-cdn.alpinelinux.org
sudo apt install libxml2Debian stable package indexes · libxml2 · source: deb.debian.org
sudo dnf install libxml2Fedora Rawhide package metadata · libxml2 · source: dl.fedoraproject.org
sudo pacman -S libxml2Arch Linux sync databases · libxml2 · source: geo.mirror.pkgbuild.com
sudo zypper install libxml2-16openSUSE Tumbleweed package metadata · libxml2-16 · source: download.opensuse.org
scoop install main/libxml2Scoop official bucket manifest trees · bucket/libxml2.json · source: api.github.com
overview
GNOME XML library
history
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.
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.
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.
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.
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.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
xml2-config | cli | global executable | |
xmlcatalog | cli | global executable | |
xmllint | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:libxml2 |
|---|---|
| Version | 2.15.3 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libxml2 |
| Homepage | http://xmlsoft.org/ |
| Repository | https://gitlab.gnome.org/GNOME/libxml2 |
| Upstream docs | https://gnome.pages.gitlab.gnome.org/libxml2/devhelp |
| License | MIT |
| Source archive | https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz |
| Last updated | 2026-06-22T14:05:25-07:00 |
| Pulse | updated |
| Dependencies | readline |
| Build dependencies | pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libxml2 2.12.7+dfsg+really2.9.14-2.1+deb13u2
GNOME XML library
sudo apt install libxml2libxml2-dev 2.12.7+dfsg+really2.9.14-2.1+deb13u2
GNOME XML library - development files
sudo apt install libxml2-devlibxml2-doc 2.12.7+dfsg+really2.9.14-2.1+deb13u2
GNOME XML library - documentation
sudo apt install libxml2-doclibxml2-utils 2.12.7+dfsg+really2.9.14-2.1+deb13u2
GNOME XML library - utilities
sudo apt install libxml2-utilspython3-libxml2 2.12.7+dfsg+really2.9.14-2.1+deb13u2
GNOME XML library - Python3 bindings
sudo apt install python3-libxml2libxml2 2.9.14+dfsg-1.3ubuntu3
GNOME XML library
sudo apt install libxml2libxml2-dev 2.9.14+dfsg-1.3ubuntu3
GNOME XML library - development files
sudo apt install libxml2-devlibxml2-doc 2.9.14+dfsg-1.3ubuntu3
GNOME XML library - documentation
sudo apt install libxml2-doclibxml2-utils 2.9.14+dfsg-1.3ubuntu3
GNOME XML library - utilities
sudo apt install libxml2-utilspython3-libxml2 2.9.14+dfsg-1.3ubuntu3
GNOME XML library - Python3 bindings
sudo apt install python3-libxml2libxml2 2.13.9-r2
XML parsing library, version 2
https://gitlab.gnome.org/GNOME/libxml2
sudo apk add libxml2libxml2-dbg 2.13.9-r2
XML parsing library, version 2 (debug symbols)
https://gitlab.gnome.org/GNOME/libxml2
sudo apk add libxml2-dbglibxml2-dev 2.13.9-r2
XML parsing library, version 2 (development files)
https://gitlab.gnome.org/GNOME/libxml2
sudo apk add libxml2-devlibxml2-doc 2.13.9-r2
XML parsing library, version 2 (documentation)
https://gitlab.gnome.org/GNOME/libxml2
sudo apk add libxml2-doclibxml2-static 2.13.9-r2
XML parsing library, version 2 (static library)
https://gitlab.gnome.org/GNOME/libxml2
sudo apk add libxml2-staticlibxml2-utils 2.13.9-r2
XML utilities
https://gitlab.gnome.org/GNOME/libxml2
sudo apk add libxml2-utilssource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.