# 使用 Homebrew, MacPorts, Nix, scoop 安装 kops

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

## 安装

```sh
sudo av install brew:kops
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kops
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kops
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kops
```

  证据: nixpkgs package indexes: kops from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

### Windows

- Scoop (92%):

```sh
scoop install main/kops
```

  证据: Scoop official bucket manifest trees: bucket/kops.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:kops
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/kops>
- **版本:** 1.36.1
- **来源摘要:** Production Grade K8s Installation, Upgrades, and Management
- **主页:** <https://kops.sigs.k8s.io/>
- **仓库:** <https://github.com/kubernetes/kops>
- **上游文档:** <https://kops.sigs.k8s.io/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/kubernetes/kops/archive/refs/tags/v1.36.1.tar.gz>
- **最后更新:** 2026-07-28T20:08:55Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- kops (cli)
- kops (别名)

## 依赖

- kubernetes-cli

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.36.1
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://github.com/kubernetes/kops
- 检测到的最新版本: v1.36.1 (当前)
## 项目历史与用法

kOps, short for Kubernetes Operations, is one of the long-running Kubernetes cluster lifecycle tools. It is best known as a command-line way to create, upgrade, and maintain production-grade Kubernetes clusters while also provisioning the needed cloud infrastructure.

### 项目历史

The kOps repository was created under the Kubernetes GitHub organization on 2016-06-27, during the period when Kubernetes operators were still building practical tooling around cluster creation and upgrades. The README describes kOps as `kubectl` for clusters, reflecting its role as a higher-level administrative CLI rather than an application deployment tool.

Early release metadata shows v1.4.0-alpha.1 on 2016-09-08, with 1.4-era releases following in late 2016. The project then tracked Kubernetes minor versions closely enough that official docs describe a release cadence tied to Kubernetes releases, typically about a month later, after Kubernetes issues from a new version have had time to settle.

### 采用历史

kOps became important because it filled a gap before managed Kubernetes offerings covered every common operational need. Its official support matrix grew around cloud targets including AWS and GCP, with additional providers such as DigitalOcean, Hetzner, OpenStack, and Azure documented at different support levels.

GitHub repository metadata observed on 2026-07-01 reported 16,632 stars and 4,710 forks, unusually high for an infrastructure lifecycle CLI. Its presence in Homebrew, MacPorts, Nix, and Scoop reflects a user base split across workstation operators and automation hosts.

### 使用方式

kOps is commonly used to create cluster specifications, store cluster state, provision cloud infrastructure, and perform Kubernetes upgrades. It also writes or relies on kubeconfig credentials, so package users tend to pair it with `kubectl` and cloud provider credentials.

For package-manager users, the value is that installing one CLI gives access to a whole cluster lifecycle workflow rather than only a client for an already-existing control plane.

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

kOps is a classic Homebrew infrastructure formula: a single statically distributed CLI that hides a lot of distributed-systems machinery behind repeatable commands.

It also marks an era of Kubernetes packaging before every cloud had a polished managed-cluster console. Package indexes that carried kOps made serious Kubernetes cluster creation available from a developer laptop with one install command.

### 时间线

- 2016-06-27: GitHub repository created under kubernetes/kops.
- 2016-09-08: v1.4.0-alpha.1 appears in GitHub release metadata.
- 2016-12-21: v1.4.4 release published.
- 2026-07-01: GitHub repository metadata reported more than 16,000 stars and more than 4,700 forks.

### Related projects

- kOps is closely related to Kubernetes, kubectl, cloud provider CLIs, Terraform and CloudFormation workflows, and managed Kubernetes services.
- Within Kubernetes tooling culture, it sits beside kubeadm, Cluster API, eksctl, and cloud-specific cluster provisioning tools.

### 来源

- <https://api.github.com/repos/kubernetes/kops>
- <https://api.github.com/repos/kubernetes/kops/releases>
- <https://github.com/kubernetes/kops>
- <https://kops.sigs.k8s.io/>
- <https://kops.sigs.k8s.io/welcome/releases/>


## 安全说明

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: {state store}/config

## Credential files

- Unix: ~/.kube/config
## 源数据库详情

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

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

- Nix - kops: normalized package name match | nixpkgs package indexes: kops from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- MacPorts - kops: normalized package name match | MacPorts ports tree: devel/kops/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/kops: normalized package name match | Scoop official bucket manifest trees: bucket/kops.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure 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.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [kubernetes-cli](https://pkg.so/zh-hans/brew/kubernetes-cli/) - Runtime dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [k9s](https://pkg.so/zh-hans/brew/k9s/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [cmctl](https://pkg.so/zh-hans/brew/cmctl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [clusterctl](https://pkg.so/zh-hans/brew/clusterctl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [rke](https://pkg.so/zh-hans/brew/rke/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, cluster-management, kubernetes.
- [k3d](https://pkg.so/zh-hans/brew/k3d/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [ctlptl](https://pkg.so/zh-hans/brew/ctlptl/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.
- [openshift-cli](https://pkg.so/zh-hans/brew/openshift-cli/) - Shares pkgdb curated category or tags: cli, cloud-infrastructure, kubernetes.

## Combined YAML source

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


## 来源

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