# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 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

- 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

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

## 软件包事实

- **软件包键:** brew:hivex
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/hivex>
- **版本:** 1.3.24
- **来源摘要:** Library and tools for extracting the contents of Windows Registry hive files
- **主页:** <https://libguestfs.org>
- **仓库:** <https://github.com/libguestfs/hivex>
- **上游文档:** <https://libguestfs.org/hivex.3.html>
- **许可证:** GPL-2.0-or-later AND LGPL-2.1-only
- **源码归档:** <https://download.libguestfs.org/hivex/hivex-1.3.24.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

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

## 依赖

- gettext
- readline

## 构建依赖

- pkgconf

## macOS 提供的库

- libxml2

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.3.24
- 本地数据: OK
- 上游仓库: https://libguestfs.org
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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

## 源数据库详情

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

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

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


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Package ecosystem packages](https://www.automicvault.com/zh-hans/pkg/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [gettext](https://www.automicvault.com/zh-hans/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [augeas](https://www.automicvault.com/zh-hans/pkg/brew/augeas/) - Shares av.db curated category or tags: cli, library, system.
- [cahute](https://www.automicvault.com/zh-hans/pkg/brew/cahute/) - Shares av.db curated category or tags: cli, library, system.
- [chmlib](https://www.automicvault.com/zh-hans/pkg/brew/chmlib/) - Shares av.db curated category or tags: cli, library, system.
- [cpu_features](https://www.automicvault.com/zh-hans/pkg/brew/cpu-features/) - Shares av.db curated category or tags: cli, library, system.
- [cpuid](https://www.automicvault.com/zh-hans/pkg/brew/cpuid/) - Shares av.db curated category or tags: cli, library, system.
- [dbus-glib](https://www.automicvault.com/zh-hans/pkg/brew/dbus-glib/) - Shares av.db curated category or tags: cli, library, system.
- [hwloc](https://www.automicvault.com/zh-hans/pkg/brew/hwloc/) - Shares av.db curated category or tags: cli, library, system.
- [isa-l](https://www.automicvault.com/zh-hans/pkg/brew/isa-l/) - Shares av.db curated category or tags: cli, library, system.
- [bareos-client](https://www.automicvault.com/zh-hans/pkg/brew/bareos-client/) - Local package facts share a topical domain. Shared terms: cli, gettext, readline, system.
- [clifm](https://www.automicvault.com/zh-hans/pkg/brew/clifm/) - Local package facts share a topical domain. Shared terms: cli, gettext, readline, system.

## Combined YAML source

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


## 来源

- 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
