# apko を Homebrew, apk, Nix, pacman, zypper でインストール

apko のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:apko
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install apko
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add apko
```

  証拠: Alpine Linux edge package indexes: apko from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#apko
```

  証拠: nixpkgs package indexes: pkgs/by-name/ap/apko/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S apko
```

  証拠: Arch Linux sync databases: apko from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install apko
```

  証拠: openSUSE Tumbleweed package metadata: apko from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:apko
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.2.31
- **ソース概要:** Build OCI images from APK packages directly without Dockerfile
- **ホームページ:** <https://github.com/chainguard-dev/apko>
- **リポジトリ:** <https://github.com/chainguard-dev/apko>
- **最終更新:** 2026-08-03T03:05:03Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- apko (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.2.31
## プロジェクトの歴史と使われ方

apko is Chainguard's apk-based OCI image builder: it builds container images directly from APK package repositories and a declarative YAML file, without Dockerfiles or RUN steps. It belongs to the supply-chain-focused family of tools that treat packages, SBOMs, and reproducibility as first-class image-build inputs.

### プロジェクトの歴史

The public repository was created in February 2022. The README says apko was created by Chainguard because they needed secure, reproducible container images for their tooling, with speed important because images are rebuilt constantly for new versions and patches.

The design is explicitly declarative. Official docs state that apko files are YAML definitions of an image and that, unlike Dockerfiles, there is no equivalent of RUN statements. That restriction lets apko make stronger claims about image contents and reproducibility and generate metadata such as SBOMs.

apko is paired with melange, Chainguard's tool for building APK packages from source. The README frames melange plus apko as covering most use cases: package software into APKs with melange, then assemble minimal OCI images from those packages with apko.

### 採用の歴史

The README documents Homebrew installation, go install from source, and use of the cgr.dev/chainguard/apko container image. The supplied package metadata also records packaging in Alpine apk, Homebrew, Nix, pacman, and zypper, which fits a tool aimed at distro and container-package workflows.

GitHub repository metadata showed over 1.6k stars and an active release stream. The latest official release assets include signed binaries and checksums, reflecting packaging practices expected in supply-chain-oriented infrastructure tools.

### 使われ方

A typical apko file specifies APK repositories and packages under contents, then image metadata such as entrypoint, command, environment, accounts, paths, architectures, annotations, and layering. apko build writes a tar image, while apko publish pushes directly to a registry.

There is no fixed user config file location in the official docs; users pass an apko YAML file path to the CLI. The file can include another local file or a file from a remote git repository.

### パッケージ好きにとっての重要性

apko is important to package nerds because it moves image construction from shell-script layers to package-manager inputs. Instead of a Dockerfile mutating a filesystem, an image is a closure over APK repositories, package names, keys, accounts, paths, and metadata.

For distroless-style images, SBOM generation, rebuild speed, and bit-for-bit reproducibility, apko is a concrete example of packaging discipline influencing container image tooling.

### タイムライン

- 2022: Public chainguard-dev/apko repository created on GitHub.
- 2022: README quickstart already showed apk-package-based Alpine image builds and SBOM generation.
- 2022: Companion melange repository was created for building APK packages from source.
- 2026: Official release stream reached the v1.2.x series with signed multi-platform binaries.

### Related projects

- The README names melange as apko's sister tool for producing APK packages, and says apko's design is influenced by ko and distroless. It also points to kontain.me as related declarative image-building work.

### ソース

- <https://api.github.com/repos/chainguard-dev/apko>
- <https://api.github.com/repos/chainguard-dev/apko/releases>
- <https://api.github.com/repos/chainguard-dev/melange>
- <https://github.com/chainguard-dev/apko#readme>
- <https://github.com/chainguard-dev/apko/blob/main/docs/apko_file.md>
- source_facts.package-manager


## セキュリティノート

apko に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


## 他のパッケージマネージャ記録

- Nix - apko: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apko/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - apko - 0.9.0-r26: normalized package name match | Alpine Linux edge package indexes: apko from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | declarative APK-based container building tool with support for Sigstore signatures | https://github.com/chainguard-dev/apko
- apk - apko-bash-completion - 0.9.0-r26: normalized package name match | Alpine Linux edge package indexes: apko-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for apko | https://github.com/chainguard-dev/apko
- apk - apko-fish-completion - 0.9.0-r26: normalized package name match | Alpine Linux edge package indexes: apko-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for apko | https://github.com/chainguard-dev/apko
- apk - apko-zsh-completion - 0.9.0-r26: normalized package name match | Alpine Linux edge package indexes: apko-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for apko | https://github.com/chainguard-dev/apko
- pacman - apko - 1.2.25-1: normalized package name match | Arch Linux sync databases: apko from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Declarative APK-based container building tool with support for sigstore signatures | https://github.com/chainguard-dev/apko
- zypper - apko - 1.2.30-1.1: normalized package name match | openSUSE Tumbleweed package metadata: apko from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Build OCI images from APK packages directly without Dockerfile | https://github.com/chainguard-dev/apko
- zypper - apko-bash-completion - 1.2.30-1.1: normalized package name match | openSUSE Tumbleweed package metadata: apko-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for apko | https://github.com/chainguard-dev/apko
- zypper - apko-fish-completion - 1.2.30-1.1: normalized package name match | openSUSE Tumbleweed package metadata: apko-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for apko | https://github.com/chainguard-dev/apko
- zypper - apko-zsh-completion - 1.2.30-1.1: normalized package name match | openSUSE Tumbleweed package metadata: apko-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for apko | https://github.com/chainguard-dev/apko


## Combined YAML source

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