# 使用 Homebrew, Nix, zypper 安装 hexd

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

## 安装

```sh
sudo av install brew:hexd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hexd
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#hexd
```

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

- zypper (92%):

```sh
sudo zypper install hexd
```

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

## 软件包事实

- **软件包键:** brew:hexd
- **软件包管理器:** Homebrew
- **版本:** 1.1.0
- **来源摘要:** Colourful, human-friendly hexdump tool
- **主页:** <https://github.com/FireyFly/hexd>
- **仓库:** <https://github.com/FireyFly/hexd>
- **最后更新:** 2026-08-02T00:19:39+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hexd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

hexd is a small C hexdump tool that uses color to make byte-value patterns easier to see in terminal output.

### 项目历史

The GitHub repository was created in December 2013 and describes hexd as a colorful, human-friendly hexdump tool. Its man page, dated February 2022, documents the stable CLI shape: file or stdin input, optional plaintext or pretty output, grouping, ranges, width control, and repeated-line collapsing.

### 采用历史

The project is packaged by Homebrew from the GitHub tag archive, and the input package metadata also records Nix and zypper package names. Its small C codebase and manpage-style interface make it a straightforward Unix package.

### 使用方式

hexd prints a human-readable dump of files or standard input. It classifies byte ranges with terminal colors, honors an HEXD_COLORS environment variable for SGR formatting, and includes range selection examples for inspecting embedded file regions or comparing binary headers.

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

hexd is the kind of tiny single-purpose CLI package that package managers collect well: it does not replace hexdump, od, or xxd, but offers a visual inspection trick that is useful enough to ship as a separate executable.

### 时间线

- 2013: GitHub repository created.
- 2022: man page documents hexd's colorized dump interface and HEXD_COLORS environment variable.
- 2026: Homebrew formula packages the v1.1.0 GitHub tag archive.

### Related projects

- The man page lists hexdump, od, and xxd as related tools. The README also points to pixd, by the same author, as a related visualization tool for binary data.

### 来源

- <https://formulae.brew.sh/formula/hexd>
- <https://github.com/FireyFly/hexd>
- <https://raw.githubusercontent.com/FireyFly/hexd/master/hexd.1>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - hexd: normalized package name match | nixpkgs package indexes: pkgs/by-name/he/hexd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - hexd - 1.1.0-1.15: normalized package name match | openSUSE Tumbleweed package metadata: hexd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Colourful, human-friendly hexdump tool | https://github.com/FireyFly/hexd.git


## Combined YAML source

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


## 来源

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