# Install ghex with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

GNOME hex editor. Version 50.2 via Homebrew; verified 2026-07-07. Also installable with debian: sudo apt install ghex.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install ghex
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ghex
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:ghex
- **Package manager:** Homebrew
- **Version:** 50.2
- **Source summary:** GNOME hex editor
- **Homepage:** <https://wiki.gnome.org/Apps/Ghex>
- **Last updated:** 2026-07-07T14:59:00Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- ghex (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 50.2
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

No matching local secret-handling manifest was found for ghex. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Other Package-Manager Records

- 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)


## Sources

- 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
