# 使用 Homebrew, apk, MacPorts, Nix, zypper 安装 muon

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

## 安装

```sh
sudo av install brew:muon
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install muon
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install muon
```

  证据: MacPorts ports tree: devel/muon/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add muon
```

  证据: Alpine Linux edge package indexes: muon from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#muon
```

  证据: nixpkgs package indexes: pkgs/by-name/mu/muon/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install muon
```

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

## 软件包事实

- **软件包键:** brew:muon
- **软件包管理器:** Homebrew
- **版本:** 0.6.0
- **来源摘要:** Meson-compatible build system
- **主页:** <https://muon.build>
- **最后更新:** 2026-07-13T02:17:08Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- muon (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

muon is a C99 implementation of the Meson build system with minimal dependencies. Its README states the design goal directly: interpret Meson projects, provide Meson-adjacent tooling, and compile to a single portable binary for Linux, Windows, and macOS. The same README credits the author's earlier idea to reimplement Meson in C and says the project was initially inspired by boson, with muon's code originally based on boson and later mostly rewritten.

### 项目历史

The tool's role is practical rather than ceremonial compatibility. muon interprets `meson.build` files and emits backend build files, with the ordinary workflow of `muon setup`, invoking Ninja or its built-in Samurai-derived backend, running tests, and installing. It also grew developer-facing subcommands around the Meson language: `muon analyze` for static analysis and language-server use, `muon fmt` for formatting, and an interactive stepping debugger. The project describes itself as close to feature-complete with Meson for C-like languages while leaving some less common Meson options, modules, dependency special cases, and non-C-like language support outside the main path.

### 使用方式

In package-manager terms, muon sits beside Meson, Ninja, and Samurai as a lean build-system implementation for users who want Meson project support with a small C binary and fewer runtime dependencies. FreeBSD packaging notes emphasize that muon does not aim for bug-for-bug or CLI compatibility with Meson and uses Meson's official documentation as its specification, which is why distributions package it as `muon`, `muon-meson`, or related names rather than a transparent Meson replacement.

### 来源

- <https://formulae.brew.sh/formula/muon>
- <https://github.com/muon-build/muon>
- <https://www.freshports.org/devel/muon/>
- <https://www.mankier.com/1/muon>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 其他软件包管理器记录

- Nix - muon: normalized package name match | nixpkgs package indexes: pkgs/by-name/mu/muon/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - abuild-muon - 0.6.0-r1: normalized package name match | Alpine Linux edge package indexes: abuild-muon from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Meson-compatible build system (abuild helper) | https://muon.build
- apk - muon - 0.6.0-r1: normalized package name match | Alpine Linux edge package indexes: muon from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Meson-compatible build system | https://muon.build
- apk - muon-doc - 0.6.0-r1: normalized package name match | Alpine Linux edge package indexes: muon-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Meson-compatible build system (documentation) | https://muon.build
- apk - muon-wrap - 0.6.0-r1: normalized package name match | Alpine Linux edge package indexes: muon-wrap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Meson-compatible build system (with wrap-file support) | https://muon.build
- zypper - muon - 0.5.0-1.6: normalized package name match | openSUSE Tumbleweed package metadata: muon from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | An implementation of the meson build system in c99 | https://muon.build/
- MacPorts - muon: normalized package name match | MacPorts ports tree: devel/muon/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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