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

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

## 安装

```sh
sudo av install brew:ghex
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ghex
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ghex
```

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

### Linux

- apk (92%):

```sh
sudo apk add ghex
```

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

- Debian apt (92%):

```sh
sudo apt install ghex
```

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

- dnf (92%):

```sh
sudo dnf install ghex
```

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

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

- pacman (92%):

```sh
sudo pacman -S ghex
```

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

- zypper (92%):

```sh
sudo zypper install ghex
```

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

## 软件包事实

- **软件包键:** brew:ghex
- **软件包管理器:** Homebrew
- **版本:** 50.2
- **来源摘要:** GNOME hex editor
- **主页:** <https://wiki.gnome.org/Apps/Ghex>
- **最后更新:** 2026-07-07T14:59:00Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ghex (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GHex is GNOME's graphical hex editor, used for inspecting and editing raw binary data with paired hexadecimal and ASCII views.

### 项目历史

The GNOME repository README names Jaka Mocnik as the original author and notes that the project has been maintained by various individuals under the GPLv2-or-later license. The DOAP metadata describes it as a GNOME application written in C, with source, issues, and releases hosted in GNOME infrastructure.

### 采用历史

GHex occupies a small but durable role in the GNOME desktop ecosystem: it is not a core GNOME application, but the README identifies it as part of the GNOME Extra Apps family. Its release notes show ongoing translation updates, GTK and libadwaita porting work, and maintenance of the libgtkhex library API.

### 使用方式

Practitioners use GHex when they need a desktop-oriented view of raw data rather than a terminal hex dump. The application loads binary files, displays bytes and ASCII side by side, supports editing, and shares libgtkhex for applications that need the hex widget.

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

For desktop packagers, GHex is a classic GNOME utility with both an application and a reusable library surface. Its NEWS file tracks GNOME-cycle versioning, translations, AppStream data, D-Bus integration, documentation generation, and GTK stack changes that downstream distributions care about.

### 时间线

- 2018: The GNOME GitLab project record was created.
- 2024: GHex 46.0 included libgtkhex 4.8.0.
- 2026: GHex 50.0 included libgtkhex 4.12.0.

### Related projects

- GHex is related to GNOME Extra Apps, GTK, libadwaita, and the libgtkhex library produced from the same source tree.

### 来源

- <https://gitlab.gnome.org/GNOME/ghex>
- <https://gitlab.gnome.org/GNOME/ghex/-/raw/master/NEWS>
- <https://gitlab.gnome.org/GNOME/ghex/-/raw/master/README.md>
- <https://gitlab.gnome.org/GNOME/ghex/-/raw/master/ghex.doap>
- <https://gitlab.gnome.org/api/v4/projects/GNOME%2Fghex>


## 安全说明

没有找到 ghex 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Debian apt - ghex - 46.2-2: normalized package name match | Debian stable package indexes: ghex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME Hex editor for files | https://wiki.gnome.org/Apps/Ghex
- Debian apt - libgtkhex-4-1 - 46.2-2: normalized package name match | Debian stable package indexes: libgtkhex-4-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME Hex editor for files (shared library) | https://wiki.gnome.org/Apps/Ghex
- Debian apt - libgtkhex-4-dev - 46.2-2: normalized package name match | Debian stable package indexes: libgtkhex-4-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNOME Hex editor for files (development headers) | https://wiki.gnome.org/Apps/Ghex
- Nix - ghex: normalized package name match | nixpkgs package indexes: pkgs/by-name/gh/ghex/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ghex - 46.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: ghex from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNOME Hex editor for files | https://wiki.gnome.org/Apps/Ghex
- Ubuntu apt - libgtkhex-4-1 - 46.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgtkhex-4-1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNOME Hex editor for files (shared library) | https://wiki.gnome.org/Apps/Ghex
- Ubuntu apt - libgtkhex-4-dev - 46.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgtkhex-4-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNOME Hex editor for files (development headers) | https://wiki.gnome.org/Apps/Ghex
- apk - ghex - 50.2-r0: normalized package name match | Alpine Linux edge package indexes: ghex from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A hex editor for GNOME | https://gitlab.gnome.org/GNOME/ghex
- apk - ghex-dev - 50.2-r0: normalized package name match | Alpine Linux edge package indexes: ghex-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A hex editor for GNOME (development files) | https://gitlab.gnome.org/GNOME/ghex
- apk - ghex-doc - 50.2-r0: normalized package name match | Alpine Linux edge package indexes: ghex-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A hex editor for GNOME (documentation) | https://gitlab.gnome.org/GNOME/ghex
- apk - ghex-lang - 50.2-r0: normalized package name match | Alpine Linux edge package indexes: ghex-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package ghex | https://gitlab.gnome.org/GNOME/ghex
- dnf - ghex - 50.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: ghex from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Binary editor for GNOME | https://gitlab.gnome.org/GNOME/ghex
- dnf - ghex-devel - 50.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: ghex-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for ghex | https://gitlab.gnome.org/GNOME/ghex
- dnf - ghex-libs - 50.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: ghex-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GtkHex library | https://gitlab.gnome.org/GNOME/ghex
- pacman - ghex - 50.2-1: normalized package name match | Arch Linux sync databases: ghex from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Hex editor for the GNOME desktop | https://wiki.gnome.org/Apps/Ghex
- zypper - ghex - 50.2-1.3: normalized package name match | openSUSE Tumbleweed package metadata: ghex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | GNOME Binary Editor | https://wiki.gnome.org/Apps/Ghex


## Combined YAML source

View the package source record on GitHub. [combined/ghex.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ghex.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
