# 使用 Homebrew, apt, MacPorts, Nix, zypper 安装 ht

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

## 安装

```sh
sudo av install brew:ht
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ht
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ht
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ht
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#ht
```

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

- zypper (92%):

```sh
sudo zypper install ht
```

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

## 软件包事实

- **软件包键:** brew:ht
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ht>
- **版本:** 2.1.0
- **来源摘要:** Viewer/editor/analyzer for executables
- **主页:** <https://hte.sourceforge.net/>
- **仓库:** <https://github.com/sebastianbiallas/ht>
- **上游文档:** <https://github.com/sebastianbiallas/ht#readme>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://downloads.sourceforge.net/project/hte/ht-source/ht-2.1.0.tar.bz2>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- ht (cli)
- ht (别名)

## 依赖

- lzo

## macOS 提供的库

- ncurses

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

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

HT Editor is a console file viewer, editor, and analyzer for text, binary files, and especially executable formats, combining hex editing with disassembly and executable-structure inspection.

### 项目历史

The HT site credits Stefan Weyergraf and Sebastian Biallas and describes the project goal as combining the low-level functionality of a debugger with IDE-style usability. Its documentation and README describe support for formats such as ELF, PE, Mach-O, MZ, NE, LE, Java class files, XBE, COFF/XCOFF, and others.

The SourceForge-hosted site records a long 2.0.x release line from the 2000s into the early 2010s. In September 2014 the project announced that the official source repository moved to GitHub, and in January 2015 HT 2.1.0 added PE relocation handling, PE checksum calculation, AVR disassembly, broken-ELF crash fixes, and an updated minilzo.

### 采用历史

HT is packaged across Unix-like systems because it fills a niche between a hex editor, file-format browser, disassembler, and lightweight reverse-engineering workbench. The input metadata records packages in Homebrew, Debian, MacPorts, Nix, Ubuntu, and openSUSE.

Its SourceForge-era documentation also names GNU/Linux, FreeBSD, and Win32 as target systems, which explains why package recipes often need to preserve both Unix and Windows configuration behavior.

### 使用方式

Users open files in HT to inspect executable headers, sections, imports, exports, relocations, resources, disassembly, xrefs, labels, comments, and evaluator expressions. Analyzer state is stored beside the analyzed file as FILENAME.htcfg.

The documentation records global configuration in ~/.htcfg2 on Unix and ht.cfg2 next to ht.exe on Windows, plus per-file analyzer state that restores labels, comments, and analysis metadata.

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

HT matters to package nerds because it is a classic terminal reverse-engineering utility with deep file-format support and a long SourceForge-to-GitHub lineage. It is the kind of tool that remains useful even when newer GUI reverse-engineering platforms exist, because it is small enough to ship as a command-line package.

It also illustrates a packaging edge case: a project homepage, historical release notes, generated documentation, and a moved official repository all matter when identifying the authoritative source.

### 时间线

- 1999-2004: Project copyright range appears on the official site footer for the original authorship era.
- 2007: HT 2.0.10 release notes mention SSE5 opcode support.
- 2008: HT 2.0.13 release notes mention Intel AVX opcodes.
- 2013: HT 2.0.22 release notes mention editor scroll-offset work and bug fixes.
- 2014: Official source repository moved to GitHub.
- 2015: HT 2.1.0 released with PE, AVR, ELF-crash, and minilzo updates.

### Related projects

- Related tools include hex editors, objdump/readelf-style binary inspection tools, disassemblers, debuggers, and reverse-engineering suites used for executable analysis.

### 来源

- <https://github.com/sebastianbiallas/ht>
- <https://hte.sourceforge.net/>
- <https://hte.sourceforge.net/doc.html>
- <https://hte.sourceforge.net/readme.html>


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.htcfg2, FILENAME.htcfg
- Windows: ht.cfg2 (where ht.exe resides), FILENAME.htcfg
## 源数据库详情

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

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

- Debian apt - ht - 2.1.0+repack1-5: normalized package name match | Debian stable package indexes: ht from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Viewer/editor/analyser (mostly) for executables | http://hte.sourceforge.net/
- Nix - ht: normalized package name match | nixpkgs package indexes: pkgs/by-name/ht/ht/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - ht - 2.1.0+repack1-5: normalized package name match | Ubuntu 24.04 LTS package indexes: ht from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Viewer/editor/analyser (mostly) for executables | http://hte.sourceforge.net/
- zypper - ht - 2.1.0-4.3: normalized package name match | openSUSE Tumbleweed package metadata: ht from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Disassembler, object dumper and hex editor | http://hte.sf.net/
- zypper - hte - 2.1.0-4.3: normalized package name match | openSUSE Tumbleweed package metadata: hte from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Disassembler, object dumper and hex editor | http://hte.sf.net/
- MacPorts - ht: normalized package name match | MacPorts ports tree: devel/ht/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [binsider](https://www.automicvault.com/zh-hans/pkg/brew/binsider/) - Shares av.db curated category or tags: binary-analysis, cli, developer-tools, tui.
- [dz6](https://www.automicvault.com/zh-hans/pkg/brew/dz6/) - Shares av.db curated category or tags: cli, developer-tools, hex-editor, tui.
- [go-size-analyzer](https://www.automicvault.com/zh-hans/pkg/brew/go-size-analyzer/) - Shares av.db curated category or tags: binary-analysis, cli, developer-tools, tui.
- [z80dasm](https://www.automicvault.com/zh-hans/pkg/brew/z80dasm/) - Shares av.db curated category or tags: binary-analysis, cli, developer-tools, disassembler.
- [abi-dumper](https://www.automicvault.com/zh-hans/pkg/brew/abi-dumper/) - Shares av.db curated category or tags: binary-analysis, cli, developer-tools.
- [ali](https://www.automicvault.com/zh-hans/pkg/brew/ali/) - Shares av.db curated category or tags: cli, developer-tools, tui.
- [atac](https://www.automicvault.com/zh-hans/pkg/brew/atac/) - Shares av.db curated category or tags: cli, developer-tools, tui.
- [bed](https://www.automicvault.com/zh-hans/pkg/brew/bed/) - Shares av.db curated category or tags: cli, developer-tools, hex-editor.

## Combined YAML source

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


## 来源

- Nucleus package database
- package-page enrichment
- curated configuration and credential file locations
- 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
