# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 libxkbcommon

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

## 安装

```sh
sudo av install brew:libxkbcommon
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libxkbcommon
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libxkbcommon
```

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

### Linux

- apk (92%):

```sh
sudo apk add libxkbcommon
```

  证据: Alpine Linux edge package indexes: libxkbcommon from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libxkbcommon
```

  证据: Fedora Rawhide package metadata: libxkbcommon 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#libxkbcommon
```

  证据: nixpkgs package indexes: libxkbcommon from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S libxkbcommon
```

  证据: Arch Linux sync databases: libxkbcommon from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libxkbcommon-dev
```

  证据: Debian stable package indexes: libxkbcommon-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libxkbcommon-devel
```

  证据: openSUSE Tumbleweed package metadata: libxkbcommon-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:libxkbcommon
- **软件包管理器:** Homebrew
- **版本:** 1.13.2
- **来源摘要:** Keyboard handling library
- **主页:** <https://xkbcommon.org/>
- **仓库:** <https://github.com/xkbcommon/libxkbcommon>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xkbcli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.13.2
## 项目历史与用法

libxkbcommon is the standard Wayland-era keymap handling library for XKB keyboard descriptions, keyboard state, Compose/dead keys, and keyboard-layout tooling.

### 项目历史

libxkbcommon reworked the classic X Keyboard Extension concepts into a library API for clients, toolkits, compositors, and other system components. The project documentation says it processes XKB keymaps while omitting some legacy features, and the repository credits Dan Nicholson for early work getting xkbcommon started.

The 2020-09 libxkbcommon 1.0.0 announcement states that the first commit was on 2009-01-13 and that the first release with the present API was on 2012-10-24. Release notes then show the project moving through the 1.x line with continued API, tools, build-system, and keymap-format work.

### 采用历史

libxkbcommon became central to Wayland because compositors, toolkits, and applications need to translate key events into characters and actions without relying on the X server as the keyboard interpreter. The documentation explicitly describes it as the standard keymap handling library on Wayland.

It also remained useful to X11 clients through the xkbcommon-x11 module, making it a bridge between old XKB data and newer compositor-centered desktop stacks.

### 使用方式

Developers use libxkbcommon to compile keymaps, track keyboard state, handle Compose sequences, and inspect layouts. Users see it indirectly through desktop environments and toolkits, while packagers also ship xkbcli tools such as compile-keymap, how-to-type, interactive-wayland, interactive-x11, and list.

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

libxkbcommon is a load-bearing desktop plumbing package: boring until it is missing, then every keyboard layout, dead key, and Wayland compositor path becomes suspect. It is also a rare case where a compatibility library helped define the practical boundary between X11 inheritance and Wayland-native behavior.

### 时间线

- 2009-01-13: First xkbcommon commit, according to the 1.0.0 announcement.
- 2012-10-24: First release with the present API, according to the 1.0.0 announcement.
- 2013-04-01: libxkbcommon 0.3.0 appears in the project's release notes.
- 2020-09-05: libxkbcommon 1.0.0 released.
- 2025-08-08: libxkbcommon 1.11.0 introduced XKB_KEYMAP_FORMAT_TEXT_V2 for long-standing XKB ecosystem issues.

### Related projects

- Related projects include Wayland compositors, Xorg/X11 clients, xkeyboard-config, libX11 Compose data, libxcb, xorgproto, and desktop toolkits that process keyboard input.

### 来源

- <https://github.com/xkbcommon/libxkbcommon>
- <https://lists.freedesktop.org/archives/wayland-devel/2020-September/041596.html>
- <https://xkbcommon.org/doc/current/>
- <https://xkbcommon.org/doc/current/release-notes.html>


## 安全说明

library-like package without higher-risk signals.

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

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

- Debian apt - libxkbcommon-dev - 1.7.0-2: normalized package name match | Debian stable package indexes: libxkbcommon-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library interface to the XKB compiler - development files | https://www.xkbcommon.org/
- Debian apt - libxkbcommon-doc - 1.7.0-2: normalized package name match | Debian stable package indexes: libxkbcommon-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library interface to the XKB compiler - documentation | https://www.xkbcommon.org/
- Debian apt - libxkbcommon-tools - 1.7.0-2: normalized package name match | Debian stable package indexes: libxkbcommon-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library interface to the XKB compiler - tools | https://www.xkbcommon.org/
- Debian apt - libxkbcommon-x11-0 - 1.7.0-2: normalized package name match | Debian stable package indexes: libxkbcommon-x11-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to create keymaps with the XKB X11 protocol | https://www.xkbcommon.org/
- Debian apt - libxkbcommon-x11-dev - 1.7.0-2: normalized package name match | Debian stable package indexes: libxkbcommon-x11-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to create keymaps with the XKB X11 protocol - development files | https://www.xkbcommon.org/
- Debian apt - libxkbcommon0 - 1.7.0-2: normalized package name match | Debian stable package indexes: libxkbcommon0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library interface to the XKB compiler - shared library | https://www.xkbcommon.org/
- Debian apt - libxkbregistry-dev - 1.7.0-2: normalized package name match | Debian stable package indexes: libxkbregistry-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to query available RMLVO - development files | https://www.xkbcommon.org/
- Debian apt - libxkbregistry0 - 1.7.0-2: normalized package name match | Debian stable package indexes: libxkbregistry0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to query available RMLVO | https://www.xkbcommon.org/
- Nix - libxkbcommon: normalized package name match | nixpkgs package indexes: libxkbcommon from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - libxkbcommon-dev - 1.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxkbcommon-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library interface to the XKB compiler - development files | https://www.xkbcommon.org/
- Ubuntu apt - libxkbcommon-doc - 1.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxkbcommon-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library interface to the XKB compiler - documentation | https://www.xkbcommon.org/
- Ubuntu apt - libxkbcommon-tools - 1.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxkbcommon-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library interface to the XKB compiler - tools | https://www.xkbcommon.org/
- Ubuntu apt - libxkbcommon-x11-0 - 1.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxkbcommon-x11-0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library to create keymaps with the XKB X11 protocol | https://www.xkbcommon.org/
- Ubuntu apt - libxkbcommon-x11-dev - 1.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxkbcommon-x11-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library to create keymaps with the XKB X11 protocol - development files | https://www.xkbcommon.org/
- Ubuntu apt - libxkbcommon0 - 1.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxkbcommon0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library interface to the XKB compiler - shared library | https://www.xkbcommon.org/
- Ubuntu apt - libxkbregistry-dev - 1.6.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libxkbregistry-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library to query available RMLVO - development files | https://www.xkbcommon.org/


## Combined YAML source

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