# 使用 Homebrew, dnf 安装 beakerlib

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

## 安装

```sh
sudo av install brew:beakerlib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install beakerlib
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install beakerlib
```

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

## 软件包事实

- **软件包键:** brew:beakerlib
- **软件包管理器:** Homebrew
- **版本:** 1.33.3
- **来源摘要:** Shell-level integration testing library
- **主页:** <https://github.com/beakerlib/beakerlib>
- **仓库:** <https://github.com/beakerlib/beakerlib>
- **最后更新:** 2026-06-22T14:02:52-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- beakerlib-deja-summarize (别名)
- beakerlib-journalcmp (别名)
- beakerlib-journalling (别名)
- beakerlib-lsb_release (别名)
- beakerlib-rlMemAvg (别名)
- beakerlib-rlMemPeak (别名)
- beakerlib-testwatcher (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

BeakerLib is a shell-level integration testing library for writing, running, logging, and analyzing integration and black-box tests. It is especially associated with Fedora/RHEL-style test automation, where shell tests need consistent phases, assertions, journals, and result files.

### 项目历史

The current documentation says the project moved to its new official home after fedorahosted.org was shut down. The GitHub repository was created on 2017-03-01 and the README identifies it as the upstream project for a shell testing library with Fedora/RHEL distribution support.

BeakerLib's manual documents the long-lived shell API surface: tests source /usr/share/beakerlib/beakerlib.sh, start and end journals, divide work into phases, run commands, assert conditions, manage services and files, and emit journal.txt, journal.xml, and TestResults output.

### 采用历史

The README documents Fedora and RHEL packaging as the primary distribution path, with newer builds available through COPR. The batch package facts show Homebrew and Fedora packaging, which is narrower than Beads or bdftopcf but notable because the package carries Linux distribution QA practices into local developer environments.

The beakerlib GitHub organization also hosts many domain-specific shell libraries, showing that BeakerLib became more than one script: it is a shared testing vocabulary for distribution and system-integration tests.

### 使用方式

A BeakerLib test is usually a shell script that sources beakerlib.sh, opens a journal, runs setup/test/cleanup phases, records assertions and command results, then closes the journal. The official manual centers on repeatable logging and result reporting rather than unit-test style in-process assertions.

The library is used for integration and black-box tests where shell commands, packages, services, files, sockets, mounts, virtual X, performance metrics, reboot handling, and cleanup must be coordinated in a readable script.

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

BeakerLib is package-nerd significant because it is a packaged testing framework for the shell and the operating system, not just for an application language. It reflects the needs of distribution QA: tests must install from packages, manipulate services, survive real system state, and produce machine-readable logs for automation.

Its move from Fedora Hosted to GitHub/Read the Docs also marks a common infrastructure migration path for older Fedora-era projects after fedorahosted.org was retired.

### 时间线

- Pre-2017: BeakerLib is hosted on fedorahosted.org according to the current docs.
- 2017-03-01: beakerlib/beakerlib GitHub repository is created.
- 2021-11-09: Documentation news lists BeakerLib 1.28 with new OS-detection and dependency-checking functions.
- 2022-10-20: Documentation news lists BeakerLib 1.29.3.
- 2026-04-07: GitHub lists beakerlib-1.33.3 as the latest release.

### Related projects

- Beaker is the broader Red Hat-origin automated test system whose ecosystem gives BeakerLib its name and context.
- Fedora and RHEL packaging are the documented distribution channels.
- The beakerlib GitHub organization hosts companion libraries for areas such as firewalld, database, yum, crypto, and distribution testing.

### 来源

- <https://api.github.com/repos/beakerlib/beakerlib>
- <https://beakerlib.readthedocs.io/en/latest/>
- <https://beakerlib.readthedocs.io/en/latest/manual.html>
- <https://github.com/beakerlib>
- <https://raw.githubusercontent.com/beakerlib/beakerlib/master/README.md>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

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

- dnf - beakerlib - 1.33.3-2.fc45: normalized package name match | Fedora Rawhide package metadata: beakerlib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A shell-level integration testing library | https://github.com/beakerlib
- dnf - beakerlib-vim-syntax - 1.33.3-2.fc45: normalized package name match | Fedora Rawhide package metadata: beakerlib-vim-syntax from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Files for syntax highlighting BeakerLib tests in VIM editor | https://github.com/beakerlib


## Combined YAML source

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