# 使用 Homebrew, apk, MacPorts, Nix, pacman 安装 wasm-component-ld

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

## 安装

```sh
sudo av install brew:wasm-component-ld
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wasm-component-ld
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install wasm-component-ld
```

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

### Linux

- apk (92%):

```sh
sudo apk add wasm-component-ld
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#wasm-component-ld
```

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

- pacman (92%):

```sh
sudo pacman -S wasm-component-ld
```

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

## 软件包事实

- **软件包键:** brew:wasm-component-ld
- **软件包管理器:** Homebrew
- **版本:** 0.5.28
- **来源摘要:** Linker for creating WebAssembly components
- **主页:** <https://wasi.dev>
- **仓库:** <https://github.com/bytecodealliance/wasm-component-ld>
- **最后更新:** 2026-07-30T22:48:49Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wasm-component-ld (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

wasm-component-ld is a Bytecode Alliance command-line linker for producing WebAssembly components. It sits at the boundary between traditional object linking and the WebAssembly component model, wrapping LLVM's `wasm-ld` flow and then componentizing the result.

### 项目历史

The repository was created on December 12, 2023, as the component model was becoming a practical build target rather than only a specification. Its README describes the binary as a wrapper around two operations: invoking the LLVM `wasm-ld` linker driver and then using `wit_component::ComponentEncoder` to produce a final component.

The project is intentionally small and specialized. It exists because component-model artifacts need more than a core Wasm link step: metadata, WIT interfaces, adapters, and component encoding have to line up with the component model's interoperability contract.

### 采用历史

wasm-component-ld follows the broader Bytecode Alliance push around WASI and the component model. The official component-model documentation frames components as a way to build interoperable WebAssembly libraries, applications, and environments, with user documentation for building, using, composing, and distributing components.

### 使用方式

The package is used by developers and language toolchain authors who need a command-line linker that emits a component rather than only a core module. In practice it belongs near C, C++, and other non-Rust workflows where LLVM already produces Wasm object files and the final artifact must become a component.

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

Its significance is not broad end-user adoption but toolchain plumbing. For package maintainers, it marks the arrival of component-model-specific linker binaries as installable system tools, similar to how `wasm-ld`, `wasm-tools`, and `wit-bindgen` occupy distinct slots in a modern Wasm toolchain.

### 时间线

- 2023-12-12: Public GitHub repository created.
- 2024-2026: Releases track ongoing component-model tooling work.
- 2026-06-12: GitHub releases list v0.5.25 as the latest release at research time.

### Related projects

- Related Bytecode Alliance tooling includes wasm-tools for inspecting and manipulating modules and components, wit-bindgen for interface bindings, cargo-component for Rust component builds, and LLVM's wasm-ld linker.

### 来源

- <https://api.github.com/repos/bytecodealliance/wasm-component-ld>
- <https://component-model.bytecodealliance.org/>
- <https://github.com/bytecodealliance/wasm-component-ld>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Nix - wasm-component-ld: normalized package name match | nixpkgs package indexes: pkgs/by-name/wa/wasm-component-ld/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - wasm-component-ld - 1.97.0-r0: normalized package name match | Alpine Linux edge package indexes: wasm-component-ld from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Command line linker for creating WebAssembly components | https://github.com/bytecodealliance/wasm-component-ld
- pacman - wasm-component-ld - 0.5.28-1: normalized package name match | Arch Linux sync databases: wasm-component-ld from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Command line linker for creating WebAssembly components | https://github.com/bytecodealliance/wasm-component-ld
- MacPorts - wasm-component-ld: normalized package name match | MacPorts ports tree: lang/wasm-component-ld/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/wasm-component-ld.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wasm-component-ld.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
