# 使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 lldb

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

## 安装

```sh
sudo av install brew:lldb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lldb
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add lldb
```

  证据: Alpine Linux edge package indexes: lldb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install lldb
```

  证据: Debian stable package indexes: lldb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install lldb
```

  证据: Fedora Rawhide package metadata: lldb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#lldb
```

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

- pacman (92%):

```sh
sudo pacman -S lldb
```

  证据: Arch Linux sync databases: lldb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install lldb
```

  证据: openSUSE Tumbleweed package metadata: lldb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst

## 软件包事实

- **软件包键:** brew:lldb
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/lldb>
- **版本:** 23.1.1
- **来源摘要:** Next generation, high-performance debugger
- **主页:** <https://lldb.llvm.org/>
- **仓库:** <https://github.com/llvm/llvm-project>
- **上游文档:** <https://lldb.llvm.org/>
- **许可证:** Apache-2.0 WITH LLVM-exception
- **源码归档:** <https://github.com/llvm/llvm-project/releases/download/llvmorg-23.1.0/llvm-project-23.1.0.src.tar.xz>
- **最后更新:** 2026-09-10T19:45:06Z
- **已生成:** 2026-09-19T06:45:57+00:00

## 可执行文件

- lldb (cli)
- lldb-argdumper (cli)
- lldb-dap (cli)
- lldb-instr (cli)
- lldb-mcp (cli)
- lldb-server (cli)
- lldb-tblgen (cli)
- yaml2macho-core (cli)
- lldb (别名)
- lldb-argdumper (别名)
- lldb-dap (别名)
- lldb-instr (别名)
- lldb-mcp (别名)
- lldb-server (别名)
- lldb-tblgen (别名)
- yaml2macho-core (别名)

## 依赖

- llvm
- python@3.14
- xz
- z3
- zstd

## 构建依赖

- cmake
- ninja
- swig

## macOS 提供的库

- libedit
- libxml2
- ncurses

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-09-19
- 管理器版本: 23.1.1
- 管理器更新时间: 2026-09-10
- 本地数据: OK
- 上游仓库: https://github.com/llvm/llvm-project
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

LLDB is the LLVM project's modular, high-performance debugger and the default debugger in Xcode. It supports interactive command-line debugging, IDE integration, remote debugging, and Python scripting across several operating systems and architectures.

### 项目历史

LLVM announced LLDB as a new subproject in June 2010. It was designed as modular debugger infrastructure reusing LLVM's disassembler, code generator, JIT, and Clang expression parser rather than as a monolithic command-line debugger.

The project matured into both a command-line debugger and a reusable API surface. Its source now resides in the LLVM monorepo, and it is released under Apache-2.0 with the LLVM exception.

### 采用历史

LLDB became the default debugger in Xcode and expanded beyond its original macOS implementation to Linux, FreeBSD, NetBSD, and Windows. LLVM project material described it by 2016 as being used by millions of developers and as infrastructure for additional language debuggers.

### 使用方式

Users commonly launch `lldb` with an executable, set breakpoints, inspect threads and variables, evaluate expressions, analyze crashes, or attach to running processes. Advanced workflows use Python scripts, the public debugger APIs, `lldb-server`, and IDE integrations.

LLDB reads user commands, aliases, and settings from `.lldbinit` files. Application-specific and language-REPL initialization files take precedence over the general home-directory file; a working-directory `.lldbinit` is not sourced by default for security reasons.

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

LLDB is a foundational developer package: distributions package its CLI and libraries separately or alongside LLVM, while IDEs consume its debugger APIs. Its close coupling to Clang, LLVM release cadence, Python scripting support, remote-debugging components, and platform-specific builds make version and packaging details operationally important.

### 时间线

- 2010: LLVM publicly announced LLDB as a new subproject.
- 2016: LLVM maintainers described established macOS and Linux use, growing Windows support, and adoption through IDE integrations.
- Present: LLDB is developed in the LLVM monorepo and shipped by major Unix-like package ecosystems.

### Related projects

- LLVM supplies core compiler infrastructure used by LLDB.
- Clang supplies LLDB's C-family expression parser and type-system integration.
- Xcode uses LLDB as its default debugger.
- GDB is the established debugger for which LLDB provides an official command-translation map.

### 来源

- <https://blog.llvm.org/2010/06/new-lldb-debugger.html>
- <https://lists.llvm.org/pipermail/lldb-dev/2016-August/010870.html>
- <https://lldb.llvm.org/>
- <https://lldb.llvm.org/resources/build.html>
- source_facts.package-manager


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.lldbinit, ~/.lldbinit-lldb, ~/.lldbinit-<application>, ~/.lldbinit-<language>-repl, ./.lldbinit
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lldb
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** yes
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Debian apt - lldb - 1:19.0-63: normalized package name match | Debian stable package indexes: lldb from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Next generation, high-performance debugger
- Nix - lldb: normalized package name match | nixpkgs package indexes: lldb from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - lldb - 1:18.0-59~exp2: normalized package name match | Ubuntu 24.04 LTS package indexes: lldb from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Next generation, high-performance debugger
- apk - lldb - 22.1.8-r0: normalized package name match | Alpine Linux edge package indexes: lldb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Next generation, high-performance debugger | https://llvm.org/
- apk - lldb-dev - 22.1.8-r0: normalized package name match | Alpine Linux edge package indexes: lldb-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Next generation, high-performance debugger (development files) | https://llvm.org/
- apk - lldb-doc - 22.1.8-r0: normalized package name match | Alpine Linux edge package indexes: lldb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Next generation, high-performance debugger (documentation) | https://llvm.org/
- apk - py3-lldb - 22.1.8-r0: normalized package name match | Alpine Linux edge package indexes: py3-lldb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Python3 module for LLDB | https://llvm.org/
- apk - py3-lldb-pyc - 22.1.8-r0: normalized package name match | Alpine Linux edge package indexes: py3-lldb-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for py3-lldb | https://llvm.org/
- dnf - lldb - 22.1.8-26.fc46: normalized package name match | Fedora Rawhide package metadata: lldb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst | Next generation high-performance debugger | http://lldb.llvm.org/
- pacman - lldb - 22.1.8-1: normalized package name match | Arch Linux sync databases: lldb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Next generation, high-performance debugger | https://lldb.llvm.org/
- zypper - lldb - 22-3.2: normalized package name match | openSUSE Tumbleweed package metadata: lldb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst | Software debugger built using LLVM libraries | https://lldb.llvm.org/


## 相关链接

- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Matched curated package taxonomy and local package facts.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [llvm](https://pkg.so/zh-hans/brew/llvm/) - Runtime dependency declared by Homebrew.
- [z3](https://pkg.so/zh-hans/brew/z3/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [swig](https://pkg.so/zh-hans/brew/swig/) - Build dependency declared by Homebrew.
- [llvm@20](https://pkg.so/zh-hans/brew/llvm-20/) - Shares the same upstream source repository.
- [llvm@21](https://pkg.so/zh-hans/brew/llvm-21/) - Shares the same upstream source repository.
- [lld](https://pkg.so/zh-hans/brew/lld/) - Shares the same upstream source repository.
- [llvm@22](https://pkg.so/zh-hans/brew/llvm-22/) - Shares the same upstream source repository.
- [adios2](https://pkg.so/zh-hans/brew/adios2/) - Both packages touch the same language runtime or ecosystem. Shared terms: generation, next, python, python-3-14, server.
- [freeradius-server](https://pkg.so/zh-hans/brew/freeradius-server/) - Both packages touch the same language runtime or ecosystem. Shared terms: high, high-performance, performance, python, python-3-14.
- [llvm@16](https://pkg.so/zh-hans/brew/llvm-16/) - Both packages touch the same language runtime or ecosystem. Shared terms: lldb, llvm, next, python, xz.

## Combined YAML source

View the package source record on GitHub. [combined/lldb.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lldb.yml)


## 来源

- pkg.so package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
