Automic VaultAutomic Vault

brew

Install libxml2 with Homebrew, apk, apt, dnf, MacPorts, pacman, scoop, zypper

GNOME XML library. Version 2.15.3 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libxml2

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install libxml2

MacPorts ports tree · textproc/libxml2/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add libxml2

Alpine Linux edge package indexes · libxml2 · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libxml2

Debian stable package indexes · libxml2 · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install libxml2

Fedora Rawhide package metadata · libxml2 · source: dl.fedoraproject.org

Arch Linux pacmanverified · 92%
sudo pacman -S libxml2

Arch Linux sync databases · libxml2 · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install libxml2-16

openSUSE Tumbleweed package metadata · libxml2-16 · source: download.opensuse.org

Windows

Scoopverified · 92%
scoop install main/libxml2

Scoop official bucket manifest trees · bucket/libxml2.json · source: api.github.com

overview

Package summary

GNOME XML library

Commands and aliases

  • xml2-config
  • xmlcatalog
  • xmllint

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
xml2-configcliglobal executable
xmlcatalogcliglobal executable
xmllintcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version2.15.3
manager updated2026-06-22
local dataok
upstreamnot checked
latest detectednot detected

http://xmlsoft.org/

  • infoRelease/tag comparison is only available for GitHub repositories.http://xmlsoft.org/none confidence

install metadata

Package metadata

Package keybrew:libxml2
Version2.15.3
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/libxml2
Homepagehttp://xmlsoft.org/
Repositoryhttps://gitlab.gnome.org/GNOME/libxml2
Upstream docshttps://gnome.pages.gitlab.gnome.org/libxml2/devhelp
LicenseMIT
Source archivehttps://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz
Last updated2026-06-22T14:05:25-07:00
Pulseupdated
Dependenciesreadline
Build dependenciespkgconf
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibxml2
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libxml2 2.12.7+dfsg+really2.9.14-2.1+deb13u2

GNOME XML library

http://xmlsoft.org

sudo apt install libxml2
  • Section: libs
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Libxml2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libxml2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libxml2-dev 2.12.7+dfsg+really2.9.14-2.1+deb13u2

GNOME XML library - development files

http://xmlsoft.org

sudo apt install libxml2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libxml2
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Libxml2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libxml2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libxml2-doc 2.12.7+dfsg+really2.9.14-2.1+deb13u2

GNOME XML library - documentation

http://xmlsoft.org

sudo apt install libxml2-doc
  • Section: doc
  • Architecture: all
  • Source Package: libxml2
  • 1 optional deps
  • normalized package name match
  • Matched by: Libxml2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libxml2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libxml2-utils 2.12.7+dfsg+really2.9.14-2.1+deb13u2

GNOME XML library - utilities

http://xmlsoft.org

sudo apt install libxml2-utils
  • Section: text
  • Architecture: amd64
  • Source Package: libxml2
  • 4 dependencies
  • normalized package name match
  • Matched by: Libxml2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libxml2-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-libxml2 2.12.7+dfsg+really2.9.14-2.1+deb13u2

GNOME XML library - Python3 bindings

http://xmlsoft.org

sudo apt install python3-libxml2
  • Section: python
  • Architecture: amd64
  • Source Package: libxml2
  • 3 dependencies
  • normalized package name match
  • Matched by: Libxml2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-libxml2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

libxml2 2.9.14+dfsg-1.3ubuntu3

GNOME XML library

http://xmlsoft.org

sudo apt install libxml2
  • Section: libs
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Libxml2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libxml2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libxml2-dev 2.9.14+dfsg-1.3ubuntu3

GNOME XML library - development files

http://xmlsoft.org

sudo apt install libxml2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libxml2
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Libxml2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libxml2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libxml2-doc 2.9.14+dfsg-1.3ubuntu3

GNOME XML library - documentation

http://xmlsoft.org

sudo apt install libxml2-doc
  • Section: doc
  • Architecture: all
  • Source Package: libxml2
  • 1 optional deps
  • normalized package name match
  • Matched by: Libxml2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libxml2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libxml2-utils 2.9.14+dfsg-1.3ubuntu3

GNOME XML library - utilities

http://xmlsoft.org

sudo apt install libxml2-utils
  • Section: text
  • Architecture: amd64
  • Source Package: libxml2
  • 2 dependencies
  • normalized package name match
  • Matched by: Libxml2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libxml2-utils from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

python3-libxml2 2.9.14+dfsg-1.3ubuntu3

GNOME XML library - Python3 bindings

http://xmlsoft.org

sudo apt install python3-libxml2
  • Section: universe/python
  • Architecture: amd64
  • Source Package: libxml2
  • 3 dependencies
  • normalized package name match
  • Matched by: Libxml2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-libxml2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

libxml2 2.13.9-r2

XML parsing library, version 2

https://gitlab.gnome.org/GNOME/libxml2

sudo apk add libxml2
  • License: MIT
  • Architecture: x86_64
  • Source Package: libxml2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libxml2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libxml2 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libxml2-dbg 2.13.9-r2

XML parsing library, version 2 (debug symbols)

https://gitlab.gnome.org/GNOME/libxml2

sudo apk add libxml2-dbg
  • License: MIT
  • Architecture: x86_64
  • Source Package: libxml2
  • 1 dependencies
  • normalized package name match
  • Matched by: Libxml2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libxml2-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libxml2-dev 2.13.9-r2

XML parsing library, version 2 (development files)

https://gitlab.gnome.org/GNOME/libxml2

sudo apk add libxml2-dev
  • License: MIT
  • Architecture: x86_64
  • Source Package: libxml2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libxml2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libxml2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libxml2-doc 2.13.9-r2

XML parsing library, version 2 (documentation)

https://gitlab.gnome.org/GNOME/libxml2

sudo apk add libxml2-doc
  • License: MIT
  • Architecture: x86_64
  • Source Package: libxml2
  • normalized package name match
  • Matched by: Libxml2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libxml2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libxml2-static 2.13.9-r2

XML parsing library, version 2 (static library)

https://gitlab.gnome.org/GNOME/libxml2

sudo apk add libxml2-static
  • License: MIT
  • Architecture: x86_64
  • Source Package: libxml2
  • 1 dependencies
  • normalized package name match
  • Matched by: Libxml2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libxml2-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libxml2-utils 2.13.9-r2

XML utilities

https://gitlab.gnome.org/GNOME/libxml2

sudo apk add libxml2-utils
  • License: MIT
  • Architecture: x86_64
  • Source Package: libxml2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libxml2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libxml2-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment