Automic VaultAutomic Vault

brew

Install apko with Homebrew, apk, Nix, pacman, zypper

Build OCI images from APK packages directly without Dockerfile. Version 1.2.23 via Homebrew; verified 2026-07-07.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install apko

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add apko

Alpine Linux edge package indexes · apko · source: dl-cdn.alpinelinux.org

Nixverified · 92%
nix profile install nixpkgs#apko

nixpkgs package indexes · pkgs/by-name/ap/apko/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S apko

Arch Linux sync databases · apko · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install apko

openSUSE Tumbleweed package metadata · apko · source: download.opensuse.org

overview

Package summary

Build OCI images from APK packages directly without Dockerfile

Commands and aliases

  • apko

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
apkocliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version1.2.23
manager updated2026-07-07
local dataok
upstreamcurrent
latest detectedv1.2.23

https://github.com/chainguard-dev/apko

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:apko
Version1.2.23
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/apko
Homepagehttps://github.com/chainguard-dev/apko
Repositoryhttps://github.com/chainguard-dev/apko
Upstream docshttps://edu.chainguard.dev/open-source/apko
LicenseApache-2.0
Source archivehttps://github.com/chainguard-dev/apko/archive/refs/tags/v1.2.23.tar.gz
Last updated2026-07-07T15:33:11Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameapko
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

apko

nix profile install nixpkgs#apko
  • normalized package name match
  • Matched by: Apko
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ap/apko/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

apko 0.9.0-r25

declarative APK-based container building tool with support for Sigstore signatures

https://github.com/chainguard-dev/apko

sudo apk add apko
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: apko
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Apko
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: apko from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

apko-bash-completion 0.9.0-r25

Bash completions for apko

https://github.com/chainguard-dev/apko

sudo apk add apko-bash-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: apko
  • normalized package name match
  • Matched by: Apko
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: apko-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

apko-fish-completion 0.9.0-r25

Fish completions for apko

https://github.com/chainguard-dev/apko

sudo apk add apko-fish-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: apko
  • normalized package name match
  • Matched by: Apko
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: apko-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

apko-zsh-completion 0.9.0-r25

Zsh completions for apko

https://github.com/chainguard-dev/apko

sudo apk add apko-zsh-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: apko
  • normalized package name match
  • Matched by: Apko
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: apko-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

apko 1.2.15-1

Declarative APK-based container building tool with support for sigstore signatures

https://github.com/chainguard-dev/apko

sudo pacman -S apko
  • License: Apache-2.0
  • Architecture: x86_64
  • 3 dependencies
  • normalized package name match
  • Matched by: Apko
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: apko from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

apko 1.2.16-1.1

Build OCI images from APK packages directly without Dockerfile

https://github.com/chainguard-dev/apko

sudo zypper install apko
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: apko
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Apko
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: apko from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

apko-bash-completion 1.2.16-1.1

Bash Completion for apko

https://github.com/chainguard-dev/apko

sudo zypper install apko-bash-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: apko
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Apko
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: apko-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

apko-fish-completion 1.2.16-1.1

Fish Completion for apko

https://github.com/chainguard-dev/apko

sudo zypper install apko-fish-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: apko
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Apko
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: apko-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

apko-zsh-completion 1.2.16-1.1

Zsh Completion for apko

https://github.com/chainguard-dev/apko

sudo zypper install apko-zsh-completion
  • License: Apache-2.0
  • Category: System/Shells
  • Architecture: noarch
  • Source Package: apko
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Apko
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: apko-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment