# 使用 Homebrew, Nix, pacman 安装 kbt

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

## 安装

```sh
sudo av install brew:kbt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kbt
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kbt
```

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

- pacman (92%):

```sh
sudo pacman -S kbt
```

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

## 软件包事实

- **软件包键:** brew:kbt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/kbt>
- **版本:** 2.1.0
- **来源摘要:** Keyboard tester in terminal
- **主页:** <https://github.com/bloznelis/kbt>
- **仓库:** <https://github.com/bloznelis/kbt>
- **上游文档:** <https://github.com/bloznelis/kbt#readme>
- **许可证:** MIT
- **源码归档:** <https://github.com/bloznelis/kbt/archive/refs/tags/2.1.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- kbt (cli)
- kbt (别名)

## 构建依赖

- pkgconf
- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.1.0
- 本地数据: OK
- 上游仓库: https://github.com/bloznelis/kbt
- 检测到的最新版本: 2.1.0 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

kbt is a Rust terminal keyboard tester whose upstream README expands the name as keyboard tester and frames it as a terminal alternative to online keyboard-test pages.

### 项目历史

The repository was created in March 2023 and published release builds during 2023, with 1.0.0 appearing on July 23, 2023 and 2.1.0 on January 6, 2024. The README presents the project as a deliberately small terminal utility motivated by frustration with semi-broken web-based keyboard testers.

### 采用历史

The package reached CLI users through several package-manager channels recorded in the batch input, including Homebrew, Nix, Arch Linux, and Cargo installation.

### 使用方式

kbt is run as an interactive terminal UI for checking keyboard input and layouts. The README notes Linux, macOS, and Windows support, a Wayland limitation, and a macOS first-run Accessibility permission requirement.

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

For package collectors, kbt is a tidy example of the post-ratatui Rust TUI wave: a small hardware-adjacent diagnostic tool that moved from Cargo-style distribution into mainstream Unix package managers.

### 时间线

- 2023: Repository created for a terminal keyboard tester.
- 2023-07-23: kbt 1.0.0 release published.
- 2024-01-06: kbt 2.1.0 release published.

### Related projects

- The README credits ratatui as the TUI library used to build the interface.

### 来源

- <https://github.com/bloznelis/kbt>
- <https://github.com/bloznelis/kbt/releases>
- <https://github.com/ratatui-org/ratatui>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Nix - kbt: normalized package name match | nixpkgs package indexes: pkgs/by-name/kb/kbt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - kbt - 2.1.0-1: normalized package name match | Arch Linux sync databases: kbt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Keyboard tester in terminal | https://github.com/bloznelis/kbt


## 相关链接

- [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.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [kanata](https://www.automicvault.com/zh-hans/pkg/brew/kanata/) - Shares av.db curated category or tags: cli, input, keyboard, system.
- [kanata-tray](https://www.automicvault.com/zh-hans/pkg/brew/kanata-tray/) - Shares av.db curated category or tags: cli, input, keyboard, system.
- [libxkbcommon](https://www.automicvault.com/zh-hans/pkg/brew/libxkbcommon/) - Shares av.db curated category or tags: cli, input, keyboard, system.
- [xkbcomp](https://www.automicvault.com/zh-hans/pkg/brew/xkbcomp/) - Shares av.db curated category or tags: cli, keyboard, system.
- [xmodmap](https://www.automicvault.com/zh-hans/pkg/brew/xmodmap/) - Shares av.db curated category or tags: cli, input, keyboard, system.
- [bottom](https://www.automicvault.com/zh-hans/pkg/brew/bottom/) - Shares av.db curated category or tags: cli, rust, system, terminal.
- [diskonaut](https://www.automicvault.com/zh-hans/pkg/brew/diskonaut/) - Shares av.db curated category or tags: cli, system, terminal, tui.
- [eza](https://www.automicvault.com/zh-hans/pkg/brew/eza/) - Shares av.db curated category or tags: cli, rust, system, terminal.

## Combined YAML source

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