# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix 安装 kyua

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

## 安装

```sh
sudo av install brew:kyua
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kyua
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kyua
```

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

### Linux

- apk (92%):

```sh
sudo apk add kyua
```

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

- Debian apt (92%):

```sh
sudo apt install kyua
```

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

- dnf (92%):

```sh
sudo dnf install kyua
```

  证据: Fedora Rawhide package metadata: kyua from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#kyua
```

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

## 软件包事实

- **软件包键:** brew:kyua
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/kyua>
- **版本:** 0.14.1
- **来源摘要:** Testing framework for infrastructure software
- **主页:** <https://github.com/freebsd/kyua>
- **仓库:** <https://github.com/freebsd/kyua>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/freebsd/kyua/releases/download/kyua-0.14.1/kyua-0.14.1.tar.gz>
- **最后更新:** 2026-06-25T13:37:47+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- kyua (cli)
- kyua (别名)

## 依赖

- atf
- lua
- lutok

## 构建依赖

- pkgconf

## macOS 提供的库

- sqlite

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.14.1
- 管理器更新时间: 2026-06-25
- 本地数据: OK
- 上游仓库: https://github.com/freebsd/kyua
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Kyua is a BSD-oriented test runner and reporting tool for infrastructure software. It was designed around ATF compatibility but grew into a standalone command-line runtime able to run ATF tests, plain test programs, and TAP-style tests.

For package people, Kyua matters because it is not just another unit-test binary: it is part of the operating-system test-suite story for NetBSD and FreeBSD, and it appears across ports and distribution packages as the runner behind many low-level test suites.

### 项目历史

Kyua began in November 2010 as Julio Merino's attempt to replace the ATF tools while preserving compatibility with ATF-written tests. The NetBSD wiki framed the goal as reimplementing the ATF tools while keeping the NetBSD test suite usable, especially to unlock features such as parallel execution, richer reports, and support for non-ATF tests.

The project reached Kyua 0.1 in July 2011 after it could run most of the NetBSD test suite unmodified. FreeBSD later adopted Kyua as part of its own test-suite and CI work, and in 2024 the project moved under the FreeBSD GitHub organization after a long quiet period.

### 采用历史

Kyua's adoption followed BSD operating-system testing needs rather than application-framework fashion. Its README documents packages for FreeBSD, NetBSD pkgsrc, OpenBSD, Fedora, and Homebrew, reflecting a tool distributed mainly where system test suites and ports infrastructure need a common runner.

FreeBSD documentation describes ATF test programs relying on a separate runtime engine and names Kyua as the runtime of choice. That made Kyua part of the practical interface between operating-system tests, package builds, and CI reporting.

### 使用方式

Users define test suites with Kyuafiles and run them with the `kyua` command. Kyua records results, can generate reports, and can run tests written with ATF as well as simpler external programs.

The 0.12 release in November 2015 added parallel test execution, a significant improvement for large system test suites where individual tests are often I/O-bound or process-bound rather than CPU-bound.

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

Kyua is a classic package-nerd tool because it lives at the layer where packaging, operating-system QA, and reproducible test execution meet. It is small enough to install as a command-line dependency, but important enough that a broken Kyua package can affect large downstream test runs.

Its relationship with ATF, TAP, FreeBSD, NetBSD, and Homebrew makes it a useful marker of Unix test infrastructure moving from ad hoc scripts toward queryable, reportable test databases.

### 时间线

- 2010: Kyua was born as a testing framework for infrastructure software.
- 2011: Kyua 0.1 was launched after it could run most of the NetBSD test suite unmodified.
- 2013: Work to integrate Kyua into FreeBSD was underway.
- 2015: Kyua 0.12 added parallel test execution.
- 2016: Kyua 0.13 was released with fixes for timestamps, TAP parsing, and long-running executions.
- 2024: The project moved under the FreeBSD GitHub organization.
- 2025: Kyua 0.14.1 was released with renewed ATF compatibility and build fixes.

### Related projects

- ATF is Kyua's closest companion: ATF provides libraries and conventions for writing tests, while Kyua runs them and records results.
- TAP support connects Kyua to the broader Unix testing convention used by many language and packaging ecosystems.
- FreeBSD CI and test-suite work helped turn Kyua from a NetBSD-adjacent experiment into practical operating-system testing infrastructure.

### 来源

- <https://blogsystem5.substack.com/p/kyua-graduates>
- <https://github.com/freebsd/kyua>
- <https://man.freebsd.org/cgi/man.cgi?format=html&query=atf&sektion=7>
- <https://raw.githubusercontent.com/freebsd/kyua/master/NEWS>
- <https://raw.githubusercontent.com/freebsd/kyua/master/README.md>
- <https://wiki.netbsd.org/kyua/>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

## 源数据库详情

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

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

- Debian apt - kyua - 0.13+git20240311+0a43bb8d89e3-3: normalized package name match | Debian stable package indexes: kyua from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | testing framework for infrastructure software | https://github.com/freebsd/kyua
- Nix - kyua: normalized package name match | nixpkgs package indexes: pkgs/by-name/ky/kyua/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - kyua - 0.13+git20190402+a685f911237e-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: kyua from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | testing framework for infrastructure software | https://github.com/jmmv/kyua
- apk - kyua - 0.14.1-r0: normalized package name match | Alpine Linux edge package indexes: kyua from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | testing framework for infrastructure software | https://github.com/freebsd/kyua
- apk - kyua-dbg - 0.14.1-r0: normalized package name match | Alpine Linux edge package indexes: kyua-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | testing framework for infrastructure software (debug symbols) | https://github.com/freebsd/kyua
- apk - kyua-doc - 0.14.1-r0: normalized package name match | Alpine Linux edge package indexes: kyua-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | testing framework for infrastructure software (documentation) | https://github.com/freebsd/kyua
- dnf - kyua - 0.13-22.fc45: normalized package name match | Fedora Rawhide package metadata: kyua from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Testing framework for infrastructure software | https://github.com/jmmv/kyua
- dnf - kyua-tests - 0.13-22.fc45: normalized package name match | Fedora Rawhide package metadata: kyua-tests from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Runtime tests of the Kyua toolchain | https://github.com/jmmv/kyua
- MacPorts - kyua: normalized package name match | MacPorts ports tree: devel/kyua/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [lua](https://pkg.so/zh-hans/brew/lua/) - Runtime dependency declared by Homebrew.
- [atf](https://pkg.so/zh-hans/brew/atf/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [phpunit](https://pkg.so/zh-hans/brew/phpunit/) - Shares pkgdb curated category or tags: cli, developer-tools, test-framework, testing.
- [deja-gnu](https://pkg.so/zh-hans/brew/deja-gnu/) - Shares pkgdb curated category or tags: cli, developer-tools, test-framework, testing.
- [lcov](https://pkg.so/zh-hans/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [bats-core](https://pkg.so/zh-hans/brew/bats-core/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [allure](https://pkg.so/zh-hans/brew/allure/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [kcov](https://pkg.so/zh-hans/brew/kcov/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [mockolo](https://pkg.so/zh-hans/brew/mockolo/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [mockery](https://pkg.so/zh-hans/brew/mockery/) - Shares pkgdb curated category or tags: cli, developer-tools, testing.
- [cxxtest](https://pkg.so/zh-hans/brew/cxxtest/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, framework, test.
- [shunit2](https://pkg.so/zh-hans/brew/shunit2/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, developer, developer-tools, framework, test.

## Combined YAML source

View the package source record on GitHub. [combined/kyua.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kyua.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
