macOS
brew install apkolocal Homebrew formula metadata
brew
Build OCI images from APK packages directly without Dockerfile. Version 1.2.23 via Homebrew; verified 2026-07-07.
install
brew install apkolocal Homebrew formula metadata
sudo apk add apkoAlpine Linux edge package indexes · apko · source: dl-cdn.alpinelinux.org
nix profile install nixpkgs#apkonixpkgs package indexes · pkgs/by-name/ap/apko/package.nix · source: api.github.com
sudo pacman -S apkoArch Linux sync databases · apko · source: geo.mirror.pkgbuild.com
sudo zypper install apkoopenSUSE Tumbleweed package metadata · apko · source: download.opensuse.org
overview
Build OCI images from APK packages directly without Dockerfile
history
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.
security posture
No matching local secret-handling manifest was found for apko. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
apko | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/chainguard-dev/apko
install metadata
| Package key | brew:apko |
|---|---|
| Version | 1.2.23 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/apko |
| Homepage | https://github.com/chainguard-dev/apko |
| Repository | https://github.com/chainguard-dev/apko |
| Upstream docs | https://edu.chainguard.dev/open-source/apko |
| License | Apache-2.0 |
| Source archive | https://github.com/chainguard-dev/apko/archive/refs/tags/v1.2.23.tar.gz |
| Last updated | 2026-07-07T15:33:11Z |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | apko |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
apko
nix profile install nixpkgs#apkoapko 0.9.0-r25
declarative APK-based container building tool with support for Sigstore signatures
https://github.com/chainguard-dev/apko
sudo apk add apkoapko-bash-completion 0.9.0-r25
Bash completions for apko
https://github.com/chainguard-dev/apko
sudo apk add apko-bash-completionapko-fish-completion 0.9.0-r25
Fish completions for apko
https://github.com/chainguard-dev/apko
sudo apk add apko-fish-completionapko-zsh-completion 0.9.0-r25
Zsh completions for apko
https://github.com/chainguard-dev/apko
sudo apk add apko-zsh-completionapko 1.2.15-1
Declarative APK-based container building tool with support for sigstore signatures
https://github.com/chainguard-dev/apko
sudo pacman -S apkoapko 1.2.16-1.1
Build OCI images from APK packages directly without Dockerfile
https://github.com/chainguard-dev/apko
sudo zypper install apkoapko-bash-completion 1.2.16-1.1
Bash Completion for apko
https://github.com/chainguard-dev/apko
sudo zypper install apko-bash-completionapko-fish-completion 1.2.16-1.1
Fish Completion for apko
https://github.com/chainguard-dev/apko
sudo zypper install apko-fish-completionapko-zsh-completion 1.2.16-1.1
Zsh Completion for apko
https://github.com/chainguard-dev/apko
sudo zypper install apko-zsh-completionsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.