# Install wasm-component-ld with Homebrew, apk, MacPorts, Nix, pacman

Linker for creating WebAssembly components. Version 0.5.28 via Homebrew; verified 2026-07-30. Also installable with nix: nix profile install nixpkgs#wasm-component-ld.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

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

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

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

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

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

## Package facts

- **Package key:** brew:wasm-component-ld
- **Package manager:** Homebrew
- **Version:** 0.5.28
- **Source summary:** Linker for creating WebAssembly components
- **Homepage:** <https://wasi.dev>
- **Repository:** <https://github.com/bytecodealliance/wasm-component-ld>
- **Last updated:** 2026-07-30T22:48:49Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- wasm-component-ld (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.5.28
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

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


## Sources

- 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
