Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, pacman, scoop, zypper 安装 libxml2

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libxml2

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install libxml2

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add libxml2

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

Debian apt已验证 · 92%
sudo apt install libxml2

Debian stable package indexes · libxml2 · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install libxml2

Fedora Rawhide package metadata · libxml2 · 来源: dl.fedoraproject.org

Arch Linux pacman已验证 · 92%
sudo pacman -S libxml2

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

openSUSE zypper已验证 · 92%
sudo zypper install libxml2-16

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

Windows

Scoop已验证 · 92%
scoop install main/libxml2

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

概览

软件包摘要

GNOME XML library

命令和别名

  • xml2-config
  • xmlcatalog
  • xmllint

历史

项目历史与用法

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.

时间线

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

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
xml2-configcli全局可执行文件
xmlcatalogcli全局可执行文件
xmllintcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2.15.3
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

http://xmlsoft.org/

  • 信息Release/tag comparison is only available for GitHub repositories.http://xmlsoft.org/none 置信度

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖readline
构建依赖pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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