# 使用 Homebrew, apk, Nix, pacman, zypper 安装 melange

查看 melange 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install melange
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add melange
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: melange from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:melange
- **软件包管理器:** Homebrew
- **版本:** 0.56.5
- **来源摘要:** Build APKs from source code
- **主页:** <https://github.com/chainguard-dev/melange>
- **仓库:** <https://github.com/chainguard-dev/melange>
- **最后更新:** 2026-08-03T03:52:01Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- melange (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.56.5
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

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

### 来源

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


## 安全说明

没有找到 melange 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 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
## 其他软件包管理器记录

- 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.56.4-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.56.4-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.56.4-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.56.4-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.56.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: melange from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Build APKs from source code | https://github.com/chainguard-dev/melange
- zypper - melange-bash-completion - 0.56.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: melange-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for melange | https://github.com/chainguard-dev/melange
- zypper - melange-fish-completion - 0.56.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: melange-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for melange | https://github.com/chainguard-dev/melange
- zypper - melange-zsh-completion - 0.56.4-1.1: normalized package name match | openSUSE Tumbleweed package metadata: melange-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for melange | https://github.com/chainguard-dev/melange


## Combined YAML source

View the package source record on GitHub. [combined/melange.yml](https://github.com/mxcl/pkgdb/blob/main/combined/melange.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
