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

GNOME hex editor. Version 50.2 via Homebrew; verified 2026-07-07.

## 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:ghex
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/ghex>
- **Version:** 50.2
- **Source summary:** GNOME hex editor
- **Homepage:** <https://wiki.gnome.org/Apps/Ghex>
- **Repository:** <https://gitlab.gnome.org/GNOME/ghex>
- **Upstream docs:** <https://help.gnome.org/users/ghex/stable>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://download.gnome.org/sources/ghex/50/ghex-50.2.tar.xz>
- **Last updated:** 2026-07-07T14:59:00Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- ghex (cli)
- ghex (alias)

## Dependencies

- cairo
- gettext
- glib
- gtk4
- hicolor-icon-theme
- libadwaita
- pango

## Build dependencies

- desktop-file-utils
- gettext
- itstool
- meson
- ninja
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 50.2
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://wiki.gnome.org/Apps/Ghex
- info: Release/tag comparison is only available for GitHub repositories.
## 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.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ghex
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 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-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Binary editor for GNOME | https://gitlab.gnome.org/GNOME/ghex
- dnf - ghex-devel - 50.2-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for ghex | https://gitlab.gnome.org/GNOME/ghex
- dnf - ghex-libs - 50.2-1.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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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.1: normalized package name match | openSUSE Tumbleweed package metadata: ghex from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | GNOME Binary Editor | https://wiki.gnome.org/Apps/Ghex


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cairo](https://www.automicvault.com/pkg/brew/cairo/) - Runtime dependency declared by Homebrew.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [gtk4](https://www.automicvault.com/pkg/brew/gtk4/) - Runtime dependency declared by Homebrew.
- [libadwaita](https://www.automicvault.com/pkg/brew/libadwaita/) - Runtime dependency declared by Homebrew.
- [pango](https://www.automicvault.com/pkg/brew/pango/) - Runtime dependency declared by Homebrew.
- [desktop-file-utils](https://www.automicvault.com/pkg/brew/desktop-file-utils/) - Build dependency declared by Homebrew.
- [itstool](https://www.automicvault.com/pkg/brew/itstool/) - Build dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [tweak](https://www.automicvault.com/pkg/brew/tweak/) - Shares av.db curated category or tags: cli, developer-tools, editors, hex-editor.
- [bvi](https://www.automicvault.com/pkg/brew/bvi/) - Shares av.db curated category or tags: binary-editor, cli, developer-tools, hex-editor.
- [dhex](https://www.automicvault.com/pkg/brew/dhex/) - Shares av.db curated category or tags: cli, developer-tools, hex-editor.
- [hexapoda](https://www.automicvault.com/pkg/brew/hexapoda/) - Shares av.db curated category or tags: cli, developer-tools, hex-editor.
- [hexcurse](https://www.automicvault.com/pkg/brew/hexcurse/) - Shares av.db curated category or tags: cli, developer-tools, hex-editor.
- [hexedit](https://www.automicvault.com/pkg/brew/hexedit/) - Shares av.db curated category or tags: cli, developer-tools, hex-editor.
- [hyx](https://www.automicvault.com/pkg/brew/hyx/) - Shares av.db curated category or tags: cli, developer-tools, hex-editor.
- [ired](https://www.automicvault.com/pkg/brew/ired/) - Shares av.db curated category or tags: cli, developer-tools, hex-editor.
- [gitg](https://www.automicvault.com/pkg/brew/gitg/) - Local package facts share a topical domain. Shared terms: cairo, cli, desktop, desktop-app, developer.
- [vte3](https://www.automicvault.com/pkg/brew/vte3/) - Local package facts share a topical domain. Shared terms: cairo, cli, developer, developer-tools, gettext.

## Combined YAML source

View the package source record on GitHub. [combined/ghex.yml](https://github.com/automic-vault/db/blob/main/combined/ghex.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
