# 使用 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
- **版本:** 1.38.0
- **来源摘要:** Tool to move from docker-compose to Kubernetes
- **主页:** <https://kompose.io/>
- **仓库:** <https://github.com/kubernetes/kompose>
- **最后更新:** 2026-07-27T21:58:40+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kompose (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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

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

- 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


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