Automic VaultAutomic Vault

brew

使用 Homebrew, apt, dnf, Nix, pacman, zypper 安装 lld

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install lld

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install lld

Debian stable package indexes · lld · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install lld

Fedora Rawhide package metadata · lld · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#lld

nixpkgs package indexes · lld · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S lld

Arch Linux sync databases · lld · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install lld

openSUSE Tumbleweed package metadata · lld · 来源: download.opensuse.org

概览

软件包摘要

LLVM Project Linker

命令和别名

  • ld.lld
  • ld64.lld
  • lld
  • lld-link
  • wasm-ld

历史

项目历史与用法

lld is the LLVM Project's linker. It packages the LLVM approach to modular compiler infrastructure into the final link step, offering fast drop-in linkers for ELF, COFF, Mach-O, and WebAssembly workflows.

项目历史

lld developed as part of the broader LLVM toolchain. The official documentation describes it as a drop-in replacement for system linkers that runs much faster than traditional linkers and is useful for toolchain developers.

The lld documentation emphasizes several design choices that matter to compiler users: GNU-compatible command-line behavior for ELF, cross-linking support for all built targets, embeddability through lld::lldMain, default LTO support with clang, and a smaller codebase than GNU gold in the 2017 comparison.

The LLVM monorepo model means lld is released with LLVM rather than as a fully separate upstream project. Homebrew's lld formula builds the lld subproject from llvm-project release tarballs while depending on the matching LLVM package.

采用历史

lld adoption followed clang and LLVM adoption: developers could select it through compiler-driver flags such as -fuse-ld=lld instead of replacing /usr/bin/ld directly.

It became especially attractive for large C/C++ builds, cross-compilation, WebAssembly, Windows COFF/PDB workflows, and LTO-heavy builds where linker speed and LLVM integration matter.

使用方式

The package installs linkers such as ld.lld, ld64.lld, lld-link, and wasm-ld. Unix users often reach it through clang's -fuse-ld=lld option, while Windows-style builds use lld-link and WebAssembly builds use wasm-ld.

For package-manager users, installing lld separately from a full compiler bundle can make it easier to test linker behavior, speed up builds, or build toolchains that intentionally mix compiler and linker components.

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

lld is a core systems package because a linker affects every compiled binary produced through a toolchain. Small packaging choices around version matching, bottle compatibility, and dependency edges can ripple into large build farms.

Homebrew packaging lld as its own formula, rather than only as part of llvm, reflects the Unix tradition of swapping toolchain components one piece at a time.

时间线

  • 2017: lld documentation compared lld/ELF with GNU gold and emphasized link-time performance and code-size differences.
  • 2024: LLVM 19.1.0 release notes were published for the LLVM 19 release line.
  • 2026: Homebrew formula metadata recorded lld built from llvm-project 22.1.8 release sources.

Related projects

  • lld is part of llvm-project alongside LLVM, Clang, compiler-rt, libc++, MLIR, and other toolchain subprojects.
  • It is related to GNU ld, GNU gold, mold, platform linkers such as Apple's ld64, and WebAssembly toolchains that use wasm-ld.

安全态势

尚未找到受保护工具覆盖

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

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ld.lldcli全局可执行文件
ld64.lldcli全局可执行文件
lldcli全局可执行文件
lld-linkcli全局可执行文件
wasm-ldcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本22.1.8
管理器更新时间2026-06-21
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/llvm/llvm-project

安装元数据

软件包元数据

软件包键brew:lld
版本22.1.8
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/lld
主页https://lld.llvm.org/
仓库https://github.com/llvm/llvm-project
上游文档https://lld.llvm.org/
许可证Apache-2.0 WITH LLVM-exception
源码归档https://github.com/llvm/llvm-project/releases/download/llvmorg-22.1.8/llvm-project-22.1.8.src.tar.xz
最后更新2026-06-21T01:50:33Z
Pulseupdated
依赖llvm, zstd
构建依赖cmake
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelld
Aliases
  • lld@22
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

lld 1:19.0-63

LLVM-based linker

sudo apt install lld
  • Section: devel
  • Architecture: amd64
  • Source Package: llvm-defaults
  • 1 依赖
  • normalized package name match
  • 匹配方式:Lld
Debian stable package indexes · deb.debian.org · Debian stable package indexes: lld from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

lld

nix profile install nixpkgs#lld
  • normalized package name match
  • 匹配方式:Lld
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: lld from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

lld 1:18.0-59~exp2

LLVM-based linker

sudo apt install lld
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: llvm-defaults
  • 1 依赖
  • normalized package name match
  • 匹配方式:Lld
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: lld from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

lld 22.1.7-1.fc45

The LLVM Linker

http://llvm.org

sudo dnf install lld
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Unspecified
  • Architecture: i686
  • Source Package: llvm
  • 13 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lld
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: lld from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

lld 22.1.6-1

Linker from the LLVM project

https://lld.llvm.org/

sudo pacman -S lld
  • License: Apache-2.0 WITH LLVM-exception
  • Architecture: x86_64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Lld
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: lld from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

lld 22-2.1

Linker for Clang/LLVM

https://lld.llvm.org/

sudo zypper install lld
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Development/Tools/Building
  • Architecture: x86_64
  • Source Package: llvm
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Lld
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lld from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment