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

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

## 安装

```sh
sudo av install brew:dhex
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dhex
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dhex
```

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

### Linux

- apk (92%):

```sh
sudo apk add dhex
```

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

- Debian apt (92%):

```sh
sudo apt install dhex
```

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

- dnf (92%):

```sh
sudo dnf install dhex
```

  证据: Fedora Rawhide package metadata: dhex 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#dhex
```

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

- pacman (92%):

```sh
sudo pacman -S dhex
```

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

- zypper (92%):

```sh
sudo zypper install dhex
```

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

## 软件包事实

- **软件包键:** brew:dhex
- **软件包管理器:** Homebrew
- **版本:** 0.69
- **来源摘要:** Ncurses based advanced hex editor featuring diff mode and more
- **主页:** <https://www.dettus.net/dhex/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dhex (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.69
## 项目历史与用法

dhex is an ncurses-based terminal hex editor with a built-in diff mode. Its niche is binary inspection and comparison from a console, including systems where a graphical editor is unavailable or inconvenient.

### 项目历史

The official project page describes DHEX as more than another hex editor because it includes diff mode, ncurses display, theming, and search logs. The downloadable 0.69 README records the 0.6x branch history from an initial 0.60 release in 2010 through the final 0.69 release.

### 采用历史

The official page lists successful operation on Linux, HP-UX, FreeBSD, NetBSD, Mac OS X, IRIX, and Solaris, which explains its appeal as a packaged terminal utility. The 2019 release note explicitly credits persistent users for convincing the author to publish another version.

### 使用方式

dhex opens one file for edit mode or two files for diff mode, supports search, bookmarks, a hex calculator, and configurable key/color mappings. On first run it creates a .dhexrc file in the user's home directory, and another config file may be selected with -f.

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

dhex is package-nerd useful because it combines two common emergency tools, a hex editor and binary diff viewer, into a small curses program. It is easy to ship on headless Unix systems and does not need a desktop stack.

### 时间线

- 2004: Official page lists early 0.5x releases.
- 2010: README records 0.60 as the initial 0.6x release.
- 2011: Version 0.63 adds man pages.
- 2012: Version 0.67 adds base-address support for memory dumps.
- 2019: Version 0.69 is released as the final 0.6x update.

### Related projects

- Standard Unix tools such as cmp and diff cover adjacent comparison workflows.
- Other terminal hex editors fill similar packaging niches, but dhex's official positioning centers on diff mode.

### 来源

- <https://www.dettus.net/dhex>
- <https://www.dettus.net/dhex/dhex_0.69.tar.gz>


## 安全说明

narrow executable package without higher-risk signals.

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


## 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: ~/.dhexrc
## 其他软件包管理器记录

- Debian apt - dhex - 0.69-4+b1: normalized package name match | Debian stable package indexes: dhex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ncurses based hex editor with diff mode | https://www.dettus.net/dhex/
- Nix - dhex: normalized package name match | nixpkgs package indexes: pkgs/by-name/dh/dhex/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dhex - 0.69-4: normalized package name match | Ubuntu 24.04 LTS package indexes: dhex from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ncurses based hex editor with diff mode | https://www.dettus.net/dhex/
- apk - dhex - 0.69-r3: normalized package name match | Alpine Linux edge package indexes: dhex from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | ncurses hex editor with diff mode for binary file comparison, supports custom themes | https://www.dettus.net/dhex/
- apk - dhex-doc - 0.69-r3: normalized package name match | Alpine Linux edge package indexes: dhex-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | ncurses hex editor with diff mode for binary file comparison, supports custom themes (documentation) | https://www.dettus.net/dhex/
- dnf - dhex - 0.69-20.fc45: normalized package name match | Fedora Rawhide package metadata: dhex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Ncurses based hexadecimal editor with a diff mode | http://www.dettus.net/dhex/
- pacman - dhex - 0.69-5: normalized package name match | Arch Linux sync databases: dhex from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A ncurses-based hex editor with a diff mode | https://www.dettus.net/dhex
- zypper - dhex - 0.69-2.7: normalized package name match | openSUSE Tumbleweed package metadata: dhex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Hexeditor with a Diff-mode for ncurses | http://www.dettus.net/dhex/
- MacPorts - dhex: normalized package name match | MacPorts ports tree: editors/dhex/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/dhex.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dhex.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
