# 使用 Homebrew, apk, dnf, MacPorts, Nix 安装 libxo

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libxo
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libxo
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:libxo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libxo>
- **版本:** 1.7.5
- **来源摘要:** Allows an application to generate text, XML, JSON, and HTML output
- **主页:** <https://juniper.github.io/libxo/libxo-manual.html>
- **仓库:** <https://github.com/Juniper/libxo>
- **上游文档:** <https://juniper.github.io/libxo/libxo-manual.html>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/Juniper/libxo/releases/download/1.7.5/libxo-1.7.5.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- libxo-config (cli)
- xo (cli)
- xohtml (cli)
- xolint (cli)
- xopo (cli)
- libxo-config (别名)
- xo (别名)
- xohtml (别名)
- xolint (别名)
- xopo (别名)

## 构建依赖

- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.7.5
- 本地数据: OK
- 上游仓库: https://github.com/Juniper/libxo
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **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

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

- 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


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [libtool](https://www.automicvault.com/zh-hans/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [libxml2](https://www.automicvault.com/zh-hans/pkg/brew/libxml2/) - Shares av.db curated category or tags: c-library, cli, developer-tools, html, libraries.
- [expat](https://www.automicvault.com/zh-hans/pkg/brew/expat/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries, xml.
- [libxslt](https://www.automicvault.com/zh-hans/pkg/brew/libxslt/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries, xml.
- [cdk](https://www.automicvault.com/zh-hans/pkg/brew/cdk/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [fstrm](https://www.automicvault.com/zh-hans/pkg/brew/fstrm/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [json-glib](https://www.automicvault.com/zh-hans/pkg/brew/json-glib/) - Shares av.db curated category or tags: cli, developer-tools, json, libraries.
- [libevent](https://www.automicvault.com/zh-hans/pkg/brew/libevent/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [ncurses](https://www.automicvault.com/zh-hans/pkg/brew/ncurses/) - Shares av.db curated category or tags: c-library, cli, developer-tools, libraries.
- [onigmo](https://www.automicvault.com/zh-hans/pkg/brew/onigmo/) - Local package facts share a topical domain. Shared terms: c-library, cli, config, developer, developer-tools.

## Combined YAML source

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


## 来源

- 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
