# 使用 Homebrew, Nix 安装 galen

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

## 安装

```sh
sudo av install brew:galen
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install galen
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#galen
```

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

## 软件包事实

- **软件包键:** brew:galen
- **软件包管理器:** Homebrew
- **版本:** 2.4.4
- **来源摘要:** Automated testing of look and feel for responsive websites
- **主页:** <https://galenframework.com/>
- **仓库:** <https://github.com/galenframework/galen>
- **最后更新:** 2026-06-22T14:03:24-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- galen (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Galen Framework is an open-source layout, responsive-design, and functional testing tool for websites. It combines Selenium-driven browser interaction with a domain-specific spec language for checking element positions, sizes, and visual relationships.

### 项目历史

The GitHub repository was created in September 2013. Upstream documentation says Galen was originally designed for testing web-application layout and later also became useful for functional testing.

The official documentation and release/news list show a 2.x line focused on spec language improvements, object groups, heatmaps, spec generation, and mutation testing. GitHub releases include the 2.4.x series through 2.4.4 in March 2019.

### 采用历史

Galen appeared during the responsive-web testing boom, when teams needed automated checks across browser sizes rather than only DOM-level assertions. Its adoption surface includes command-line use, Java/Maven/TestNG integration, JavaScript tests, IDE syntax support, BrowserStack examples, and package-manager entries in Homebrew and Nix from the supplied facts.

### 使用方式

A Galen test opens a page in a browser, resizes it to a requested viewport, and checks the layout against user-defined specs. When checks fail, Galen reports the error, makes a screenshot, and highlights the affected element.

Configuration is project-local through galen.config or global through ~/.galen.config, both documented by upstream.

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

Galen is package-relevant because it packages an opinionated browser-testing stack into a CLI/JVM tool at the boundary of Selenium, Java, JavaScript, and front-end workflow tooling. It also illustrates a once-common distribution pattern for QA tools: upstream zip/script installs plus package-manager wrappers.

### 时间线

- 2013: GitHub repository created.
- 2015: Galen 2.0 release announced with a new spec language implementation.
- 2016: Galen 2.3 release announced.
- 2018: Galen 2.4 release announced with spec generator and mutation testing.
- 2019: GitHub release galen-2.4.4 published.

### Related projects

- Galen depends conceptually on Selenium for browser interaction.
- Official docs link Java/TestNG usage, JavaScript tests, BrowserStack integration examples, and IDE support projects including galen.vim.

### 来源

- <https://api.github.com/repos/galenframework/galen>
- <https://api.github.com/repos/galenframework/galen/releases?per_page=10>
- <https://galenframework.com/docs/all/>
- <https://galenframework.com/docs/getting-started-configuration/>
- <https://github.com/galenframework/galen>
- <https://raw.githubusercontent.com/galenframework/galen/master/README.md>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: galen.config, ~/.galen.config
## 其他软件包管理器记录

- Nix - galen: normalized package name match | nixpkgs package indexes: pkgs/by-name/ga/galen/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
