Automic VaultAutomic Vault

brew

Install llvm@21 with Homebrew, MacPorts, apk, dnf, pacman, zypper, chocolatey, apt, Nix, scoop, winget

Next-gen compiler infrastructure. Version 21.1.8 via Homebrew; verified 2026-06-25.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install llvm@21

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install llvm-21

MacPorts ports tree · lang/llvm-21/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add llvm21

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

Fedora dnfverified · 92%
sudo dnf install clang21

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

Arch Linux pacmanverified · 92%
sudo pacman -S llvm21

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

openSUSE zypperverified · 92%
sudo zypper install clang21

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

Debian aptverified · 92%
sudo apt install llvm

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

Nixverified · 92%
nix profile install nixpkgs#llvm

nixpkgs package indexes · llvm · source: raw.githubusercontent.com

overview

Package summary

Next-gen compiler infrastructure

Commands and aliases

  • clang-21

history

Project history and usage

LLVM 21 is the Homebrew versioned formula for the LLVM 21.x compiler infrastructure series, including Clang, LLVM command-line tools, LLD, MLIR tools, and related toolchain components.

Project history

LLVM began as a University of Illinois research project to provide a modern SSA-based compilation strategy for static and dynamic compilation. The project made its 1.0 release in October 2003 and later grew into an umbrella for compiler, debugger, runtime, linker, and analysis subprojects.

The upstream project describes LLVM as a collection of modular and reusable compiler and toolchain technologies rather than a single compiler. Its core libraries provide optimizer and code-generation infrastructure around LLVM IR, while Clang, LLD, LLDB, libc++, compiler-rt, MLIR, OpenMP, and other subprojects build on that base.

Adoption history

LLVM moved from academic compiler infrastructure into mainstream production use across commercial, open source, and research projects. The project highlights external users spanning language implementations, JITs, static analysis tools, linkers, debuggers, and high-performance computing toolchains.

For package managers, LLVM's release train and large set of CLI tools made it a common versioned dependency. Versioned formulae such as llvm@21 let users pin a major compiler stack while newer major releases continue to land.

How it is used

Package users install LLVM for Clang and clang++, clang-format, clang-tidy, clangd, LLD, llvm-ar, llvm-objdump, llvm-config, opt, llc, FileCheck, MLIR tools, and many other compiler-development utilities. Upstream getting-started documentation centers on cloning llvm-project, configuring with CMake, and selecting enabled subprojects such as clang and lld.

Clang is documented as a C, C++, and Objective-C compiler driver that handles preprocessing, parsing, optimization, code generation, assembly, and linking, while transparently invoking lower-level compiler and linker tools.

Why package nerds care

LLVM is one of the canonical package-manager stress tests: huge source trees, many binaries, CMake builds, multiple runtime libraries, and a steady major-version cadence. Versioned formulae matter because downstream projects often need a specific Clang/LLVM ABI or tool behavior.

LLVM 21 is a recent pinned major for users who want a modern LLVM stack without tracking the latest release. It is useful in package sets that carry several LLVM majors so source builds can choose the compiler API, optimizer behavior, and clang tool versions they were tested with.

Timeline

  • 2000: LLVM starts as a University of Illinois research project.
  • 2003-10-24: LLVM 1.0 is released.
  • 2012: LLVM receives the ACM Software System Award.
  • 2025-08-26: LLVM 21.1.0 is released.
  • 2025: Homebrew exposes LLVM 21 through the versioned llvm@21 formula.

Related projects

  • Clang, LLD, LLDB, libc++, compiler-rt, MLIR, OpenMP, Flang, BOLT, and the monorepo at github.com/llvm/llvm-project are the main related upstream projects.

security posture

No protected-tool coverage found yet

No matching local secret-handling manifest was found for llvm@21. Nucleus package metadata is still published here so future coverage has a stable package URL.

Install behavior

  • Homebrew declares a post-install hook for this formula.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 3 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
clang-21cliglobal 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 version21.1.8
manager updated2026-06-25
local dataok
upstreamnot checked
latest detectednot detected

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

install metadata

Package metadata

Package keybrew:llvm@21
Version21.1.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/llvm@21
Homepagehttps://llvm.org/
Repositoryhttps://github.com/llvm/llvm-project
Upstream docshttps://llvm.org/docs
LicenseApache-2.0 WITH LLVM-exception
Source archivehttps://github.com/llvm/llvm-project/releases/download/llvmorg-21.1.8/llvm-project-21.1.8.src.tar.xz
Last updated2026-06-25T13:37:50+02:00
Pulseupdated
Dependencieszstd
Build dependenciescmake, ninja, python@3.14
Uses from macOSlibedit, libffi
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installdefined
Servicenone declared
CaveatsCLANG_CONFIG_FILE_SYSTEM_DIR: $HOMEBREW_PREFIX/etc/clang CLANG_CONFIG_FILE_USER_DIR: ~/.config/clang LLD is now provided in a separate formula: brew install lld@21 Using `clang`, `clang++`, etc., requires a CLT installation at `/Library/Developer/CommandLineTools`. If you don't want to install the CLT, you can write appropriate configuration files pointing to your SDK at ~/.config/clang. To use the bundled libunwind please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@21/lib/unwind -lunwind" To use the bundled libc++ please use the following LDFLAGS: LDFLAGS="-L$HOMEBREW_PREFIX/opt/llvm@21/lib/c++ -L$HOMEBREW_PREFIX/opt/llvm@21/lib/unwind -lunwind" Features newer than system libc++ will require the following define to enable: CPPFLAGS="-D_LIBCPP_DISABLE_AVAILABILITY" NOTE: You probably want to use the libunwind and libc++ provided by macOS unless you know what you're doing.

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namellvm@21
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • 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.

MacPorts95%

llvm-21

sudo port install llvm-21
  • normalized package name match
  • Matched by: Llvm 21
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/llvm-21/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
apk92%

llvm21 21.1.8-r1

Low Level Virtual Machine compiler system, version 21

https://llvm.org/

sudo apk add llvm21
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: llvm21
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Llvm21
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llvm21 from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

llvm21-dev 21.1.8-r1

Low Level Virtual Machine compiler system, version 21 (development files)

https://llvm.org/

sudo apk add llvm21-dev
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: llvm21
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Llvm21
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llvm21-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

llvm21-gtest 21.1.8-r1

LLVM 21 gtest static libraries

https://llvm.org/

sudo apk add llvm21-gtest
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: llvm21
  • package manager index match
  • Matched by: Llvm21
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llvm21-gtest from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

llvm21-libs 21.1.8-r1

LLVM 21 runtime library

https://llvm.org/

sudo apk add llvm21-libs
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: llvm21
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Llvm21
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llvm21-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

llvm21-linker-tools 21.1.8-r1

Low Level Virtual Machine compiler system, version 21 (linker plugins)

https://llvm.org/

sudo apk add llvm21-linker-tools
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: llvm21
  • 1 dependencies
  • package manager index match
  • Matched by: Llvm21
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llvm21-linker-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

llvm21-static 21.1.8-r1

LLVM 21 static libraries

https://llvm.org/

sudo apk add llvm21-static
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: llvm21
  • package manager index match
  • Matched by: Llvm21
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llvm21-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

llvm21-test-utils 21.1.8-r1

LLVM 21 utilities for executing LLVM and Clang style test suites

https://llvm.org/

sudo apk add llvm21-test-utils
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: llvm21
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Llvm21
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llvm21-test-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk92%

llvm21-test-utils-pyc 21.1.8-r1

Precompiled Python bytecode for llvm21-test-utils

https://llvm.org/

sudo apk add llvm21-test-utils-pyc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: llvm21
  • 1 dependencies
  • package manager index match
  • Matched by: Llvm21
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: llvm21-test-utils-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf92%

clang21 21.1.8-6.fc45

A C language family front-end for LLVM

http://llvm.org

sudo dnf install clang21
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Unspecified
  • Architecture: i686
  • Source Package: llvm21
  • 10 dependencies
  • 2 provides
  • package manager index match
  • Matched by: Llvm21
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: clang21 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

clang21-analyzer 21.1.8-6.fc45

A source code analysis framework

http://llvm.org

sudo dnf install clang21-analyzer
  • License: Apache-2.0 WITH LLVM-exception OR NCSA OR MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: llvm21
  • 4 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Llvm21
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: clang21-analyzer from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

clang21-devel 21.1.8-6.fc45

Development header files for clang

http://llvm.org

sudo dnf install clang21-devel
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Unspecified
  • Architecture: i686
  • Source Package: llvm21
  • 12 dependencies
  • 2 provides
  • package manager index match
  • Matched by: Llvm21
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: clang21-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

clang21-libs 21.1.8-6.fc45

Runtime library for clang

http://llvm.org

sudo dnf install clang21-libs
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Unspecified
  • Architecture: i686
  • Source Package: llvm21
  • 9 dependencies
  • 3 provides
  • package manager index match
  • Matched by: Llvm21
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: clang21-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

clang21-resource-filesystem 21.1.8-6.fc45

Filesystem package that owns the clang resource directory

http://llvm.org

sudo dnf install clang21-resource-filesystem
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Unspecified
  • Architecture: i686
  • Source Package: llvm21
  • 3 provides
  • package manager index match
  • Matched by: Llvm21
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: clang21-resource-filesystem from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

clang21-tools-extra 21.1.8-6.fc45

Extra tools for clang

http://llvm.org

sudo dnf install clang21-tools-extra
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Unspecified
  • Architecture: i686
  • Source Package: llvm21
  • 13 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Llvm21
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: clang21-tools-extra from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

clang21-tools-extra-devel 21.1.8-6.fc45

Development header files for clang tools

http://llvm.org

sudo dnf install clang21-tools-extra-devel
  • License: Apache-2.0 WITH LLVM-exception OR NCSA
  • Category: Unspecified
  • Architecture: i686
  • Source Package: llvm21
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Llvm21
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: clang21-tools-extra-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment