Automic VaultAutomic Vault

brew

Install ldc with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, zypper

Portable D programming language compiler. Version 1.42.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install ldc

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install ldc

MacPorts ports tree · lang/ldc/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add ldc

Alpine Linux edge package indexes · ldc · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install ldc

Debian stable package indexes · ldc · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install ldc

Fedora Rawhide package metadata · ldc · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#ldc

nixpkgs package indexes · pkgs/by-name/ld/ldc/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S ldc

Arch Linux sync databases · ldc · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install ldc

openSUSE Tumbleweed package metadata · ldc · source: download.opensuse.org

overview

Package summary

Portable D programming language compiler

Commands and aliases

  • ldc-build-plugin
  • ldc-build-runtime
  • ldc-profdata
  • ldc-profgen
  • ldc-prune-cache
  • ldc2
  • ldmd2
  • timetrace2txt

history

Project history and usage

LDC is the LLVM-backed compiler for the D programming language, pairing the D frontend and runtime libraries with LLVM code generation and optimization.

Project history

LDC emerged to give D programmers an LLVM-based alternative to the reference DMD compiler and GCC's GDC. The project README describes the compiler as using the official DMD frontend and LLVM as backend, with the ldc2 command as the main compiler driver.

The project evolved from early experimental D compiler work into a regular release train maintained by the ldc-developers organization. Its changelog shows the ongoing maintenance burden that matters for compilers: tracking D frontend/druntime/Phobos versions, LLVM versions, target ABI changes, platform support, and prebuilt binary packaging.

By the 1.x series, LDC had become a practical production compiler for D, not just a backend experiment. Its release notes repeatedly call out supported LLVM ranges, bundled LLVM versions for prebuilt packages, cross-compilation work, and platform fixes across Linux, macOS, Windows, Android, Alpine/musl, RISC-V, PowerPC, and other targets.

Adoption history

LDC's adoption is tied to D users who want LLVM optimization, broader target support, link-time optimization, and packaging-friendly prebuilt compilers. Package-manager coverage across Homebrew, Debian, Ubuntu, Fedora-family systems, Alpine, Arch, Nix, Scoop, Chocolatey, MacPorts, and openSUSE-family systems reflects that it is one of the standard ways to install a D compiler.

The project also matters to downstream packagers because its behavior depends on matching D frontend/runtime versions to LLVM support windows. The changelog's repeated packaging notes, glibc baseline changes, installer changes, and bundled-runtime details are signals of a mature compiler package rather than a small standalone CLI.

How it is used

Users invoke ldc2 to compile D programs, use ldmd2 for DMD-compatible command-line behavior, and rely on helper tools such as ldc-build-runtime, ldc-build-plugin, ldc-profdata, ldc-profgen, and timetrace2txt for runtime building, plugin workflows, profiling, and build-time analysis.

The compiler is commonly selected when D code needs LLVM optimization, cross-compilation targets, sanitizer or profiling support, or integration with LLVM-adjacent workflows.

Why package nerds care

LDC is package-nerd significant because compiler packages sit at the junction of language ecosystems and system toolchains. It has to coordinate D language releases, LLVM ABI/API changes, C toolchains, platform linkers, bundled runtime libraries, and distro-specific packaging constraints.

For Homebrew and other package managers, LDC is also a dependency-shaped package: installing it is not just about one executable, but about shipping a coherent compiler, runtime, standard library, config files, and helper tools.

Timeline

  • 2000s: LDC begins as an LLVM-based compiler path for the D language.
  • 2016: The 1.0 release line establishes LDC as a stable D compiler package.
  • 2023: LDC 1.33.0 documents semantic-analysis plugin support and adds ldc-build-plugin.
  • 2024: LDC 1.38.0 documents LLVM 18 support and Android TLS/runtime changes.
  • 2025: LDC 1.41.0 documents LLVM 20 support and Ubuntu 22.04-based Linux packages.
  • 2026-03-01: LDC 1.42.0 documents LLVM 21 support and D frontend/druntime/Phobos version 2.112.1+.

Related projects

  • Related projects include DMD, the reference D compiler whose frontend LDC tracks; GDC, the GCC-based D compiler; LLVM and Clang; and the D runtime and Phobos standard library.

security posture

Risk level: yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:runtime,programming language

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
ldc-build-plugincliglobal executable
ldc-build-runtimecliglobal executable
ldc-profdatacliglobal executable
ldc-profgencliglobal executable
ldc-prune-cachecliglobal executable
ldc2cliglobal executable
ldmd2cliglobal executable
timetrace2txtcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.42.0
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/ldc-developers/ldc

install metadata

Package metadata

Package keybrew:ldc
Version1.42.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/ldc
Homepagehttps://wiki.dlang.org/LDC
Repositoryhttps://github.com/ldc-developers/ldc
Upstream docshttps://github.com/ldc-developers/ldc#readme
LicenseBSD-3-Clause
Source archivehttps://github.com/ldc-developers/ldc/releases/download/v1.42.0/ldc-1.42.0-src.tar.gz
Dependenciesllvm@21
Build dependenciescmake, pkgconf
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

ldc 1:1.40.0-5

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo apt install ldc
  • Section: devel
  • Architecture: amd64
  • 6 dependencies
  • 2 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ldc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libphobos2-ldc-shared-dev 1:1.40.0-5

LLVM D Compiler - Standard and runtime libraries, imports

https://github.com/ldc-developers/ldc

sudo apt install libphobos2-ldc-shared-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: ldc
  • 5 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libphobos2-ldc-shared-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libphobos2-ldc-shared110 1:1.40.0-5

LLVM D Compiler - Standard and runtime libraries

https://github.com/ldc-developers/ldc

sudo apt install libphobos2-ldc-shared110
  • Section: libs
  • Architecture: amd64
  • Source Package: ldc
  • 3 dependencies
  • normalized package name match
  • Matched by: Ldc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libphobos2-ldc-shared110 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ldc

nix profile install nixpkgs#ldc
  • normalized package name match
  • Matched by: Ldc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ld/ldc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ldc 1:1.36.0-2ubuntu2

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo apt install ldc
  • Section: universe/devel
  • Architecture: amd64
  • 6 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ldc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libphobos2-ldc-shared-dev 1:1.36.0-2ubuntu2

LLVM D Compiler - Standard and runtime libraries, imports

https://github.com/ldc-developers/ldc

sudo apt install libphobos2-ldc-shared-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: ldc
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libphobos2-ldc-shared-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libphobos2-ldc-shared106 1:1.36.0-2ubuntu2

LLVM D Compiler - Standard and runtime libraries

https://github.com/ldc-developers/ldc

sudo apt install libphobos2-ldc-shared106
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: ldc
  • 3 dependencies
  • normalized package name match
  • Matched by: Ldc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libphobos2-ldc-shared106 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

ldc 1.42.0-r0

The LLVM-based D Compiler

https://github.com/ldc-developers/ldc

sudo apk add ldc
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-bash-completion 1.42.0-r0

Bash completions for ldc

https://github.com/ldc-developers/ldc

sudo apk add ldc-bash-completion
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • normalized package name match
  • Matched by: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-dbg 1.42.0-r0

The LLVM-based D Compiler (debug symbols)

https://github.com/ldc-developers/ldc

sudo apk add ldc-dbg
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 dependencies
  • normalized package name match
  • Matched by: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-runtime 1.42.0-r0

Dynamic runtime library for D code compiled with ldc-1.42.0

https://github.com/ldc-developers/ldc

sudo apk add ldc-runtime
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-runtime from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

ldc-static 1.42.0-r0

The LLVM-based D Compiler (static library)

https://github.com/ldc-developers/ldc

sudo apk add ldc-static
  • License: BSD-3-Clause AND BSL-1.0 AND ( Artistic-1.0 OR GPL-2.0-or-later ) AND NCSA AND MIT
  • Architecture: x86_64
  • Source Package: ldc
  • normalized package name match
  • Matched by: Ldc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: ldc-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

ldc 1.42.0-2.fc45

LLVM D Compiler

https://github.com/ldc-developers/ldc

sudo dnf install ldc
  • License: BSD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: ldc
  • 14 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ldc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ldc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ldc-libs 1.42.0-2.fc45

LLVM D Compiler libraries

https://github.com/ldc-developers/ldc

sudo dnf install ldc-libs
  • License: BSL-1.0
  • Category: Unspecified
  • Architecture: i686
  • Source Package: ldc
  • 6 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Ldc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ldc-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

ldc 3:1.42.0-1

A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2

https://github.com/ldc-developers/ldc

sudo pacman -S ldc
  • License: BSD-3-Clause AND BSL-1.0 AND Apache-2.0 WITH LLVM-exception
  • Architecture: x86_64
  • 5 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Ldc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: ldc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

ldc 1.40.1-1.3

The LLVM D Compiler

https://wiki.dlang.org/LDC

sudo zypper install ldc
  • License: Artistic-1.0 AND BSD-3-Clause
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: ldc
  • 8 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Ldc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: ldc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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