# opa を Homebrew, apk, zypper, scoop でインストール

opa のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:opa
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install opa
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add opa
```

  証拠: Alpine Linux edge package indexes: opa from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- zypper (92%):

```sh
sudo zypper install opa
```

  証拠: openSUSE Tumbleweed package metadata: opa from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/opa
```

  証拠: Scoop official bucket manifest trees: bucket/opa.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:opa
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.19.0
- **ソース概要:** Open source, general-purpose policy engine
- **ホームページ:** <https://www.openpolicyagent.org>
- **リポジトリ:** <https://github.com/open-policy-agent/opa>
- **最終更新:** 2026-07-30T21:12:07Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- opa (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.19.0
## プロジェクトの歴史と使われ方

Open Policy Agent, usually invoked as opa, is a general-purpose policy engine for policy-as-code. It lets teams move authorization and operational policy out of application code into Rego policies evaluated by a standalone binary, sidecar, library, or service integration.

### プロジェクトの歴史

OPA was created to provide a unified policy decision point across the stack. The official docs describe it as an open-source, general-purpose policy engine with simple APIs for offloading policy decisions and a high-level declarative language, Rego, for writing policies against structured data.

OPA entered the Cloud Native Computing Foundation on March 29, 2018, moved to Incubating on April 2, 2019, and reached Graduated maturity on January 29, 2021. CNCF's graduation announcement emphasized open governance, feature maturity, sustainability, and production use across cloud-native environments.

### 採用の歴史

By the 2021 CNCF graduation announcement, OPA had more than 90 contributors from roughly 30 organizations, maintainers from Google, Microsoft, VMware, and Styra, and production adoption at organizations including Goldman Sachs, Netflix, Pinterest, and T-Mobile. CNCF also reported survey data from more than 150 organizations, with 91% using OPA in some stage from QA to production.

OPA's ecosystem expanded through Kubernetes admission control, Envoy authorization, CI/CD checks, API gateways, service meshes, and infrastructure-as-code validation. Gatekeeper became the Kubernetes-native policy-controller companion, while related tools such as Conftest and OPA's official ecosystem entries made the opa binary useful both in clusters and in developer workflows.

### 使われ方

Developers write Rego policies and feed OPA JSON-like input and data. The opa CLI is used to run policies locally, test Rego, build bundles, evaluate decisions, and support CI checks; services can call OPA over APIs or embed policy evaluation into a broader control plane.

Platform and security teams use OPA to enforce Kubernetes admission rules, API authorization, deployment guardrails, configuration rules, and audit policies without hard-coding every rule in each application. The same policy language can be reused from local command-line checks to production admission controllers.

### パッケージ好きにとっての重要性

OPA is one of the canonical examples of a single CLI package representing a much larger cloud-native control-plane concept. The Homebrew formula is just opa, but the binary brings a policy language, evaluator, test runner, bundle format, server mode, WebAssembly targets, and a CNCF ecosystem with it.

### タイムライン

- 2018-03-29: OPA was accepted into the CNCF.
- 2019-04-02: OPA moved to CNCF Incubating maturity.
- 2019: Kubernetes Gatekeeper work helped make OPA a common choice for admission control and cluster policy.
- 2021-01-29: OPA reached CNCF Graduated maturity.
- 2021-02-04: CNCF announced OPA's graduation and summarized contributor, maintainer, and adopter data.

### Related projects

- Related projects include OPA Gatekeeper, Conftest, Rego Playground, Kubernetes admission webhooks, Envoy external authorization integrations, SPIFFE/SPIRE, Helm, CoreDNS, and other policy-as-code tooling.

### ソース

- <https://formulae.brew.sh/formula/opa>
- <https://kubernetes.io/blog/2019/08/06/opa-gatekeeper-policy-and-governance-for-kubernetes/>
- <https://openpolicyagent.org/ecosystem/entry/gatekeeper>
- <https://www.cncf.io/announcements/2021/02/04/cloud-native-computing-foundation-announces-open-policy-agent-graduation/>
- <https://www.cncf.io/projects/open-policy-agent-opa/>
- <https://www.openpolicyagent.org/docs>
- <https://www.openpolicyagent.org/docs/policy-language>


## セキュリティノート

opa に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## 他のパッケージマネージャ記録

- apk - opa - 1.15.2-r2: normalized package name match | Alpine Linux edge package indexes: opa from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Open source, general-purpose policy engine | https://www.openpolicyagent.org/
- apk - opa-bash-completion - 1.15.2-r2: normalized package name match | Alpine Linux edge package indexes: opa-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for opa | https://www.openpolicyagent.org/
- apk - opa-doc - 1.15.2-r2: normalized package name match | Alpine Linux edge package indexes: opa-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Open source, general-purpose policy engine (documentation) | https://www.openpolicyagent.org/
- apk - opa-fish-completion - 1.15.2-r2: normalized package name match | Alpine Linux edge package indexes: opa-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for opa | https://www.openpolicyagent.org/
- apk - opa-zsh-completion - 1.15.2-r2: normalized package name match | Alpine Linux edge package indexes: opa-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for opa | https://www.openpolicyagent.org/
- zypper - opa - 1.19.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: opa from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Open source, general-purpose policy engine | https://github.com/open-policy-agent/opa
- zypper - opa-bash-completion - 1.19.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: opa-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for opa | https://github.com/open-policy-agent/opa
- zypper - opa-fish-completion - 1.19.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: opa-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for opa | https://github.com/open-policy-agent/opa
- zypper - opa-zsh-completion - 1.19.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: opa-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for opa | https://github.com/open-policy-agent/opa
- Scoop - main/opa: normalized package name match | Scoop official bucket manifest trees: bucket/opa.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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