macOS
brew install libxml2local Homebrew formula metadata
sudo port install libxml2MacPorts ports tree · textproc/libxml2/Portfile · 来源: api.github.com
安装
brew install libxml2local Homebrew formula metadata
sudo port install libxml2MacPorts ports tree · textproc/libxml2/Portfile · 来源: api.github.com
sudo apk add libxml2Alpine Linux edge package indexes · libxml2 · 来源: dl-cdn.alpinelinux.org
sudo apt install libxml2Debian stable package indexes · libxml2 · 来源: deb.debian.org
sudo dnf install libxml2Fedora Rawhide package metadata · libxml2 · 来源: dl.fedoraproject.org
sudo pacman -S libxml2Arch Linux sync databases · libxml2 · 来源: geo.mirror.pkgbuild.com
sudo zypper install libxml2-16openSUSE Tumbleweed package metadata · libxml2-16 · 来源: download.opensuse.org
scoop install main/libxml2Scoop official bucket manifest trees · bucket/libxml2.json · 来源: api.github.com
概览
GNOME XML library
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
xml2-config | cli | 全局可执行文件 | |
xmlcatalog | cli | 全局可执行文件 | |
xmllint | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:libxml2 |
|---|---|
| 版本 | 2.15.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libxml2 |
| 主页 | http://xmlsoft.org/ |
| 仓库 | https://gitlab.gnome.org/GNOME/libxml2 |
| 上游文档 | https://gnome.pages.gitlab.gnome.org/libxml2/devhelp |
| 许可证 | MIT |
| 源码归档 | https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz |
| 最后更新 | 2026-06-22T14:05:25-07:00 |
| Pulse | updated |
| 依赖 | readline |
| 构建依赖 | pkgconf |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-utils来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.