# 使用 Homebrew, MacPorts, Nix, pacman, zypper 安装 operator-sdk

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

## 安装

```sh
sudo av install brew:operator-sdk
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install operator-sdk
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install operator-sdk
```

  证据: MacPorts ports tree: devel/operator-sdk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#operator-sdk
```

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

- pacman (92%):

```sh
sudo pacman -S operator-sdk
```

  证据: Arch Linux sync databases: operator-sdk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install operator-sdk
```

  证据: openSUSE Tumbleweed package metadata: operator-sdk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:operator-sdk
- **软件包管理器:** Homebrew
- **版本:** 1.42.3
- **来源摘要:** SDK for building Kubernetes applications
- **主页:** <https://sdk.operatorframework.io/>
- **仓库:** <https://github.com/operator-framework/operator-sdk>
- **最后更新:** 2026-06-26T21:39:12Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- helm-operator (别名)
- operator-sdk (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Operator SDK is the command-line and framework layer of the Kubernetes Operator Framework. It helps developers scaffold, build, test, package, and publish Operators: Kubernetes-native controllers that encode application operations such as install, upgrade, backup, failover, and day-two management.

### 项目历史

The Operator pattern was introduced by CoreOS in 2016 as a way to put human operational knowledge into Kubernetes controllers. Red Hat and the Kubernetes community announced the broader Operator Framework on 2018-05-01, with Operator SDK, Operator Lifecycle Manager, and metering as the original pillars.

Operator SDK's original role was to make controller development less repetitive: project scaffolding, custom resource definitions, generated manifests, build/test workflows, and common patterns over Kubernetes controller-runtime. The project later supported multiple authoring styles so teams could build Operators in Go, Ansible, or Helm depending on their operational logic and team skills.

Operator SDK reached v1.0 after almost two years of development, stabilizing around evolving Kubernetes extension APIs and best practices. CNCF accepted Operator Framework as an incubating project in 2020, which helped frame the SDK as part of a broader cloud-native ecosystem rather than only a Red Hat/OpenShift tool.

### 采用历史

Operator SDK spread because Kubernetes made custom controllers powerful but verbose. The SDK gave vendors and platform teams a repeatable way to create Operators for databases, storage systems, monitoring tools, security products, and application platforms while integrating with Operator Lifecycle Manager and OperatorHub distribution workflows.

Its adoption is tied to OpenShift and the wider OperatorHub ecosystem, but the SDK targets Kubernetes generally. Package managers carry it because developers often need the CLI locally to initialize projects, generate manifests, build bundles, run tests, and prepare operator metadata before pushing images or catalogs.

### 使用方式

A typical user runs operator-sdk init, creates APIs and controllers or Helm/Ansible watches, writes reconciliation logic, generates CRDs and RBAC, builds a container image, and packages the result as an Operator bundle. Go users work close to controller-runtime; Helm and Ansible users wrap existing charts, roles, and playbooks in a Kubernetes reconciliation loop.

Cluster administrators usually encounter the output rather than the SDK itself: installable Operators, bundles, and catalog entries managed by OLM or related tooling.

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

Operator SDK is important package-manager glue for Kubernetes developers because it turns a distributed-systems pattern into a local executable. Installing it gives a workstation the same scaffolding and bundle-generation behavior expected by CI pipelines and operator catalogs.

It also marks the moment Kubernetes packaging moved past YAML bundles: Operators became packages with controllers, CRDs, RBAC, lifecycle metadata, upgrade channels, and registry/catalog concerns.

### 时间线

- 2016: CoreOS introduces the Kubernetes Operator pattern.
- 2018-05-01: Red Hat announces the Operator Framework, including Operator SDK.
- 2020-07-09: CNCF announces Operator Framework as an incubating project.
- 2020: Operator SDK reaches v1.0 after almost two years of development.
- 2020s: Operator SDK continues to track Kubernetes, controller-runtime, Go, Helm, Ansible, OLM, and bundle-format changes.

### Related projects

- Operator SDK is related to Operator Framework, Operator Lifecycle Manager, OperatorHub, Kubebuilder, controller-runtime, Kubernetes CRDs, Helm, Ansible, OpenShift, and community-operators catalog repositories.

### 来源

- <https://github.com/operator-framework/operator-sdk>
- <https://operatorframework.io/>
- <https://sdk.operatorframework.io/>
- <https://sdk.operatorframework.io/docs/overview/>
- <https://www.cncf.io/blog/2020/07/09/toc-approves-operator-framework-as-incubating-project/>
- <https://www.redhat.com/en/blog/introducing-operator-framework-building-apps-kubernetes>
- <https://www.redhat.com/en/blog/operator-sdk-reaches-v1.0>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

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

- Nix - operator-sdk: normalized package name match | nixpkgs package indexes: pkgs/by-name/op/operator-sdk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - operator-sdk - 1.42.0-2: normalized package name match | Arch Linux sync databases: operator-sdk from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | SDK for building Kubernetes applications | https://github.com/operator-framework/operator-sdk
- zypper - operator-sdk - 1.42.3-1.3: normalized package name match | openSUSE Tumbleweed package metadata: operator-sdk from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | CLI for installing the Operator Lifecycle Manager | https://github.com/operator-framework/operator-sdk
- zypper - operator-sdk-bash-completion - 1.42.3-1.3: normalized package name match | openSUSE Tumbleweed package metadata: operator-sdk-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for operator-sdk | https://github.com/operator-framework/operator-sdk
- zypper - operator-sdk-fish-completion - 1.42.3-1.3: normalized package name match | openSUSE Tumbleweed package metadata: operator-sdk-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for operator-sdk | https://github.com/operator-framework/operator-sdk
- zypper - operator-sdk-zsh-completion - 1.42.3-1.3: normalized package name match | openSUSE Tumbleweed package metadata: operator-sdk-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for operator-sdk | https://github.com/operator-framework/operator-sdk
- MacPorts - operator-sdk: normalized package name match | MacPorts ports tree: devel/operator-sdk/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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