macOS
brew install xmlstarletlocal Homebrew formula metadata
sudo port install xmlstarletMacPorts ports tree · textproc/xmlstarlet/Portfile · source: api.github.com
brew / rank 547
XML command-line utilities. Version 1.6.1 via Homebrew; verified 2026-07-10. Also installable with debian: sudo apt install xmlstarlet.
install
brew install xmlstarletlocal Homebrew formula metadata
sudo port install xmlstarletMacPorts ports tree · textproc/xmlstarlet/Portfile · source: api.github.com
sudo apk add xmlstarletAlpine Linux edge package indexes · xmlstarlet · source: dl-cdn.alpinelinux.org
sudo apt install xmlstarletDebian stable package indexes · xmlstarlet · source: deb.debian.org
sudo dnf install xmlstarletFedora Rawhide package metadata · xmlstarlet · source: dl.fedoraproject.org
nix profile install nixpkgs#xmlstarletnixpkgs package indexes · pkgs/by-name/xm/xmlstarlet/package.nix · source: api.github.com
sudo pacman -S xmlstarletArch Linux sync databases · xmlstarlet · source: geo.mirror.pkgbuild.com
sudo zypper install xmlstarletopenSUSE Tumbleweed package metadata · xmlstarlet · source: download.opensuse.org
choco install xmlstarletChocolatey community package catalog · xmlstarlet · source: community.chocolatey.org
scoop install main/xmlstarletScoop official bucket manifest trees · bucket/xmlstarlet.json · source: api.github.com
overview
XML command-line utilities
history
XMLStarlet is the classic Unix-shell XML toolkit: query, transform, validate, edit, format, canonicalize, and inspect XML from a single command-line interface. It was explicitly framed as doing for XML what grep, sed, awk, diff, patch, and related tools do for plain text.
The SourceForge news archive records the first XMLStarlet release in May 2003, describing a C program using GNOME's libxml2 and libxslt to query, check, transform, search, and edit XML documents. The 0.1.0 announcement a few days later stated the project's goal as creating a command-line XML toolkit for shell prompts and automated processing.
Early releases moved quickly through 2003 and 2004, including validation fixes, Relax NG support, Windows availability, HP-UX binaries, and a FreeBSD port. Version 1.0.0 was announced in January 2005, and later distribution files show the 1.6.1 source release in 2014.
The project homepage later noted that development had stalled and asked for help with maintenance, bug fixes, and Windows packaging. That maintenance note is part of the package's history: XMLStarlet became stable infrastructure, with far more downstream script value than upstream churn.
XMLStarlet spread because it matched the way Unix users already handled text: one executable, composable subcommands, stdin/stdout behavior, and concise XPath/XSLT operations. Early SourceForge news called out a FreeBSD port in 2004 and Windows builds, showing that adoption was not limited to one Unix family.
Common uses include XPath extraction with xml sel, in-place-like XML editing with xml ed, XSLT transformation with xml tr, validation against DTD, XSD, or Relax NG with xml val, pretty-printing with xml fo, canonicalization with xml c14n, escaping text, listing element structure, and turning directory listings into XML.
The user guide emphasizes that the select command generates and applies XSLT from command-line templates, which lets shell scripts perform structured XML queries without writing a separate stylesheet.
XMLStarlet is one of the few XML tools that feels native in a pipeline. For package nerds, it is the dependable answer to 'jq, but for XML before jq existed': small enough to install everywhere, powerful enough for metadata rewrites, and old enough to appear in build scripts, distro tooling, and release automation.
security posture
No matching local secret-handling manifest was found for xmlstarlet. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
xml | executable | indexed executable | Discovered from the local executable index. |
xmlstarlet | executable | indexed executable | Discovered from the local executable index. |
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.
install metadata
| Package key | brew:xmlstarlet |
|---|---|
| Version | 1.6.1 |
| Package manager | Homebrew |
| Homepage | https://xmlstar.sourceforge.net/ |
| Last updated | 2026-07-10T09:59:34-04:00 |
| Pulse | updated |
| Bottle | not recorded |
| Service | none declared |
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
xmlstarlet 1.6.1-4
command line XML toolkit
http://xmlstar.sourceforge.net/
sudo apt install xmlstarletxmlstarlet
nix profile install nixpkgs#xmlstarletxmlstarlet 1.6.1-4
command line XML toolkit
http://xmlstar.sourceforge.net/
sudo apt install xmlstarletxmlstarlet 1.6.1-r2
A set of tools to transform, query, validate, and edit XML documents
https://xmlstar.sourceforge.net/
sudo apk add xmlstarletxmlstarlet-doc 1.6.1-r2
A set of tools to transform, query, validate, and edit XML documents (documentation)
https://xmlstar.sourceforge.net/
sudo apk add xmlstarlet-docxmlstarlet 1.6.1-31.fc45
Command Line XML Toolkit
http://xmlstar.sourceforge.net/
sudo dnf install xmlstarletxmlstarlet 1.6.1-6
A set of tools to transform, query, validate, and edit XML documents
http://xmlstar.sourceforge.net/
sudo pacman -S xmlstarletxmlstarlet 1.6.1-4.3
Command Line Tool to Process XML Documents
https://sourceforge.net/projects/xmlstar/
sudo zypper install xmlstarletxmlstarlet
sudo port install xmlstarletxmlstarlet
choco install xmlstarletmain/xmlstarlet
scoop install main/xmlstarletsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.