# 使用 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
- **版本:** 1.36.1
- **来源摘要:** Production Grade K8s Installation, Upgrades, and Management
- **主页:** <https://kops.sigs.k8s.io/>
- **仓库:** <https://github.com/kubernetes/kops>
- **最后更新:** 2026-07-28T20:08:55Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kops (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
