# Install libxo with Homebrew, apk, dnf, MacPorts, Nix

Allows an application to generate text, XML, JSON, and HTML output. Version 1.7.5 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:libxo
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libxo
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libxo
```

  Evidence: MacPorts ports tree: devel/libxo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libxo
```

  Evidence: Alpine Linux edge package indexes: libxo from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libxo
```

  Evidence: Fedora Rawhide package metadata: libxo 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#libxo
```

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

## Package facts

- **Package key:** brew:libxo
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/libxo>
- **Version:** 1.7.5
- **Source summary:** Allows an application to generate text, XML, JSON, and HTML output
- **Homepage:** <https://juniper.github.io/libxo/libxo-manual.html>
- **Repository:** <https://github.com/Juniper/libxo>
- **Upstream docs:** <https://juniper.github.io/libxo/libxo-manual.html>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/Juniper/libxo/releases/download/1.7.5/libxo-1.7.5.tar.gz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- libxo-config (cli)
- xo (cli)
- xohtml (cli)
- xolint (cli)
- xopo (cli)
- libxo-config (alias)
- xo (alias)
- xohtml (alias)
- xolint (alias)
- xopo (alias)

## Build dependencies

- libtool

## Install behavior

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

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 1.7.5
- Local data: ok
- Upstream repository: https://github.com/Juniper/libxo
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

libxo is a C library from Juniper for emitting traditional text, XML, JSON, and HTML from one set of output calls. It is best known in package culture through FreeBSD's structured-output work.

### Project history

The project README explains the central idea: applications call xo_emit with field descriptors, and the selected output style is chosen at runtime. GitHub tag metadata places the 0.1.0 tag at a commit dated 2014-07-30.

The FreeBSD manual page records Phil Shafer as author and says the library was added in FreeBSD 11.0. That adoption moved libxo from a standalone library into the base-system conversation about machine-readable command output.

### Adoption history

FreeBSD's adoption gave libxo a practical audience: base utilities could keep human-readable output while adding JSON, XML, or HTML modes for scripts and automation. The package is also available outside FreeBSD for projects that want the same structured-output model.

### How it is used

Users generally encounter libxo through commands that accept a libxo output mode or through the xo utility family. Developers use the library when they want one formatting path to serve terminal text and structured data consumers.

### Why package nerds care

libxo matters because it is a concrete answer to the long-running Unix problem of parsing human text with fragile awk and sed pipelines. It represents the package-manager-adjacent push toward structured CLI output without abandoning traditional command output.

### Timeline

- 2014: The 0.1.0 GitHub tag points to a commit dated 2014-07-30.
- 2014: The FreeBSD Ports manual page date for libxo(3) is 2014-12-08.
- 2016: FreeBSD 11.0 included libxo according to the FreeBSD manual page.
- 2020s: libxo remains packaged for Homebrew, FreeBSD ports, and multiple Unix-like distributions.

### Related projects

- FreeBSD base utilities are the most visible related ecosystem. jq and other JSON-processing tools are common downstream companions when libxo-enabled commands emit JSON.

### Sources

- <https://api.github.com/repos/Juniper/libxo/commits/a9a27bd4587282e27e108b1d4f3f4cbf2b67ba57>
- <https://github.com/Juniper/libxo>
- <https://juniper.github.io/libxo/libxo-manual.html>
- <https://man.freebsd.org/cgi/man.cgi?query=libxo&sektion=3&manpath=FreeBSD+Ports+14.2>
- <https://raw.githubusercontent.com/Juniper/libxo/develop/README.md>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** libxo
- **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

- Nix - libxo: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libxo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - libxo - 1.7.5-r0: normalized package name match | Alpine Linux edge package indexes: libxo from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Library for Generating Text, XML, JSON, and HTML Output | http://juniper.github.io/libxo/libxo-manual.html
- apk - libxo-dev - 1.7.5-r0: normalized package name match | Alpine Linux edge package indexes: libxo-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Library for Generating Text, XML, JSON, and HTML Output (development files) | http://juniper.github.io/libxo/libxo-manual.html
- apk - libxo-doc - 1.7.5-r0: normalized package name match | Alpine Linux edge package indexes: libxo-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Library for Generating Text, XML, JSON, and HTML Output (documentation) | http://juniper.github.io/libxo/libxo-manual.html
- dnf - libxo - 1.7.5-3.fc44: normalized package name match | Fedora Rawhide package metadata: libxo from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A Library for Generating Text, XML, JSON, and HTML Output | https://github.com/Juniper/libxo
- dnf - libxo-devel - 1.7.5-3.fc44: normalized package name match | Fedora Rawhide package metadata: libxo-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for libxo | https://github.com/Juniper/libxo
- MacPorts - libxo: normalized package name match | MacPorts ports tree: devel/libxo/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [libxml2](https://www.automicvault.com/pkg/brew/libxml2/) - Shares av.db curated category or tags: c-library, cli, developer-tools, html, libraries.
- [expat](https://www.automicvault.com/pkg/brew/expat/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries, xml.
- [libxslt](https://www.automicvault.com/pkg/brew/libxslt/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries, xml.
- [cdk](https://www.automicvault.com/pkg/brew/cdk/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [fstrm](https://www.automicvault.com/pkg/brew/fstrm/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [json-glib](https://www.automicvault.com/pkg/brew/json-glib/) - Shares av.db curated category or tags: cli, developer-tools, json, libraries.
- [libevent](https://www.automicvault.com/pkg/brew/libevent/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [ncurses](https://www.automicvault.com/pkg/brew/ncurses/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [xo](https://www.automicvault.com/pkg/npm/xo/) - Executable or command metadata overlaps with this package. Shared terms: cli, config, developer, developer-tools, xo.

## Combined YAML source

View the package source record on GitHub. [combined/libxo.yml](https://github.com/automic-vault/db/blob/main/combined/libxo.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
