# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper, scoop, winget 安装 kompose

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

## 安装

```sh
sudo av install brew:kompose
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install kompose
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kompose
```

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

### Linux

- apk (92%):

```sh
sudo apk add kompose
```

  证据: Alpine Linux edge package indexes: kompose from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#kompose
```

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

- pacman (92%):

```sh
sudo pacman -S kompose
```

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

- zypper (92%):

```sh
sudo zypper install kompose
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/kompose
```

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

- winget (92%):

```sh
winget install --id Kubernetes.kompose -e
```

  证据: Windows Package Manager source index: Kubernetes.kompose from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:kompose
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/kompose>
- **版本:** 1.38.0
- **来源摘要:** Tool to move from docker-compose to Kubernetes
- **主页:** <https://kompose.io/>
- **仓库:** <https://github.com/kubernetes/kompose>
- **上游文档:** <https://kompose.io/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/kubernetes/kompose/archive/refs/tags/v1.38.0.tar.gz>
- **最后更新:** 2026-07-27T21:58:40+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- kompose (cli)
- kompose (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

Kompose, short for Kubernetes plus Compose, is a migration utility that translates Compose Specification files into Kubernetes resources. It sits at the boundary between the Docker Compose developer workflow and Kubernetes manifests, helping users get a first Kubernetes deployment without manually rewriting every service, volume, and network concept.

### 项目历史

The repository was created on 2016-06-27, during the period when Kubernetes adoption was expanding beyond early cluster operators. The first alpha release, v0.0.1-alpha, was published on 2016-07-01. The v1.0.0 release on 2017-07-20 announced graduation from Kubernetes Incubator and a move to the `kubernetes/kompose` repository.

Kompose's README defines the core contract: take a Compose file and translate it into Kubernetes resources. The project documentation is hosted at kompose.io and in the repository's docs tree, with user-guide material for conversion, labels, commands, and operational workflows.

### 采用历史

Kompose became a standard package-manager-visible bridge for teams moving from local Compose applications toward Kubernetes. Its Homebrew formula and binary releases made it easy to add to developer laptops, while Kubernetes ownership gave it a clear place inside the broader container tooling ecosystem.

### 使用方式

The common workflow is `kompose convert -f compose.yaml`, which emits Kubernetes YAML such as Deployments and Services. The project warns that conversion from Compose to Kubernetes may not be exact, framing Kompose as a convenience and migration aid rather than a perfect semantic compiler.

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

For package nerds, Kompose is interesting because it packages a cross-orchestrator translation problem into one CLI. It also records the history of container tooling convergence: Compose was the local-development lingua franca, while Kubernetes became the deployment API that package managers needed to put on workstations.

### 时间线

- 2016-06-27: GitHub repository created.
- 2016-07-01: v0.0.1-alpha published.
- 2017-07-20: v1.0.0 published and Kubernetes Incubator graduation announced.

### Related projects

- Kompose is directly related to Docker Compose, the Compose Specification, Kubernetes, kubectl, and the historical Kubernetes Incubator organization.

### 来源

- <https://api.github.com/repos/kubernetes/kompose>
- <https://github.com/kubernetes/kompose>
- <https://github.com/kubernetes/kompose/releases/tag/v0.0.1-alpha>
- <https://github.com/kubernetes/kompose/releases/tag/v1.0.0>
- <https://kompose.io/user-guide/>
- <https://raw.githubusercontent.com/kubernetes/kompose/main/README.md>


## 安全说明

infrastructure mutation or orchestration signal.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** kompose
- **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 - kompose: normalized package name match | nixpkgs package indexes: pkgs/by-name/ko/kompose/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - kompose - 1.31.2-r21: normalized package name match | Alpine Linux edge package indexes: kompose from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Tool to move from docker-compose to Kubernetes | https://kompose.io/
- apk - kompose-bash-completion - 1.31.2-r21: normalized package name match | Alpine Linux edge package indexes: kompose-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for kompose | https://kompose.io/
- apk - kompose-fish-completion - 1.31.2-r21: normalized package name match | Alpine Linux edge package indexes: kompose-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for kompose | https://kompose.io/
- apk - kompose-zsh-completion - 1.31.2-r21: normalized package name match | Alpine Linux edge package indexes: kompose-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for kompose | https://kompose.io/
- pacman - kompose - 1.38.0-1: normalized package name match | Arch Linux sync databases: kompose from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Docker compose to Kubernetes transformation tool | https://github.com/kubernetes/kompose
- zypper - kompose - 1.38.0-1.7: normalized package name match | openSUSE Tumbleweed package metadata: kompose from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Go from Docker Compose to Kubernetes | https://kompose.io
- zypper - kompose-bash-completion - 1.38.0-1.7: normalized package name match | openSUSE Tumbleweed package metadata: kompose-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for kompose | https://kompose.io
- zypper - kompose-fish-completion - 1.38.0-1.7: normalized package name match | openSUSE Tumbleweed package metadata: kompose-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for kompose | https://kompose.io
- zypper - kompose-zsh-completion - 1.38.0-1.7: normalized package name match | openSUSE Tumbleweed package metadata: kompose-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for kompose | https://kompose.io
- MacPorts - kompose: normalized package name match | MacPorts ports tree: devel/kompose/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/kompose: normalized package name match | Scoop official bucket manifest trees: bucket/kompose.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Kubernetes.kompose: normalized package name match | Windows Package Manager source index: Kubernetes.kompose from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [minikube](https://pkg.so/zh-hans/brew/minikube/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, kubernetes.
- [cri-tools](https://pkg.so/zh-hans/brew/cri-tools/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, kubernetes.
- [kubeconform](https://pkg.so/zh-hans/brew/kubeconform/) - Shares pkgdb curated category or tags: cli, developer-tools, kubernetes.
- [kind](https://pkg.so/zh-hans/brew/kind/) - Shares pkgdb curated category or tags: cli, developer-tools, kubernetes.
- [kubectx](https://pkg.so/zh-hans/brew/kubectx/) - Shares pkgdb curated category or tags: cli, developer-tools, kubernetes.
- [kubelogin](https://pkg.so/zh-hans/brew/kubelogin/) - Shares pkgdb curated category or tags: cli, developer-tools, kubernetes.
- [krew](https://pkg.so/zh-hans/brew/krew/) - Shares pkgdb curated category or tags: cli, developer-tools, kubernetes.
- [kube-linter](https://pkg.so/zh-hans/brew/kube-linter/) - Shares pkgdb curated category or tags: cli, developer-tools, kubernetes.
- [lazydocker](https://pkg.so/zh-hans/brew/lazydocker/) - Local package facts share a topical domain. Shared terms: cli, compose, containers, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/kompose.yml](https://github.com/mxcl/pkgdb/blob/main/combined/kompose.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
- external package-manager database matches
- cross-ecosystem install command graph
