# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.0.41
- **来源摘要:** Web Assembly Binary Toolkit
- **主页:** <https://github.com/WebAssembly/wabt>
- **仓库:** <https://github.com/WebAssembly/wabt>
- **最后更新:** 2026-05-07T20:22:26Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
