# Install html-xml-utils with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Tools for manipulating HTML and XML files. Version 8.8 via Homebrew; verified 2026-06-09.

## Install

```sh
sudo av install brew:html-xml-utils
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install html-xml-utils
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install html-xml-utils
```

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

### Linux

- apk (92%):

```sh
sudo apk add html-xml-utils
```

  Evidence: Alpine Linux edge package indexes: html-xml-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install html-xml-utils
```

  Evidence: Debian stable package indexes: html-xml-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install html-xml-utils
```

  Evidence: Fedora Rawhide package metadata: html-xml-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#html-xml-utils
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ht/html-xml-utils/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S html-xml-utils
```

  Evidence: Arch Linux sync databases: html-xml-utils from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install html-xml-utils
```

  Evidence: openSUSE Tumbleweed package metadata: html-xml-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:html-xml-utils
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/html-xml-utils>
- **Version:** 8.8
- **Source summary:** Tools for manipulating HTML and XML files
- **Homepage:** <https://www.w3.org/Tools/HTML-XML-utils/>
- **Upstream docs:** <https://www.w3.org/Tools/HTML-XML-utils>
- **License:** W3C
- **Source archive:** <https://www.w3.org/Tools/HTML-XML-utils/html-xml-utils-8.8.tar.gz>
- **Last updated:** 2026-06-09T18:18:54Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- asc2xml (cli)
- hxaddid (cli)
- hxcite (cli)
- hxcite-mkbib (cli)
- hxclean (cli)
- hxcopy (cli)
- hxcount (cli)
- hxextract (cli)
- hxincl (cli)
- hxindex (cli)
- hxmkbib (cli)
- hxmultitoc (cli)
- hxname2id (cli)
- hxnormalize (cli)
- hxnsxml (cli)
- hxnum (cli)
- hxpipe (cli)
- hxprintlinks (cli)
- hxprune (cli)
- hxref (cli)
- hxremove (cli)
- hxselect (cli)
- hxtabletrans (cli)
- hxtoc (cli)
- hxuncdata (cli)
- hxunent (cli)
- hxunpipe (cli)
- hxunxmlns (cli)
- hxwls (cli)
- hxxmlns (cli)
- xml2asc (cli)
- asc2xml (alias)
- hxaddid (alias)
- hxcite (alias)
- hxcite-mkbib (alias)
- hxclean (alias)
- hxcopy (alias)
- hxcount (alias)
- hxextract (alias)
- hxincl (alias)
- hxindex (alias)
- hxmkbib (alias)
- hxmultitoc (alias)
- hxname2id (alias)
- hxnormalize (alias)
- hxnsxml (alias)
- hxnum (alias)
- hxpipe (alias)
- hxprintlinks (alias)
- hxprune (alias)
- hxref (alias)
- hxremove (alias)
- hxselect (alias)
- hxtabletrans (alias)
- hxtoc (alias)
- hxuncdata (alias)
- hxunent (alias)
- hxunpipe (alias)
- hxunxmlns (alias)
- hxwls (alias)
- hxxmlns (alias)
- xml2asc (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 8.8
- Package-manager updated: 2026-06-09
- Local data: ok
- Upstream repository: https://www.w3.org/Tools/HTML-XML-utils/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

html-xml-utils is W3C's collection of small Unix-style programs for inspecting, normalizing, extracting, and transforming HTML and XML documents. The suite is notable because it treats markup manipulation as a pipeline-friendly command-line job rather than as a browser or DOM-library-only task.

### Project history

The W3C distribution page describes the project as source tarballs for HTML and XML utilities, with older pre-0.1 releases named htmlutils. A major naming transition happened at version 5.0, when most programs received the hx prefix, which made the suite's command names more consistent and easier to package together.

The W3C ChangeLog records ongoing maintenance by Bert Bos, including releases in the 8.x line and bug fixes for tools such as hxselect, hxnormalize, hxcopy, and hxwls. The W3C software news archive highlights feature work such as expanded CSS selector support in hxselect and hxremove, HTML parsing support in hxpipe, and fixes for attribute selector handling.

### Adoption history

The W3C README explicitly notes precompiled packages in Debian, Ubuntu, MacPorts, and other systems. Homebrew, Alpine, Debian, Fedora-family, Nix, Arch, and openSUSE package metadata show the suite has been carried by many Unix-like package collections, which is typical for small C utilities that fill scripting gaps.

### How it is used

The commands cover tasks such as adding IDs, extracting selected elements, normalizing markup, expanding includes, producing link lists, converting entities, building tables of contents, and selecting nodes with CSS selectors. The result is a toolbox for shell scripts that need to touch HTML or XML without writing a bespoke parser.

### Why package nerds care

For package maintainers and CLI users, html-xml-utils sits in the same cultural space as tidy, xmllint, pup, and xmlstarlet: it is small, scriptable, and installable as one package that exposes many focused commands. The hxselect command is especially recognizable because it gives CSS-selector extraction to shell pipelines.

### Timeline

- 2001: The W3C download directory preserves old htmlutils material before the html-xml-utils 0.1 naming line.
- Version 5.0: Most utilities were renamed with the hx prefix.
- 2017: Version 7.2 and 7.4 expanded CSS selector support and improved hxselect and hxremove behavior.
- 2022: Version 8.3 added HTML parsing support to hxpipe, and version 8.4 fixed ::attr() selector handling.
- 2025: Version 8.7 fixed hxnormalize line-length behavior.
- 2026: The W3C ChangeLog records version 8.8 maintenance.

### Related projects

- Related command-line markup tools include HTML Tidy for cleanup, libxml2's xmllint for XML validation and XPath work, xmlstarlet for XML transformations, and selector-oriented tools such as pup.

### Sources

- Homebrew and distribution package pages support package-manager adoption.
- W3C README and directory listing document the source distribution, old htmlutils naming, package-manager availability, hx prefix change, and command list.
- W3C SoftwareNews and ChangeLog document 7.x and 8.x release evolution.


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** html-xml-utils
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - html-xml-utils - 7.7-1.1+b1: normalized package name match | Debian stable package indexes: html-xml-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | HTML and XML manipulation utilities | https://www.w3.org/Tools/HTML-XML-utils/
- Nix - html-xml-utils: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/html-xml-utils/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - html-xml-utils - 7.7-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: html-xml-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | HTML and XML manipulation utilities | https://www.w3.org/Tools/HTML-XML-utils/
- apk - html-xml-utils - 8.7-r0: normalized package name match | Alpine Linux edge package indexes: html-xml-utils from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A number of simple utilities for manipulating HTML and XML files. | https://www.w3.org/Tools/HTML-XML-utils/
- apk - html-xml-utils-doc - 8.7-r0: normalized package name match | Alpine Linux edge package indexes: html-xml-utils-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A number of simple utilities for manipulating HTML and XML files. (documentation) | https://www.w3.org/Tools/HTML-XML-utils/
- dnf - html-xml-utils - 8.7-1.fc44: normalized package name match | Fedora Rawhide package metadata: html-xml-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A number of simple utilities for manipulating HTML and XML files | https://www.w3.org/Tools/HTML-XML-utils/
- pacman - html-xml-utils - 8.8-1: normalized package name match | Arch Linux sync databases: html-xml-utils from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Utilities for manipulating HTML and XML files | https://www.w3.org/Tools/HTML-XML-utils
- zypper - html-xml-utils - 8.7-2.3: normalized package name match | openSUSE Tumbleweed package metadata: html-xml-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A number of utilities for manipulating HTML and XML files | https://www.w3.org/Tools/HTML-XML-utils/
- MacPorts - html-xml-utils: normalized package name match | MacPorts ports tree: textproc/html-xml-utils/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [xmq](https://www.automicvault.com/pkg/brew/xmq/) - Shares av.db curated category or tags: cli, developer-tools, html, markup, xml.
- [discount](https://www.automicvault.com/pkg/brew/discount/) - Shares av.db curated category or tags: cli, developer-tools, html, markup.
- [htmlcleaner](https://www.automicvault.com/pkg/brew/htmlcleaner/) - Shares av.db curated category or tags: cli, developer-tools, html, markup, xml.
- [htmlcompressor](https://www.automicvault.com/pkg/brew/htmlcompressor/) - Shares av.db curated category or tags: cli, developer-tools, html, markup, xml.
- [markdown](https://www.automicvault.com/pkg/brew/markdown/) - Shares av.db curated category or tags: cli, developer-tools, html, markup.
- [pandoc](https://www.automicvault.com/pkg/brew/pandoc/) - Shares av.db curated category or tags: cli, developer-tools, html, markup.
- [html2markdown](https://www.automicvault.com/pkg/brew/html2markdown/) - Shares av.db curated category or tags: cli, developer-tools, html, markup.
- [html2text](https://www.automicvault.com/pkg/brew/html2text/) - Shares av.db curated category or tags: cli, developer-tools, html, markup.

## Combined YAML source

View the package source record on GitHub. [combined/html-xml-utils.yml](https://github.com/automic-vault/db/blob/main/combined/html-xml-utils.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
