# 使用 Homebrew, MacPorts 安装 xml-coreutils

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

## 安装

```sh
sudo av install brew:xml-coreutils
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xml-coreutils
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xml-coreutils
```

  证据: MacPorts ports tree: textproc/xml-coreutils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:xml-coreutils
- **软件包管理器:** Homebrew
- **版本:** 0.8.1
- **来源摘要:** Powerful interactive system for text processing
- **主页:** <https://xml-coreutils.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xml-awk (别名)
- xml-cat (别名)
- xml-cp (别名)
- xml-cut (别名)
- xml-echo (别名)
- xml-file (别名)
- xml-find (别名)
- xml-fixtags (别名)
- xml-fmt (别名)
- xml-grep (别名)
- xml-head (别名)
- xml-less (别名)
- xml-ls (别名)
- xml-mv (别名)
- xml-paste (别名)
- xml-printf (别名)
- xml-rm (别名)
- xml-sed (别名)
- xml-strings (别名)
- xml-unecho (别名)
- xml-wc (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.8.1
## 项目历史与用法

xml-coreutils is a suite of Unix/POSIX-style command-line tools for operating directly on XML documents. Its premise is simple and very package-nerdy: make XML processing feel as natural to shell users as text processing with the traditional coreutils.

### 项目历史

Laird Breyer's project pages describe xml-coreutils as an attempt to retrofit XML processing into existing shells so it can coexist with classical line-oriented tools. The project explicitly compares itself to GNU coreutils and tries to keep command names, short options, and behavior close to familiar Unix utilities where that makes sense.

The SourceForge release feed shows public tarball activity concentrated in 2010 and 2011, with versions 0.4, 0.7, 0.8, 0.8a, 0.8b, 0.8c, and 0.8.1. The homepage describes the project as early-stage and not ready for production use, but usable for simple tasks.

### 采用历史

Adoption appears to have stayed niche. The official site points users to tarballs, a mailing list, manual pages, a tutorial, and information for DEB/RPM packaging, while the SourceForge code page exposes a CVS repository snapshot rather than a later Git migration.

The project's own related-tools page places it among XML shell utilities such as XMLSH, XSH, XMLStarlet, XMLTK, XMLgawk, and xml2, suggesting it was part of the late-2000s effort to make XML friendlier to command-line users.

### 使用方式

The suite includes XML analogues of common shell operations: xml-cat, xml-cp, xml-cut, xml-find, xml-grep, xml-head, xml-less, xml-ls, xml-mv, xml-rm, xml-sed, xml-strings, xml-wc, and others. The tutorial emphasizes using these tools like traditional Unix commands, but against XML tree structure rather than raw text lines.

It is most practical as a historical and experimental shell toolkit for XML workflows, especially for users who want command composition over writing XPath-heavy scripts or full programs.

### 为什么软件包爱好者会关心

xml-coreutils is significant less for broad adoption than for its packaging idea: turn a structured-data problem into many small Unix commands, each independently documented, scriptable, and installable.

It also captures a moment before JSON became the dominant shell-adjacent structured format, when XML was common enough that developers wanted grep/sed/coreutils-like ergonomics for it.

### 时间线

- 2010-05-11: SourceForge feed lists early 0.4, 0.7, and 0.8 tarballs.
- 2010-05-16: 0.8a tarball published.
- 2010-09-13: 0.8b tarball published.
- 2011-04-10: 0.8c tarball published.
- 2011-04-16: 0.8.1 tarball published.

### Related projects

- Related tools listed by the project include GNU coreutils, XMLSH, XSH, XMLStarlet, XMLTK, XMLgawk, xmltools, and xml2. Runtime/build-adjacent technologies named by the site include Expat and S-Lang.

### 来源

- <https://sourceforge.net/p/xml-coreutils/code/>
- <https://sourceforge.net/projects/xml-coreutils/rss?path=/>
- <https://www.lbreyer.com/xml-coreutils.html>
- <https://xml-coreutils.sourceforge.net/>
- <https://xml-coreutils.sourceforge.net/man.html>
- <https://xml-coreutils.sourceforge.net/related.html>
- <https://xml-coreutils.sourceforge.net/xml_coreutils_tutorial.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- MacPorts - xml-coreutils: normalized package name match | MacPorts ports tree: textproc/xml-coreutils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/xml-coreutils.yml](https://github.com/mxcl/pkgdb/blob/main/combined/xml-coreutils.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
