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

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

## 安装

```sh
sudo av install brew:wabt
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wabt
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wabt
```

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

### Linux

- apk (92%):

```sh
sudo apk add wabt
```

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

- Debian apt (92%):

```sh
sudo apt install wabt
```

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

- dnf (92%):

```sh
sudo dnf install wabt
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#wabt
```

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

- pacman (92%):

```sh
sudo pacman -S wabt
```

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

### Windows

- Scoop (92%):

```sh
scoop install extras/wabt
```

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

## 软件包事实

- **软件包键:** brew:wabt
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/wabt>
- **版本:** 1.0.41
- **来源摘要:** Web Assembly Binary Toolkit
- **主页:** <https://github.com/WebAssembly/wabt>
- **仓库:** <https://github.com/WebAssembly/wabt>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/WebAssembly/wabt/releases/download/1.0.41/wabt-1.0.41.tar.xz>
- **最后更新:** 2026-05-07T20:22:26Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- spectest-interp (cli)
- wasm-decompile (cli)
- wasm-interp (cli)
- wasm-objdump (cli)
- wasm-stats (cli)
- wasm-strip (cli)
- wasm-validate (cli)
- wasm2c (cli)
- wasm2wat (cli)
- wast2json (cli)
- wat-desugar (cli)
- wat2wasm (cli)
- spectest-interp (别名)
- wasm-decompile (别名)
- wasm-interp (别名)
- wasm-objdump (别名)
- wasm-stats (别名)
- wasm-strip (别名)
- wasm-validate (别名)
- wasm2c (别名)
- wasm2wat (别名)
- wast2json (别名)
- wat-desugar (别名)
- wat2wasm (别名)

## 依赖

- openssl@3

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

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

WABT, the WebAssembly Binary Toolkit, is the low-level command-line toolbox for reading, writing, validating, disassembling, interpreting, stripping, and converting WebAssembly modules.

### 项目历史

The WABT repository was created in September 2015, during WebAssembly's early design period. It lives under the WebAssembly GitHub organization and describes itself as a suite of tools for WebAssembly rather than a compiler front end or runtime.

WABT grew alongside WebAssembly's standardization. The WebAssembly Community Group reached initial browser consensus in 2017, the W3C publication history records the first public working draft in February 2018, and WebAssembly Core 1.0 became a W3C Recommendation on 5 December 2019. WABT's job throughout that period was to provide practical tools around the binary and text formats that implementers, compiler authors, and curious low-level users needed.

### 采用历史

The official WebAssembly advanced-tools page points low-level users toward tools for building and processing source files and generated binary content, especially compiler writers and people experimenting with the raw format. WABT became one of the default packages for that niche because it exposes the core format operations directly: text-to-binary, binary-to-text, validation, objdump-style inspection, interpretation, and test conversion.

### 使用方式

The most recognizable WABT commands are `wat2wasm` and `wasm2wat`, which translate between WebAssembly text format and binary format. The suite also includes `wasm-objdump`, `wasm-interp`, `wasm2c`, `wasm-strip`, `wasm-validate`, `wast2json`, `wasm-stats`, and `spectest-interp`, covering inspection, execution, C translation, section stripping, validation, and spec-test workflows.

In practice, WABT is used by people hand-writing WAT, debugging generated Wasm, checking whether a module validates, reducing binaries for test cases, converting spec tests into runnable artifacts, or inspecting compiler output without committing to a full browser or runtime.

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

WABT is significant because WebAssembly has a compact binary representation and a human-readable text representation, and developers constantly need to move between the two. For package nerds it is the binutils-like kit for Wasm: boring, sharp, scriptable tools that make the format observable.

Unlike the WebAssembly spec interpreter, which the WABT README characterizes as deliberately simple and specification-oriented, WABT is written in C/C++ and designed for easier integration into other systems. That makes it useful in build systems, tests, research tooling, and language-toolchain plumbing.

### 时间线

- 2015: The WebAssembly/wabt repository was created.
- 2017: WebAssembly browser implementers reached consensus on the initial MVP API and binary format.
- 2018: WebAssembly Core 1.0 entered W3C First Public Working Draft status.
- 2019: WebAssembly Core 1.0 became a W3C Recommendation.
- 2020s: WABT continued tracking WebAssembly feature work through tool feature flags and releases.

### Related projects

- WABT is adjacent to Emscripten, Binaryen, WebAssembly specifications, WASI, browser developer tools, and language compilers that emit Wasm. It is often used after a compiler has produced a module, or before a runtime consumes one.

### 来源

- <https://api.github.com/repos/WebAssembly/wabt>
- <https://github.com/WebAssembly/wabt>
- <https://webassembly.org/features/>
- <https://webassembly.org/getting-started/advanced-tools/>
- <https://webassembly.org/specs/>
- <https://www.w3.org/standards/history/wasm-core-1/>


## 安全说明

没有找到 wabt 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** wabt
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - wabt - 1.0.36+dfsg+~cs1.0.36-2: normalized package name match | Debian stable package indexes: wabt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | WebAssembly Binary Toolkit | https://github.com/WebAssembly/wabt
- Nix - wabt: normalized package name match | nixpkgs package indexes: pkgs/by-name/wa/wabt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - wabt - 1.0.34+dsfg2+~cs1.0.32-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: wabt from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | WebAssembly Binary Toolkit | https://github.com/WebAssembly/wabt
- apk - wabt - 1.0.41-r0: normalized package name match | Alpine Linux edge package indexes: wabt from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | WebAssembly binary toolkit | https://github.com/WebAssembly/wabt
- apk - wabt-doc - 1.0.41-r0: normalized package name match | Alpine Linux edge package indexes: wabt-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | WebAssembly binary toolkit (documentation) | https://github.com/WebAssembly/wabt
- dnf - wabt - 1.0.41-3.fc45: normalized package name match | Fedora Rawhide package metadata: wabt from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | The WebAssembly Binary Toolkit | https://github.com/WebAssembly/wabt
- pacman - wabt - 1.0.41-1: normalized package name match | Arch Linux sync databases: wabt from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The WebAssembly Binary Toolkit: a suite of tools for WebAssembly | https://github.com/WebAssembly/wabt
- MacPorts - wabt: normalized package name match | MacPorts ports tree: lang/wabt/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - extras/wabt: normalized package name match | Scoop official bucket manifest trees: bucket/wabt.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [halide](https://pkg.so/zh-hans/brew/halide/) - Popular package that depends on this formula.
- [cargo-component](https://pkg.so/zh-hans/brew/cargo-component/) - Shares pkgdb curated category or tags: cli, developer-tools, wasm, webassembly.
- [container2wasm](https://pkg.so/zh-hans/brew/container2wasm/) - Shares pkgdb curated category or tags: cli, developer-tools, wasm, webassembly.
- [binutils](https://pkg.so/zh-hans/brew/binutils/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools.
- [bison](https://pkg.so/zh-hans/brew/bison/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [yasm](https://pkg.so/zh-hans/brew/yasm/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [emscripten](https://pkg.so/zh-hans/brew/emscripten/) - Shares pkgdb curated category or tags: cli, developer-tools, webassembly.
- [re2c](https://pkg.so/zh-hans/brew/re2c/) - Shares pkgdb curated category or tags: cli, compiler-tools, developer-tools.
- [cargo-binutils](https://pkg.so/zh-hans/brew/cargo-binutils/) - Local package facts share a topical domain. Shared terms: binary, binary-tools, cli, developer, developer-tools.
- [thors-anvil](https://pkg.so/zh-hans/brew/thors-anvil/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, openssl, openssl-3.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
