# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, zypper 安装 binaryen

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

## 安装

```sh
sudo av install brew:binaryen
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install binaryen
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install binaryen
```

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

### Linux

- apk (92%):

```sh
sudo apk add binaryen
```

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

- Debian apt (92%):

```sh
sudo apt install binaryen
```

  证据: Debian stable package indexes: binaryen from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install binaryen
```

  证据: Fedora Rawhide package metadata: binaryen from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#binaryen
```

  证据: nixpkgs package indexes: binaryen from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S binaryen
```

  证据: Arch Linux sync databases: binaryen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install binaryen
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/binaryen
```

  证据: Scoop official bucket manifest trees: bucket/binaryen.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:binaryen
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/binaryen>
- **版本:** 130
- **来源摘要:** Compiler infrastructure and toolchain library for WebAssembly
- **主页:** <https://webassembly.org/>
- **仓库:** <https://github.com/WebAssembly/binaryen>
- **上游文档:** <https://github.com/WebAssembly/binaryen#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/WebAssembly/binaryen/archive/refs/tags/version_130.tar.gz>
- **最后更新:** 2026-06-01T22:50:47Z
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- wasm-as (cli)
- wasm-ctor-eval (cli)
- wasm-dis (cli)
- wasm-emscripten-finalize (cli)
- wasm-fuzz-lattices (cli)
- wasm-fuzz-types (cli)
- wasm-merge (cli)
- wasm-metadce (cli)
- wasm-opt (cli)
- wasm-reduce (cli)
- wasm-shell (cli)
- wasm-split (cli)
- wasm2js (cli)
- wasm-as (别名)
- wasm-ctor-eval (别名)
- wasm-dis (别名)
- wasm-emscripten-finalize (别名)
- wasm-fuzz-lattices (别名)
- wasm-fuzz-types (别名)
- wasm-merge (别名)
- wasm-metadce (别名)
- wasm-opt (别名)
- wasm-reduce (别名)
- wasm-shell (别名)
- wasm-split (别名)
- wasm2js (别名)

## 构建依赖

- cmake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 130
- 管理器更新时间: 2026-06-01
- 本地数据: OK
- 上游仓库: https://github.com/WebAssembly/binaryen
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Binaryen is the WebAssembly community's optimizer and compiler/toolchain infrastructure library, best known to package users through commands such as `wasm-opt`, `wasm-as`, `wasm-dis`, and `wasm2js`.

### 项目历史

The official repository was created on 2015-10-29, during WebAssembly's early standardization era. Binaryen's README describes it as a C++ compiler and toolchain infrastructure library with an IR designed to be easy, fast, and effective for WebAssembly optimization and code generation.

### 采用历史

Binaryen became a common toolchain component rather than just a standalone compiler. The official README lists Emscripten, wasm-pack, J2CL/J2Wasm, Kotlin/Wasm, Dart/Flutter Wasm, and wasm_of_ocaml as toolchains that run Binaryen components, typically `wasm-opt`; it also lists AssemblyScript, wasm2js, Asterius, and Grain as compilers or compiler-related projects using Binaryen as a library.

### 使用方式

Package users most often install Binaryen for `wasm-opt` to shrink or speed up `.wasm` artifacts, for `wasm-as` and `wasm-dis` to move between text-like and binary representations, for `wasm-merge`, `wasm-split`, and `wasm-reduce` in build/debug loops, and for `wasm2js` when a JavaScript fallback is needed.

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

Binaryen is package-nerd important because it is the small executable bundle that turns WebAssembly from a browser format into a normal Unix build artifact: optimize it, disassemble it, reduce it, merge it, split it, fuzz it, and ship it from CI. It sits in the same practical layer for Wasm that binutils, LLVM tools, and minifiers occupy for older ecosystems.

### 时间线

- 2015-10-29: GitHub repository created under the WebAssembly organization.
- 2018-07-23: Early GitHub release archive includes 1.38.9.
- 2018-10-11: GitHub release archive includes 1.38.13.
- 2026: Repository metadata shows active maintenance.

### Related projects

- Related projects include WebAssembly, Emscripten, WABT, LLVM, wasm-pack, AssemblyScript, wasm2js, Kotlin/Wasm, Dart/Flutter Wasm, Grain, and Asterius.

### 来源

- GitHub repository and release metadata from api.github.com.
- Official GitHub README.
- Packaged executable and package-manager facts from source_facts.


## 安全说明

generalized runtime or code generation signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- generalized runtime or code generation signal
- infrastructure mutation or orchestration signal

## 源数据库详情

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

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

- Debian apt - binaryen - 120-4: normalized package name match | Debian stable package indexes: binaryen from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | compiler and toolchain infrastructure library for WebAssembly | https://github.com/WebAssembly/binaryen
- Nix - binaryen: normalized package name match | nixpkgs package indexes: binaryen from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - binaryen - 108-1: normalized package name match | Ubuntu 24.04 LTS package indexes: binaryen from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | compiler and toolchain infrastructure library for WebAssembly | https://github.com/WebAssembly/binaryen
- apk - binaryen - 129-r0: normalized package name match | Alpine Linux edge package indexes: binaryen from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Compiler infrastructure and toolchain library for WebAssembly, in C++ | https://github.com/WebAssembly/binaryen
- apk - binaryen-dev - 129-r0: normalized package name match | Alpine Linux edge package indexes: binaryen-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Compiler infrastructure and toolchain library for WebAssembly, in C++ (development files) | https://github.com/WebAssembly/binaryen
- dnf - binaryen - 129-2.fc45: normalized package name match | Fedora Rawhide package metadata: binaryen from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Compiler and toolchain infrastructure library for WebAssembly | https://github.com/WebAssembly/binaryen
- pacman - binaryen - 1:130-1: normalized package name match | Arch Linux sync databases: binaryen from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Compiler infrastructure and toolchain library for WebAssembly, in C++ | https://github.com/WebAssembly/binaryen
- pacman - emscripten - 6.0.0-1: normalized package name match | Arch Linux sync databases: emscripten from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Compile C and C++ into highly-optimizable JavaScript for the web | https://emscripten.org
- zypper - binaryen - 123-1.3: normalized package name match | openSUSE Tumbleweed package metadata: binaryen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Compiler infrastructure and toolchain library for WebAssembly | https://github.com/WebAssembly/binaryen
- zypper - libbinaryen - 123-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libbinaryen from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Library for binaryen | https://github.com/WebAssembly/binaryen
- zypper - libbinaryen-devel - 123-1.3: normalized package name match | openSUSE Tumbleweed package metadata: libbinaryen-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for libbinaryen | https://github.com/WebAssembly/binaryen
- MacPorts - binaryen: normalized package name match | MacPorts ports tree: lang/binaryen/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/binaryen: normalized package name match | Scoop official bucket manifest trees: bucket/binaryen.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://www.automicvault.com/zh-hans/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [emscripten](https://www.automicvault.com/zh-hans/pkg/brew/emscripten/) - Shares av.db curated category or tags: cli, compiler, developer-tools, webassembly.
- [aarch64-elf-gcc](https://www.automicvault.com/zh-hans/pkg/brew/aarch64-elf-gcc/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [adaptivecpp](https://www.automicvault.com/zh-hans/pkg/brew/adaptivecpp/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [alive2](https://www.automicvault.com/zh-hans/pkg/brew/alive2/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [arm-none-eabi-gcc](https://www.automicvault.com/zh-hans/pkg/brew/arm-none-eabi-gcc/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [asn1c](https://www.automicvault.com/zh-hans/pkg/brew/asn1c/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [aspectj](https://www.automicvault.com/zh-hans/pkg/brew/aspectj/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [babel](https://www.automicvault.com/zh-hans/pkg/brew/babel/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [spirv-tools](https://www.automicvault.com/zh-hans/pkg/brew/spirv-tools/) - Local package facts share a topical domain. Shared terms: cli, compiler, developer, developer-tools, dis.

## Combined YAML source

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


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
