# 使用 Homebrew 安装 gator

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

## 安装

```sh
sudo av install brew:gator
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gator
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gator
- **软件包管理器:** Homebrew
- **版本:** 3.23.0
- **来源摘要:** CLI Utility for Open Policy Agent Gatekeeper
- **主页:** <https://open-policy-agent.github.io/gatekeeper/>
- **仓库:** <https://github.com/open-policy-agent/gatekeeper>
- **最后更新:** 2026-07-29T16:04:59+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gator (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

gator is the command-line utility shipped by Open Policy Agent Gatekeeper for local Gatekeeper policy work. It lets users evaluate ConstraintTemplates and Constraints outside the cluster, and newer versions add policy-library management commands.

### 项目历史

Gatekeeper's repository was created in 2018 as the Kubernetes admission-control project in the Open Policy Agent ecosystem. The README distinguishes modern Gatekeeper from earlier OPA sidecar and kube-mgmt usage, noting native Kubernetes CRDs, constraints, constraint templates, audit functionality, mutation, and external data support.

The gator CLI is documented as a Gatekeeper v3.11+ beta feature. The same official page notes that `go install` support requires Gatekeeper master or v3.16.0 and later, and that the `gator policy` subcommand is a v3.22+ alpha feature.

### 采用历史

Official gator installation paths include downloading binaries from Gatekeeper releases, building from source, and installing with Homebrew on macOS and Linux. Its adoption is tied to Gatekeeper users who want to test or manage policies before applying them to Kubernetes clusters.

### 使用方式

`gator test` evaluates Kubernetes objects against templates and constraints and reports violations through both output and exit status. `gator policy` provides a brew-inspired interface for discovering, installing, upgrading, and managing policies from the official gatekeeper-library.

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

gator matters because it packages policy validation and policy-library workflows into a local CLI, making Gatekeeper policy development fit into package-manager, CI, and preflight-test workflows rather than only live-cluster admission control.

### 时间线

- 2018: Gatekeeper repository created.
- 2019: v2.0.1 release published.
- 2023: v3.11.0 release line introduced the documented gator beta feature state.
- 2024: v3.16.0 became the documented minimum for `go install` of gator by version.
- 2026: v3.22.0 release line introduced the documented `gator policy` alpha feature state.

### Related projects

- gator is part of Open Policy Agent Gatekeeper and works with Gatekeeper ConstraintTemplates, Constraints, Kubernetes resources, and the official gatekeeper-library. The Gatekeeper README also relates the project to OPA with kube-mgmt.

### 来源

- <https://github.com/open-policy-agent/gatekeeper>
- <https://github.com/open-policy-agent/gatekeeper/releases>
- <https://open-policy-agent.github.io/gatekeeper/website/docs>
- <https://open-policy-agent.github.io/gatekeeper/website/docs/gator>


## 安全说明

narrow executable package without higher-risk signals.

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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
