# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.27.0
- **来源摘要:** Debugger for the Go programming language
- **主页:** <https://github.com/go-delve/delve>
- **仓库:** <https://github.com/go-delve/delve>
- **最后更新:** 2026-07-28T14:10:38+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dlv (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
