macOS
brew install expatlocal Homebrew formula metadata
sudo port install expatMacPorts ports tree · textproc/expat/Portfile · 来源: api.github.com
安装
brew install expatlocal Homebrew formula metadata
sudo port install expatMacPorts ports tree · textproc/expat/Portfile · 来源: api.github.com
sudo apk add expatAlpine Linux edge package indexes · expat · 来源: dl-cdn.alpinelinux.org
sudo dnf install expatFedora Rawhide package metadata · expat · 来源: dl.fedoraproject.org
nix profile install nixpkgs#expatnixpkgs package indexes · pkgs/by-name/ex/expat/package.nix · 来源: api.github.com
sudo pacman -S expatArch Linux sync databases · expat · 来源: geo.mirror.pkgbuild.com
sudo zypper install expatopenSUSE Tumbleweed package metadata · expat · 来源: download.opensuse.org
概览
XML 1.0 parser
历史
Expat is a fast streaming XML parser library written in C, with xmlwf as its command-line well-formedness checker. It is package-manager-famous because XML parsing became infrastructure, and Expat is small, MIT-licensed, embeddable, and widely shipped.
The official repository describes Expat as a C99 library for parsing XML 1.0, started by James Clark in 1997. Its model is event-oriented: users register handlers before parsing, and those handlers are called as document structures are discovered.
The project site frames Expat around streaming rather than building a full in-memory document tree. That makes it useful for files too large to fit in memory, and for applications where parser performance and flexible callbacks are more important than a high-level DOM interface.
The Expat homepage states that numerous applications, libraries, and hardware use Expat, that bindings and third-party wrappers exist, and that Expat is packaged everywhere. That breadth is the key adoption story: many users never invoke xmlwf directly, but they depend on Expat through another program or language runtime.
The repository README documents common build-system integration, including CMake find_package usage. That is a sign of mature library adoption: Expat is not just an executable in package managers, but a dependency with headers, link targets, and ABI expectations.
Developers use libexpat when they want a C XML parser that calls application-defined handlers for starts, ends, character data, and related XML structures. The included xmlwf executable is used to check whether XML input is well formed.
Because XML parsers sit at input boundaries, Expat's package history is often security-driven. The official GitHub issue tracker includes release coordination that references downstream updates in CPython, Gentoo, Spack, Homebrew, NixOS, MSYS2, and other packaging ecosystems when CVE fixes land.
Expat is a dependency-package archetype: boring when healthy, urgent when vulnerable. It is small enough to be embedded or vendored, but important enough that a security update can ripple through Python, Linux distributions, language package sets, and embedded builds.
The package also demonstrates the difference between library identity and command identity. Homebrew exposes xmlwf as the executable, while the real package value is libexpat and its headers.
安全态势
没有找到 expat 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
xmlwf | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/libexpat/libexpat
安装元数据
| 软件包键 | brew:expat |
|---|---|
| 版本 | 2.8.2 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/expat |
| 主页 | https://libexpat.github.io/ |
| 仓库 | https://github.com/libexpat/libexpat |
| 上游文档 | https://libexpat.github.io/doc |
| 许可证 | MIT |
| 源码归档 | https://github.com/libexpat/libexpat/releases/download/R_2_8_2/expat-2.8.2.tar.xz |
| 最后更新 | 2026-06-25T21:42:09Z |
| Pulse | updated |
| 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 | expat |
| 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 软件包链接分开显示。
expat 2.7.1-2
XML parsing C library - example application
sudo apt install expatlibexpat1 2.7.1-2
XML parsing C library - runtime library
sudo apt install libexpat1libexpat1-dev 2.7.1-2
XML parsing C library - development kit
sudo apt install libexpat1-devexpat
nix profile install nixpkgs#expatexpat 2.6.1-2build1
XML parsing C library - example application
sudo apt install expatlibexpat1 2.6.1-2build1
XML parsing C library - runtime library
sudo apt install libexpat1libexpat1-dev 2.6.1-2build1
XML parsing C library - development kit
sudo apt install libexpat1-devexpat 2.8.1-r0
XML Parser library written in C
sudo apk add expatexpat-dev 2.8.1-r0
XML Parser library written in C (development files)
sudo apk add expat-devexpat-doc 2.8.1-r0
XML Parser library written in C (documentation)
sudo apk add expat-docexpat-static 2.8.1-r0
XML Parser library written in C (static library)
sudo apk add expat-staticlibexpat 2.8.1-r0
XML Parser library written in C (libraries)
sudo apk add libexpatexpat 2.8.1-1.fc45
An XML parser library
sudo dnf install expatexpat-devel 2.8.1-1.fc45
Libraries and header files to develop applications using expat
sudo dnf install expat-develexpat-static 2.8.1-1.fc45
expat XML parser static library
sudo dnf install expat-staticexpat 2.8.1-1
An XML parser library
sudo pacman -S expat来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.