# 使用 Homebrew, apt, zypper, Nix 安装 dwarfutils

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

## 安装

```sh
sudo av install brew:dwarfutils
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dwarfutils
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install dwarfdump
```

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

- zypper (92%):

```sh
sudo zypper install libdwarf-tools
```

  证据: openSUSE Tumbleweed package metadata: libdwarf-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#dwarfdump
```

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

## 软件包事实

- **软件包键:** brew:dwarfutils
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dwarfutils>
- **版本:** 2.3.2
- **来源摘要:** Dump and produce DWARF debug information in ELF objects
- **主页:** <https://www.prevanders.net/dwarf.html>
- **仓库:** <https://github.com/davea42/libdwarf-code>
- **上游文档:** <https://www.prevanders.net/dwarf.html>
- **许可证:** BSD-2-Clause AND LGPL-2.1-or-later AND GPL-2.0-or-later
- **源码归档:** <https://www.prevanders.net/libdwarf-2.3.2.tar.xz>
- **最后更新:** 2026-07-08T03:18:46Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dwarfdump (cli)
- dwarfdump (别名)

## 构建依赖

- pkgconf

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.3.2
- 管理器更新时间: 2026-07-08
- 本地数据: OK
- 上游仓库: https://www.prevanders.net/dwarf.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

dwarfutils packages dwarfdump and libdwarf tooling for reading, dumping, and producing DWARF debugging information in object files. It is part of the long-running DWARF debug-info ecosystem used by compiler, debugger, toolchain, and binary-analysis developers.

### 项目历史

The libdwarf project page says the DWARF debugging information format was developed by a committee, then known as PLSIG, starting around 1991. SGI became involved around 1991 and developed libdwarf and dwarfdump for SGI internal use and IRIX developer tools.

According to the same page, from around 1993 dwarfdump and libdwarf shipped with every SGI MIPS/IRIX C compiler release as an executable and archive library. SGI agreed to open-source libdwarf in 1994 and dwarfdump in 1999.

The project later moved through SourceForge-era public hosting to GitHub. The project page says source was available via SourceForge git from March 2011, and that beginning 14 May 2021 the GitHub repository became the reference source with SourceForge no longer current.

Modern libdwarf focuses on portable access to DWARF2 through DWARF5 data, robust handling of corrupted DWARF, and build support via configure, CMake, and Meson. The README states that DWARF6 support will be added when the standard is released.

### 采用历史

The DWARF standard site describes DWARF as widely used on Unix, Linux, other operating systems, and stand-alone environments. That broad standard adoption gives libdwarf and dwarfdump enduring relevance even when the utilities themselves are niche.

The input metadata lists packages across Homebrew, Debian, Ubuntu, Nix, and zypper, reflecting its role as a distribution-level toolchain utility rather than an end-user application. The project page also highlights CI across Linux, FreeBSD, macOS, and Windows msys2 and testing against many corrupted objects.

### 使用方式

dwarfdump prints DWARF2, DWARF3, DWARF4, and some DWARF5 data from object files in readable form. libdwarf provides C/C++ APIs for reading DWARF sections, while libdwarfp offers a limited producer API for creating DWARF data.

Typical users are compiler and debugger implementers, build-system and distribution maintainers, binary-analysis developers, and anyone debugging problems in generated debug information.

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

dwarfutils is package-nerd significant because debug information is invisible until it breaks, then it is essential. Having dwarfdump available from a package manager gives maintainers a standard diagnostic tool for compiler output, stripped/split debug files, compressed sections, malformed objects, and DWARF version transitions.

Its history also ties modern open-source packaging to older proprietary Unix toolchains: SGI-originated debug tooling became portable free software, then continued evolving alongside ELF, Mach-O, PE object helpers, DWARF5, fuzzing, and semantic versioning.

### 时间线

- 1991: The DWARF format effort and SGI involvement begin, according to the libdwarf project page.
- 1993: dwarfdump and libdwarf begin shipping with SGI MIPS/IRIX C compiler releases.
- 1994: SGI agrees to open-source libdwarf.
- 1999: SGI agrees to open-source dwarfdump.
- 2011: libdwarf source becomes available via SourceForge git.
- 2017: DWARF Version 5 is released, according to the libdwarf project page.
- 2021: GitHub becomes the reference source; libdwarf transitions to semantic versioning.
- 2026: The README lists libdwarf 2.3.1 released on 4 March 2026.

### Related projects

- DWARF Debugging Information Format is the standard that libdwarf and dwarfdump implement.
- Compiler and debugger ecosystems such as GCC, LLVM/Clang, GDB, LLDB, ELF, Mach-O, PE, split DWARF, and compressed debug sections are adjacent to the package's core use.
- The libdwarf project page also points to readelfobj, readobjmacho, readobjpe, object_detector, regression tests, and tsearch support code as related project resources.

### 来源

- <https://www.prevanders.net/dwarf.html>
- <https://raw.githubusercontent.com/davea42/libdwarf-code/main/README.md>
- <https://dwarfstd.org/>
- <https://api.github.com/repos/davea42/libdwarf-code>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dwarfutils
- **Aliases:** libdwarf
- **Version Scheme:** 1
- **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

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

- Debian apt - dwarfdump - 1:0.11.1-1: normalized package name match | Debian stable package indexes: dwarfdump from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility to dump DWARF debug information from ELF objects | https://github.com/davea42/libdwarf-code
- Debian apt - libdwarf-dev - 1:0.11.1-1: normalized package name match | Debian stable package indexes: libdwarf-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to consume and produce DWARF debug information | https://github.com/davea42/libdwarf-code
- Debian apt - libdwarf1 - 1:0.11.1-1: normalized package name match | Debian stable package indexes: libdwarf1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library to consume and produce DWARF debug information (runtime) | https://github.com/davea42/libdwarf-code
- Ubuntu apt - dwarfdump - 20210528-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: dwarfdump from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility to dump DWARF debug information from ELF objects | https://www.prevanders.net/dwarf.html
- Ubuntu apt - libdwarf-dev - 20210528-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libdwarf-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to consume and produce DWARF debug information | https://www.prevanders.net/dwarf.html
- Ubuntu apt - libdwarf1 - 20210528-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libdwarf1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library to consume and produce DWARF debug information (runtime) | https://www.prevanders.net/dwarf.html
- zypper - libdwarf-tools - 2.3.2-1.2: normalized package name match | openSUSE Tumbleweed package metadata: libdwarf-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | DWARF-related tools | https://prevanders.net/dwarf.html
- Nix - dwarfdump: installed executable or alias match | nixpkgs package indexes: dwarfdump from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [semgrep](https://pkg.so/zh-hans/brew/semgrep/) - Popular package that depends on this formula.
- [kcov](https://pkg.so/zh-hans/brew/kcov/) - Popular package that depends on this formula.
- [orbuculum](https://pkg.so/zh-hans/brew/orbuculum/) - Popular package that depends on this formula.
- [elfutils](https://pkg.so/zh-hans/brew/elfutils/) - Shares pkgdb curated category or tags: binary-tools, cli, debugging, developer-tools, dwarf.
- [delve](https://pkg.so/zh-hans/brew/delve/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [patchelf](https://pkg.so/zh-hans/brew/patchelf/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools, elf.
- [objconv](https://pkg.so/zh-hans/brew/objconv/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools, object-files.
- [chdig](https://pkg.so/zh-hans/brew/chdig/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [probe-rs-tools](https://pkg.so/zh-hans/brew/probe-rs-tools/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [cdebug](https://pkg.so/zh-hans/brew/cdebug/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [m68k-elf-binutils](https://pkg.so/zh-hans/brew/m68k-elf-binutils/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools, elf.
- [abi-dumper](https://pkg.so/zh-hans/brew/abi-dumper/) - Local package facts share a topical domain. Shared terms: binary, cli, debug, developer, developer-tools.
- [dwarf](https://pkg.so/zh-hans/brew/dwarf/) - Local package facts share a topical domain. Shared terms: binary, cli, developer, developer-tools, dwarf.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
