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

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

## 安装

```sh
sudo av install brew:delve
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install delve
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install delve
```

  证据: MacPorts ports tree: devel/delve/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add delve
```

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

- Debian apt (92%):

```sh
sudo apt install delve
```

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

- dnf (92%):

```sh
sudo dnf install delve
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#delve
```

  证据: nixpkgs package indexes: pkgs/by-name/de/delve/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S delve
```

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

- zypper (92%):

```sh
sudo zypper install delve
```

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

## 软件包事实

- **软件包键:** brew:delve
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/delve>
- **版本:** 1.27.1
- **来源摘要:** Debugger for the Go programming language
- **主页:** <https://github.com/go-delve/delve>
- **仓库:** <https://github.com/go-delve/delve>
- **许可证:** MIT
- **源码归档:** <https://github.com/go-delve/delve/archive/refs/tags/v1.27.0.tar.gz>
- **最后更新:** 2026-08-03T21:05:40Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dlv (cli)
- dlv (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.27.1
- 管理器更新时间: 2026-08-03
- 本地数据: OK
- 上游仓库: https://github.com/go-delve/delve
- 检测到的最新版本: v1.27.0 (当前)
## 项目历史与用法

Delve is the standard source-level debugger for Go programs. It packages Go-aware debugging, goroutine inspection, core-file support, headless operation, and Debug Adapter Protocol support behind the dlv command.

### 项目历史

The official repository describes Delve's goal as a simple, full-featured debugger for Go that stays out of the user's way. GitHub repository metadata places the public project in May 2014, during the period when Go users were outgrowing general-purpose debugger workflows and needed tooling that understood Go runtime behavior.

Delve's documentation grew around a command family rather than a single mode: dlv debug, exec, attach, core, test, trace, replay, connect, dap, and related subcommands. That breadth made it useful both as an interactive terminal debugger and as the debug engine behind editors.

### 采用历史

Delve became the practical default debugger for Go because it is distributed as a Go command, publishes prebuilt binaries, and exposes integrations for plugins, GUIs, and DAP clients. The official installation docs document go install, binary releases, and building from the repository.

The release feed shows ongoing maintenance through the 1.27.0 release in June 2026, which matters for Go tooling because debugger support must track compiler, runtime, OS, and architecture changes.

### 使用方式

Typical CLI use starts with dlv debug for the package in the current directory, dlv test for test binaries, dlv exec for an existing binary, or dlv attach for a running process. The usage docs emphasize controlling execution, evaluating variables, and inspecting goroutine, thread, and CPU register state.

In editor workflows, Delve commonly runs as a headless debug server or DAP server. That lets IDEs and editors provide breakpoints and stepping while reusing the same Go-specific debugger backend.

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

Delve is interesting to package maintainers because it is both a developer CLI and a moving compatibility target for the Go toolchain. A stale debugger package can fail even when ordinary Go builds still work.

Its packaging footprint is also a marker of Go's maturation: once a language has a dedicated debugger in every major package manager, the ecosystem has moved beyond compile-and-print debugging as the default developer experience.

### 时间线

- 2014: The go-delve/delve repository is created on GitHub.
- 2021: The installation docs document module-aware go install commands for released versions.
- 2025: Delve 1.25.x releases continue through GitHub releases.
- 2026: Delve 1.27.0 is published.

### Related projects

- The Go toolchain is Delve's primary target and distribution path.
- DAP-compatible editors and IDEs use Delve as a Go debug backend.
- rr replay support connects Delve to record-and-replay debugging workflows.

### 来源

- <https://github.com/go-delve/delve>
- <https://github.com/go-delve/delve/tree/master/Documentation>
- <https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv.md>
- <https://github.com/go-delve/delve/blob/master/Documentation/installation/README.md>
- <https://api.github.com/repos/go-delve/delve>
- <https://api.github.com/repos/go-delve/delve/releases>


## 安全说明

escape, surveillance, or offensive capability signal. generalized runtime or code generation signal.

- **Geiger 风险:** red / 中
- escape, surveillance, or offensive capability signal
- generalized runtime or code generation signal


## 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: $XDG_CONFIG_HOME/dlv/config.yml, ~/.config/dlv/config.yml, ~/.dlv/config.yml
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** delve
- **Aliases:** dlv
- **Version Scheme:** 0
- **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 - delve - 1.24.0-4+b4: normalized package name match | Debian stable package indexes: delve from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | debugger for the Go programming language | https://github.com/go-delve/delve
- Nix - delve: normalized package name match | nixpkgs package indexes: pkgs/by-name/de/delve/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - delve - 1.22.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: delve from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | debugger for the Go programming language | https://github.com/go-delve/delve
- apk - delve - 1.26.2-r2: normalized package name match | Alpine Linux edge package indexes: delve from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Debugger for the Go programming language | https://github.com/go-delve/delve
- apk - delve-doc - 1.26.2-r2: normalized package name match | Alpine Linux edge package indexes: delve-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Debugger for the Go programming language (documentation) | https://github.com/go-delve/delve
- dnf - delve - 1.27.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: delve from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A debugger for the Go programming language | https://github.com/go-delve/delve
- pacman - delve - 1.27.0-1: normalized package name match | Arch Linux sync databases: delve from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A debugger for the Go programming language. | https://github.com/go-delve/delve
- zypper - delve - 1.27.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: delve from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Debugger for the Go Programming Language | https://github.com/go-delve/delve
- MacPorts - delve: normalized package name match | MacPorts ports tree: devel/delve/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [ddd](https://pkg.so/zh-hans/brew/ddd/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools.
- [gebug](https://pkg.so/zh-hans/brew/gebug/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools, go.
- [dwarfutils](https://pkg.so/zh-hans/brew/dwarfutils/) - Shares pkgdb curated category or tags: cli, debugging, developer-tools.
- [arm-none-eabi-gdb](https://pkg.so/zh-hans/brew/arm-none-eabi-gdb/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools.
- [aarch64-elf-gdb](https://pkg.so/zh-hans/brew/aarch64-elf-gdb/) - Shares pkgdb curated category or tags: cli, debugger, debugging, developer-tools.
- [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.
- [docker-debug](https://pkg.so/zh-hans/brew/docker-debug/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, debugging, developer, developer-tools, go.
- [oclgrind](https://pkg.so/zh-hans/brew/oclgrind/) - Local package facts share a topical domain. Shared terms: cli, debugger, debugging, developer, developer-tools.

## Combined YAML source

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


## 来源

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