# Install melange with Homebrew, apk, Nix, pacman, zypper

Build APKs from source code. Version 0.56.1 via Homebrew; verified 2026-07-06.

## Install

```sh
sudo av install brew:melange
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install melange
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add melange
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#melange
```

  Evidence: nixpkgs package indexes: pkgs/by-name/me/melange/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S melange
```

  Evidence: Arch Linux sync databases: melange from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install melange
```

  Evidence: openSUSE Tumbleweed package metadata: melange from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:melange
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/melange>
- **Version:** 0.56.1
- **Source summary:** Build APKs from source code
- **Homepage:** <https://github.com/chainguard-dev/melange>
- **Repository:** <https://github.com/chainguard-dev/melange>
- **Upstream docs:** <https://github.com/chainguard-dev/melange>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/chainguard-dev/melange/archive/refs/tags/v0.56.1.tar.gz>
- **Last updated:** 2026-07-06T04:50:02Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- melange (cli)
- melange (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.56.1
- Package-manager updated: 2026-07-06
- Local data: ok
- Upstream repository: https://github.com/chainguard-dev/melange
- Upstream latest detected: v0.56.1 (current)
## Project history and usage

melange is Chainguard's declarative build tool for producing APK packages from source. The README describes it as a pipeline-oriented APK builder commonly used for packages that feed container images built with apko, especially in the Wolfi and Alpine Linux ecosystems.

### Project history

The project was created for supply-chain-aware package production, where software is built into APK artifacts with controlled pipelines and provenance rather than copied directly into images. The README frames this as part of secure software factories: build and capture software artifacts into packages so images can be assembled from auditable components.

The v0.1.0 release appeared in June 2022. Since then melange has become a core piece of the Chainguard/Wolfi packaging stack, with release automation, multi-architecture support, QEMU-based emulation, pipeline libraries, package signing, and documentation for build files, pipelines, testing, and updates.

### Adoption history

melange's adoption is strongly tied to Wolfi, Chainguard Images, and apko-based image construction. The upstream README says the majority of its APKs are built for the Wolfi or Alpine Linux ecosystems, and the supplied package facts list Homebrew, Alpine, Nix, pacman, and openSUSE packaging.

For teams building minimal container images, melange provides a package-native alternative to ad hoc Dockerfile build steps. That makes it relevant in reproducible-build and SBOM-heavy workflows where APKs are easier to scan, sign, attest, and reuse.

### How it is used

A melange build file declares package metadata, build environment contents, pipeline steps, subpackages, and tests. The README shows melange build examples/gnu-hello.yaml and a containerized invocation with cgr.dev/chainguard/melange.

The tool writes architecture-specific APK outputs under a packages directory. It can generate signing keys with melange keygen and accepts --signing-key during builds.

### Why package nerds care

melange is package-nerd catnip because it brings distro-style package recipes into cloud-native image builds. It is small in concept but high leverage: YAML recipes, APK outputs, signing, pipelines, and apko integration let maintainers replace one-off container build scripts with reusable package metadata.

### Timeline

- 2022-06-02: Release v0.1.0 published.
- 2022 onward: melange used with apko, Wolfi, and Alpine-oriented APK production.
- 2026-06-29: Release v0.55.0 published with ongoing pipeline improvements.

### Related projects

- apko: Chainguard's tool for building OCI images from APK packages.
- Wolfi: the APK-based Linux distribution ecosystem frequently built with melange.
- Alpine Linux: the APK package ecosystem whose package format melange targets.

### Sources

- <https://github.com/chainguard-dev/melange>
- <https://github.com/chainguard-dev/melange/releases/tag/v0.1.0>
- <https://github.com/chainguard-dev/melange/releases/tag/v0.55.0>
- <https://github.com/chainguard-dev/melange/tree/main/docs>
- source_facts.package-manager-url


## Security Notes

No matching local secret-handling manifest was found for melange. Nucleus package metadata is still published here so future coverage has a stable package URL.



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: melange.yaml, melange.yml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** melange
- **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

## Other Package-Manager Records

- Nix - melange: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/melange/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - melange - 0.52.1-r0: normalized package name match | Alpine Linux edge package indexes: melange from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Build apk packages using declarative pipelines | https://github.com/chainguard-dev/melange
- apk - melange-bash-completion - 0.52.1-r0: normalized package name match | Alpine Linux edge package indexes: melange-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for melange | https://github.com/chainguard-dev/melange
- apk - melange-fish-completion - 0.52.1-r0: normalized package name match | Alpine Linux edge package indexes: melange-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for melange | https://github.com/chainguard-dev/melange
- apk - melange-zsh-completion - 0.52.1-r0: normalized package name match | Alpine Linux edge package indexes: melange-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for melange | https://github.com/chainguard-dev/melange
- pacman - melange - 0.52.0-1: normalized package name match | Arch Linux sync databases: melange from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Build APKs from source code | https://github.com/chainguard-dev/melange
- zypper - melange - 0.52.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: melange from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Build APKs from source code | https://github.com/chainguard-dev/melange
- zypper - melange-bash-completion - 0.52.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: melange-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash Completion for melange | https://github.com/chainguard-dev/melange
- zypper - melange-fish-completion - 0.52.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: melange-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Fish Completion for melange | https://github.com/chainguard-dev/melange
- zypper - melange-zsh-completion - 0.52.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: melange-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Zsh Completion for melange | https://github.com/chainguard-dev/melange


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [python-build](https://www.automicvault.com/pkg/brew/python-build/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, packaging.
- [yeet](https://www.automicvault.com/pkg/brew/yeet/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, packaging.
- [nfpm](https://www.automicvault.com/pkg/brew/nfpm/) - Shares av.db curated category or tags: apk, cli, developer-tools, packaging.
- [abi3audit](https://www.automicvault.com/pkg/brew/abi3audit/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [bmake](https://www.automicvault.com/pkg/brew/bmake/) - Shares av.db curated category or tags: build-system, build-tools, cli, developer-tools.
- [cargo-bundle](https://www.automicvault.com/pkg/brew/cargo-bundle/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [charmcraft](https://www.automicvault.com/pkg/brew/charmcraft/) - Shares av.db curated category or tags: cli, developer-tools, packaging.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Shares av.db curated category or tags: build-system, build-tools, cli, developer-tools.
- [ocamlbuild](https://www.automicvault.com/pkg/brew/ocamlbuild/) - Local metadata places this package in an adjacent workflow. Shared terms: build, build-system, build-tools, cli, developer.

## Combined YAML source

View the package source record on GitHub. [combined/melange.yml](https://github.com/automic-vault/db/blob/main/combined/melange.yml)


## Sources

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