# Install binaryen with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

Compiler infrastructure and toolchain library for WebAssembly. Version 130 via Homebrew; verified 2026-06-01.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install binaryen
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install binaryen
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:binaryen
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/binaryen>
- **Version:** 130
- **Source summary:** Compiler infrastructure and toolchain library for WebAssembly
- **Homepage:** <https://webassembly.org/>
- **Repository:** <https://github.com/WebAssembly/binaryen>
- **Upstream docs:** <https://github.com/WebAssembly/binaryen#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/WebAssembly/binaryen/archive/refs/tags/version_130.tar.gz>
- **Last updated:** 2026-06-01T22:50:47Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- 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 (alias)
- wasm-ctor-eval (alias)
- wasm-dis (alias)
- wasm-emscripten-finalize (alias)
- wasm-fuzz-lattices (alias)
- wasm-fuzz-types (alias)
- wasm-merge (alias)
- wasm-metadce (alias)
- wasm-opt (alias)
- wasm-reduce (alias)
- wasm-shell (alias)
- wasm-split (alias)
- wasm2js (alias)

## Build dependencies

- cmake

## 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: 130
- Package-manager updated: 2026-06-01
- Local data: ok
- Upstream repository: https://github.com/WebAssembly/binaryen
- info: No cached GitHub release or tag data was available.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** orange / medium
- generalized runtime or code generation signal
- infrastructure mutation or orchestration signal

## Source Database Details

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

## Other Package-Manager Records

- 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


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [emscripten](https://www.automicvault.com/pkg/brew/emscripten/) - Shares av.db curated category or tags: cli, compiler, developer-tools, webassembly.
- [aarch64-elf-gcc](https://www.automicvault.com/pkg/brew/aarch64-elf-gcc/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [adaptivecpp](https://www.automicvault.com/pkg/brew/adaptivecpp/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [alive2](https://www.automicvault.com/pkg/brew/alive2/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [arm-none-eabi-gcc](https://www.automicvault.com/pkg/brew/arm-none-eabi-gcc/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [asn1c](https://www.automicvault.com/pkg/brew/asn1c/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [aspectj](https://www.automicvault.com/pkg/brew/aspectj/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [babel](https://www.automicvault.com/pkg/brew/babel/) - Shares av.db curated category or tags: cli, compiler, developer-tools.
- [spirv-tools](https://www.automicvault.com/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)


## Sources

- 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
