# 使用 Homebrew 安装 gator

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gator
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:gator
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gator>
- **版本:** 3.23.0
- **来源摘要:** CLI Utility for Open Policy Agent Gatekeeper
- **主页:** <https://open-policy-agent.github.io/gatekeeper/>
- **仓库:** <https://github.com/open-policy-agent/gatekeeper>
- **上游文档:** <https://open-policy-agent.github.io/gatekeeper/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/open-policy-agent/gatekeeper/archive/refs/tags/v3.23.0.tar.gz>
- **最后更新:** 2026-07-29T16:04:59+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gator (cli)
- gator (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.23.0
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/open-policy-agent/gatekeeper
- 检测到的最新版本: v3.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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gator
- **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


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [checkov](https://pkg.so/zh-hans/brew/checkov/) - Shares pkgdb curated category or tags: cli, kubernetes, security.
- [kubescape](https://pkg.so/zh-hans/brew/kubescape/) - Shares pkgdb curated category or tags: cli, kubernetes, security.
- [terrascan](https://pkg.so/zh-hans/brew/terrascan/) - Shares pkgdb curated category or tags: cli, kubernetes, security.
- [kube-bench](https://pkg.so/zh-hans/brew/kube-bench/) - Shares pkgdb curated category or tags: cli, kubernetes, security.
- [roxctl](https://pkg.so/zh-hans/brew/roxctl/) - Shares pkgdb curated category or tags: cli, kubernetes, security.
- [netfetch](https://pkg.so/zh-hans/brew/netfetch/) - Shares pkgdb curated category or tags: cli, kubernetes, security.
- [gittuf](https://pkg.so/zh-hans/brew/gittuf/) - Shares pkgdb curated category or tags: cli, policy, security.
- [kubehound](https://pkg.so/zh-hans/brew/kubehound/) - Shares pkgdb curated category or tags: cli, kubernetes, security.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
