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

Modern Linker. Version 2.41.0 via Homebrew; verified 2026-04-13.

## Install

```sh
sudo av install brew:mold
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install mold
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install mold
```

  Evidence: MacPorts ports tree: devel/mold/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add mold
```

  Evidence: Alpine Linux edge package indexes: mold from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install mold
```

  Evidence: Debian stable package indexes: mold from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install mold
```

  Evidence: Fedora Rawhide package metadata: mold 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#mold
```

  Evidence: nixpkgs package indexes: mold from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S mold
```

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

- zypper (92%):

```sh
sudo zypper install mold
```

  Evidence: openSUSE Tumbleweed package metadata: mold from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/mold
```

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

## Package facts

- **Package key:** brew:mold
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/mold>
- **Version:** 2.41.0
- **Source summary:** Modern Linker
- **Homepage:** <https://github.com/rui314/mold>
- **Repository:** <https://github.com/rui314/mold>
- **Upstream docs:** <https://github.com/rui314/mold#readme>
- **License:** MIT
- **Source archive:** <https://github.com/rui314/mold/archive/refs/tags/v2.41.0.tar.gz>
- **Last updated:** 2026-04-13T15:23:38Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ld.mold (cli)
- mold (cli)
- ld.mold (alias)
- mold (alias)

## Dependencies

- blake3
- tbb
- zstd

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Caveats: Support for Mach-O targets has been removed.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.41.0
- Package-manager updated: 2026-04-13
- Local data: ok
- Upstream repository: https://github.com/rui314/mold
- Upstream latest detected: v2.41.0 (current)
## Project history and usage

mold is Rui Ueyama's high-speed linker, positioned as a drop-in replacement for existing Unix linkers. The project README says Ueyama had earlier developed LLVM lld and presents mold as several times faster than lld on large debuginfo-enabled binaries, targeting shorter debug-edit-rebuild cycles for C, C++, Rust, and other compiled-language projects.

### Project history

The 1.0 release was published as the first stable, production-ready release for Linux-based systems and described mold as a faster replacement for the default GNU linker for many user-land programs. That release also framed Ueyama's linker background as part of the project's credibility. Toolchain adoption followed quickly: GCC 12 gained -fuse-ld=mold support, putting mold alongside BFD, gold, and lld as an explicit compiler-driver linker choice.

### Adoption history

mold's technical niche is compatibility plus parallel performance. It competes directly with GNU ld, GNU gold, and LLVM lld, with FOSDEM material describing it as a fast portable ELF linker and arguing that it gained importance for GNU toolchain users because it supports GCC features that matter for large projects. The README documents support across many architectures and explains usage as either invoking mold directly or selecting it through compiler flags.

### How it is used

The 2.0.0 release changed the license from AGPL to MIT after the AGPL/commercial dual-licensing approach failed to meet the project's goals. That license change expanded mold's packaging and adoption path, making it easier for distributions, build systems, and commercial users to choose it without copyleft-linking concerns.

### Sources

- <https://archive.fosdem.org/2024/schedule/event/fosdem-2024-2606-can-the-mold-linker-be-usr-bin-ld-/>
- <https://github.com/rui314/mold>
- <https://github.com/rui314/mold/releases/tag/v1.0.0>
- <https://github.com/rui314/mold/releases/tag/v2.0.0>
- <https://www.phoronix.com/news/GCC-12-Mold-Linker>


## Security Notes

narrow executable package without higher-risk signals.

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** mold
- **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 - mold - 2.37.1+dfsg-1: normalized package name match | Debian stable package indexes: mold from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Drop-in linker | https://github.com/rui314/mold
- Nix - mold: normalized package name match | nixpkgs package indexes: mold from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - mold - 2.30.0+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mold from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Drop-in linker | https://github.com/rui314/mold
- apk - mold - 2.39.1-r0: normalized package name match | Alpine Linux edge package indexes: mold from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | fast modern linker | https://github.com/rui314/mold
- apk - mold-doc - 2.39.1-r0: normalized package name match | Alpine Linux edge package indexes: mold-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | fast modern linker (documentation) | https://github.com/rui314/mold
- dnf - mold - 2.41.0-1.fc45: normalized package name match | Fedora Rawhide package metadata: mold from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A Modern Linker | https://github.com/rui314/mold
- pacman - mold - 2.41.0-1: normalized package name match | Arch Linux sync databases: mold from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A Modern Linker | https://github.com/rui314/mold
- zypper - mold - 2.41.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: mold from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Modern Linker (mold) | https://github.com/rui314/mold
- MacPorts - mold: normalized package name match | MacPorts ports tree: devel/mold/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/mold: normalized package name match | Scoop official bucket manifest trees: bucket/mold.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [lld](https://www.automicvault.com/pkg/brew/lld/) - Shares av.db curated category or tags: cli, compiler-toolchain, developer-tools, linker.
- [bold](https://www.automicvault.com/pkg/brew/bold/) - Shares av.db curated category or tags: cli, developer-tools, linker.
- [wasm-component-ld](https://www.automicvault.com/pkg/brew/wasm-component-ld/) - Shares av.db curated category or tags: cli, developer-tools, linker.
- [dwarf](https://www.automicvault.com/pkg/brew/dwarf/) - Shares av.db curated category or tags: cli, developer-tools, elf, mach-o.
- [elfx86exts](https://www.automicvault.com/pkg/brew/elfx86exts/) - Shares av.db curated category or tags: cli, developer-tools, elf, mach-o.
- [m68k-elf-binutils](https://www.automicvault.com/pkg/brew/m68k-elf-binutils/) - Shares av.db curated category or tags: cli, developer-tools, elf, linker.
- [aarch64-elf-binutils](https://www.automicvault.com/pkg/brew/aarch64-elf-binutils/) - Shares av.db curated category or tags: build-tools, cli, developer-tools, linker.
- [abi-dumper](https://www.automicvault.com/pkg/brew/abi-dumper/) - Shares av.db curated category or tags: cli, developer-tools, elf.

## Combined YAML source

View the package source record on GitHub. [combined/mold.yml](https://github.com/automic-vault/db/blob/main/combined/mold.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
