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

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

## 安装

```sh
sudo av install brew:hivex
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hivex
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hivex
```

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

### Linux

- apk (92%):

```sh
sudo apk add hivex
```

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

- dnf (92%):

```sh
sudo dnf install hivex
```

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

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

- pacman (92%):

```sh
sudo pacman -S hivex
```

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

- zypper (92%):

```sh
sudo zypper install hivex
```

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

- Debian apt (92%):

```sh
sudo apt install libhivex-bin
```

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

## 软件包事实

- **软件包键:** brew:hivex
- **软件包管理器:** Homebrew
- **版本:** 1.3.24
- **来源摘要:** Library and tools for extracting the contents of Windows Registry hive files
- **主页:** <https://libguestfs.org>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hivexget (别名)
- hivexml (别名)
- hivexsh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

hivex is the libguestfs project's standalone C library and tool set for reading and writing Windows Registry hive files. It occupies a practical systems niche: it gives Unix and virtualization tooling a structured way to inspect binary Windows registry data without relying on Windows or on textual .REG conversion as the primary interface.

### 项目历史

The hivex source identifies Richard W.M. Jones and Red Hat as the authorship line beginning in 2009. Its README describes a self-contained library for Windows Registry hive binary files, derived from earlier registry-format research and tools including NTREG, dumphive, old Samba editreg code, format papers, and reverse engineering work in the libguestfs tree.

The design emphasis was security and robustness around untrusted registry data. The manual describes hivex as designed to be secure against buggy or malicious hive files, and the README contrasts it with NTREG by emphasizing error handling, corrupt and malicious files, and endianness. That made it a natural companion to libguestfs, whose broader purpose is safe access to guest disk images.

hivex developed as a small but important subproject in the libguestfs family. The libguestfs download index lists hivex alongside libguestfs, supermin, nbdkit, and related components, and the libguestfs manual explains that Windows registry support routes through a separate C library called hivex.

### 采用历史

hivex adoption has been strongest where Linux and Unix systems need to inspect Windows installations offline: virtualization, rescue, migration, forensics, and image-customization workflows. The libguestfs manual records that before libguestfs 1.19.35 users copied hives out, processed them locally with hivex, and copied them back; from that libguestfs version, major hivex APIs were exposed directly through libguestfs for registry operations inside opened Windows guests.

The Homebrew input facts show the package carried across multiple Unix package ecosystems under names such as brew:hivex, Debian/Ubuntu libhivex-bin, and distribution packages for Alpine, Fedora, Arch, openSUSE, MacPorts, and Nix. That pattern matches hivex's role as infrastructure: many users meet it through image tooling or distribution packages rather than as a standalone application brand.

### 使用方式

Typical use is programmatic registry inspection through the C API or language bindings, or command-line inspection/conversion with tools such as hivexsh, hivexml, hivexget, and hivexregedit. The manual also points users who only need Windows VM registry export or modification toward virt-win-reg, which layers the registry workflow into libguestfs tooling.

Package users care that hivex treats the binary hive as the primary data source. Its README explicitly avoids making textual .REG the main interface because parsing that format can be as troublesome as parsing the binary registry hive itself.

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

hivex is a classic package-nerd package: small, old, sharp-edged, and disproportionately important when the job involves foreign operating-system internals. It is the kind of dependency that appears in rescue images, forensic toolchains, VM migration stacks, and distro repositories because it solves a format problem that general-purpose JSON/XML/text tools cannot solve.

Its significance also comes from the libguestfs ecosystem boundary. hivex is independent enough to package as its own formula and library, but close enough to libguestfs that Windows guest registry support in higher-level tools can rely on it.

### 时间线

- 2009: Richard W.M. Jones and Red Hat authorship line begins for hivex.
- 2012: The GitHub repository for libguestfs/hivex was created as an official source-control mirror.
- libguestfs 1.19.35 era: Major hivex APIs became available directly through the libguestfs API for Windows guest registry access.
- 2024: The libguestfs download index continued listing hivex as a separate source archive family.

### Related projects

- libguestfs: the larger guest disk image toolkit that integrates hivex for Windows registry work.
- virt-win-reg: the higher-level libguestfs tool recommended for exporting or modifying registry data in Windows virtual machines.
- NTREG, dumphive, Samba editreg: earlier registry readers or tools named by hivex as source material or influence.

### 来源

- <https://api.github.com/repos/libguestfs/hivex>
- <https://download.libguestfs.org/>
- <https://libguestfs.org/guestfs.3.html>
- <https://libguestfs.org/hivex.3.html>
- <https://raw.githubusercontent.com/libguestfs/hivex/master/README.md>
- input: source_facts.package-manager


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Debian apt - libhivex-bin - 1.3.24-1+b10: normalized package name match | Debian stable package indexes: libhivex-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utilities for reading and writing Windows Registry hives | http://libguestfs.org/
- Debian apt - libhivex-dev - 1.3.24-1+b10: normalized package name match | Debian stable package indexes: libhivex-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading and writing Windows Registry hives | http://libguestfs.org/
- Debian apt - libhivex-ocaml - 1.3.24-1+b10: normalized package name match | Debian stable package indexes: libhivex-ocaml from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OCaml bindings for hivex -- runtime files | http://libguestfs.org/
- Debian apt - libhivex-ocaml-dev - 1.3.24-1+b10: normalized package name match | Debian stable package indexes: libhivex-ocaml-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OCaml bindings for hivex -- development files | http://libguestfs.org/
- Debian apt - libhivex0 - 1.3.24-1+b10: normalized package name match | Debian stable package indexes: libhivex0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for reading and writing Windows Registry hives | http://libguestfs.org/
- Debian apt - libwin-hivex-perl - 1.3.24-1+b10: normalized package name match | Debian stable package indexes: libwin-hivex-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Perl bindings to hivex | http://libguestfs.org/
- Debian apt - python3-hivex - 1.3.24-1+b10: normalized package name match | Debian stable package indexes: python3-hivex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python 3 bindings for hivex | http://libguestfs.org/
- Debian apt - ruby-hivex - 1.3.24-1+b10: normalized package name match | Debian stable package indexes: ruby-hivex from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Ruby bindings for hivex | http://libguestfs.org/
- Nix - hivex: normalized package name match | nixpkgs package indexes: pkgs/by-name/hi/hivex/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libhivex-bin - 1.3.23-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libhivex-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utilities for reading and writing Windows Registry hives | http://libguestfs.org/
- Ubuntu apt - libhivex-dev - 1.3.23-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libhivex-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for reading and writing Windows Registry hives | http://libguestfs.org/
- Ubuntu apt - libhivex-ocaml - 1.3.23-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libhivex-ocaml from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OCaml bindings for hivex -- runtime files | http://libguestfs.org/
- Ubuntu apt - libhivex-ocaml-dev - 1.3.23-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libhivex-ocaml-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OCaml bindings for hivex -- development files | http://libguestfs.org/
- Ubuntu apt - libhivex0 - 1.3.23-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libhivex0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for reading and writing Windows Registry hives | http://libguestfs.org/
- Ubuntu apt - libwin-hivex-perl - 1.3.23-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: libwin-hivex-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Perl bindings to hivex | http://libguestfs.org/
- Ubuntu apt - python3-hivex - 1.3.23-1build7: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-hivex from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Python 3 bindings for hivex | http://libguestfs.org/


## Combined YAML source

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