# libxmlb を Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper でインストール

libxmlb のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:libxmlb
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install libxmlb
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libxmlb
```

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

### Linux

- apk (92%):

```sh
sudo apk add libxmlb
```

  証拠: Alpine Linux edge package indexes: libxmlb from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libxmlb
```

  証拠: Fedora Rawhide package metadata: libxmlb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libxmlb
```

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

- pacman (92%):

```sh
sudo pacman -S libxmlb
```

  証拠: Arch Linux sync databases: libxmlb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install gir1.2-xmlb-2.0
```

  証拠: Debian stable package indexes: gir1.2-xmlb-2.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libxmlb-devel
```

  証拠: openSUSE Tumbleweed package metadata: libxmlb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:libxmlb
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.3.29
- **ソース概要:** Library for querying compressed XML metadata
- **ホームページ:** <https://github.com/hughsie/libxmlb>
- **リポジトリ:** <https://github.com/hughsie/libxmlb>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- xb-tool (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.3.29
## プロジェクトの歴史と使われ方

libxmlb is a small system library for compiling XML metadata into a binary representation that can be memory-mapped and queried quickly. It is most associated with desktop and firmware metadata workflows where large XML files need repeated lookups.

### プロジェクトの歴史

Richard Hughes' README frames the project around the cost of parsing XML and the inability to mmap normal XML strings directly. libxmlb converts XML into a structured binary format with a deduplicated string table and NUL-terminated strings, trading compactness for fast queries and near zero-copy access.

The first visible 0.1.0 GitHub tag points to a commit dated 2018-10-04. The design is intentionally narrow: it implements only a subset of XPath and ships xb-tool for compiling and querying binary XML.

### 採用の歴史

libxmlb became useful in Linux desktop plumbing because projects such as AppStream and fwupd deal in large XML metadata collections. The same maintainer ecosystem around GNOME, fwupd, and LVFS made the binary metadata cache a practical dependency for package and firmware tooling.

### 使われ方

Typical usage is to compile XML metadata into an .xmlb file and query it with xb-tool or through the library API. It is a cache/query accelerator, not a general-purpose XML replacement.

### パッケージ好きにとっての重要性

libxmlb matters to package nerds because it sits where package metadata, desktop app metadata, and firmware metadata meet performance constraints. It turns text metadata into a binary cache that package managers and desktop software centers can query cheaply.

### タイムライン

- 2018: The 0.1.0 tag points to a commit dated 2018-10-04.
- 2019: AppStream discussions describe LVFS and fwupd as using AppStream metadata for firmware metadata.
- 2020s: libxmlb is packaged across Linux distributions and Homebrew as xb-tool and the libxmlb library.

### Related projects

- fwupd, LVFS, AppStream, GNOME Software, and other metadata-heavy desktop tools are the neighboring ecosystem. libxml2 remains the broader XML library; libxmlb is the binary metadata cache layer.

### ソース

- <https://api.github.com/repos/hughsie/libxmlb/commits/a5878a07a6a1bafce8857be2bb9316fffa9907f3>
- <https://blog.tenstral.net/2020/01/a-big-appstream-status-update.html>
- <https://github.com/hughsie/libxmlb>
- <https://raw.githubusercontent.com/hughsie/libxmlb/main/README.md>


## セキュリティノート

libxmlb に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## 他のパッケージマネージャ記録

- Debian apt - gir1.2-xmlb-2.0 - 0.3.22-1: normalized package name match | Debian stable package indexes: gir1.2-xmlb-2.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GObject introspection data for libxmlb | https://github.com/hughsie/libxmlb
- Debian apt - libxmlb-dev - 0.3.22-1: normalized package name match | Debian stable package indexes: libxmlb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for libxmlb | https://github.com/hughsie/libxmlb
- Debian apt - libxmlb-tests - 0.3.22-1: normalized package name match | Debian stable package indexes: libxmlb-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Installed tests for libxmlb2 | https://github.com/hughsie/libxmlb
- Debian apt - libxmlb-utils - 0.3.22-1: normalized package name match | Debian stable package indexes: libxmlb-utils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Binary XML library - Command-line utility | https://github.com/hughsie/libxmlb
- Debian apt - libxmlb2 - 0.3.22-1: normalized package name match | Debian stable package indexes: libxmlb2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Binary XML library | https://github.com/hughsie/libxmlb
- Nix - libxmlb: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libxmlb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-xmlb-2.0 - 0.3.18-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-xmlb-2.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GObject introspection data for libxmlb | https://github.com/hughsie/libxmlb
- Ubuntu apt - libxmlb-dev - 0.3.18-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxmlb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development files for libxmlb | https://github.com/hughsie/libxmlb
- Ubuntu apt - libxmlb-tests - 0.3.18-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxmlb-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Installed tests for libxmlb2 | https://github.com/hughsie/libxmlb
- Ubuntu apt - libxmlb-utils - 0.3.18-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxmlb-utils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Binary XML library - Command-line utility | https://github.com/hughsie/libxmlb
- Ubuntu apt - libxmlb2 - 0.3.18-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxmlb2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Binary XML library | https://github.com/hughsie/libxmlb
- apk - libxmlb - 0.3.29-r0: normalized package name match | Alpine Linux edge package indexes: libxmlb from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library to help create and query binary XML blobs | https://github.com/hughsie/libxmlb
- apk - libxmlb-dbg - 0.3.29-r0: normalized package name match | Alpine Linux edge package indexes: libxmlb-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library to help create and query binary XML blobs (debug symbols) | https://github.com/hughsie/libxmlb
- apk - libxmlb-dev - 0.3.29-r0: normalized package name match | Alpine Linux edge package indexes: libxmlb-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library to help create and query binary XML blobs (development files) | https://github.com/hughsie/libxmlb
- apk - libxmlb-doc - 0.3.29-r0: normalized package name match | Alpine Linux edge package indexes: libxmlb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library to help create and query binary XML blobs (documentation) | https://github.com/hughsie/libxmlb
- dnf - libxmlb - 0.3.29-1.fc45: normalized package name match | Fedora Rawhide package metadata: libxmlb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library for querying compressed XML metadata | https://github.com/hughsie/libxmlb


## Combined YAML source

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