# 使用 Homebrew, apt, dnf, Nix 安装 tweak

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

## 安装

```sh
sudo av install brew:tweak
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tweak
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install tweak
```

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

- dnf (92%):

```sh
sudo dnf install tweak
```

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

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

## 软件包事实

- **软件包键:** brew:tweak
- **软件包管理器:** Homebrew
- **版本:** 3.02
- **来源摘要:** Command-line, ncurses library based hex editor
- **主页:** <https://www.chiark.greenend.org.uk/~sgtatham/tweak/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- tweak (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Tweak is Simon Tatham's terminal hex editor for Unix systems. Its distinguishing historical point is not being another small hex viewer, but a hex editor built around efficient editing of large binary files.

### 项目历史

The official Tweak page presents the tool as an ncurses-based Unix hex editor and explains why it was written: it uses a B-tree-based data structure so insertions, cut/copy/paste, and lazy loading can remain fast even for very large files such as disk or CD images.

The current public release documented on the official page is Tweak 3.02, with an online man page and a browsable development repository hosted on git.tartarus.org.

### 采用历史

Tweak's adoption appears to be modest but durable: it is packaged by Homebrew and several Unix-like distributions, and its appeal is strongest for users who want a console hex editor with insert-mode editing rather than a GUI binary editor.

### 使用方式

Typical use is `tweak filename` in a terminal to inspect or edit exact binary file contents. The man page highlights uses such as modifying executables, editing disk or CD images, debugging binary file formats, and constructing new files from scratch with insert mode.

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

For package nerds, Tweak is a good example of a small, old-school Unix tool whose implementation detail is the feature: it packages a specialized data structure behind a simple curses interface for binary-file work.

It is also a reminder that package managers preserve narrow utilities long after mainstream developer tooling has moved to graphical or IDE-centered workflows.

### 时间线

- Pre-2010s: Tweak is published by Simon Tatham as a Unix ncurses hex editor.
- Tweak 3.02: Current public release documented on the official project page.
- 2010s-2020s: Tweak remains available through Unix package managers including Homebrew and Linux distributions.

### Related projects

- Simon Tatham's other free software, especially PuTTY and Halibut, shares the same upstream site and packaging culture.
- Other terminal hex editors and binary editors occupy the same niche, but Tweak's official page emphasizes efficient large-file editing through its B-tree design.

### 来源

- Official man page: https://www.chiark.greenend.org.uk/~sgtatham/tweak/manpage-3.02.html
- Official project page: https://www.chiark.greenend.org.uk/~sgtatham/tweak/
- Official repository: https://git.tartarus.org/simon/tweak.git


## 安全说明

library-like package without higher-risk signals.

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


## 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: ~/.tweakrc
## 其他软件包管理器记录

- Debian apt - tweak - 3.02-6: normalized package name match | Debian stable package indexes: tweak from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Efficient text-mode hex editor | https://www.chiark.greenend.org.uk/~sgtatham/tweak/
- Nix - tweak: normalized package name match | nixpkgs package indexes: pkgs/by-name/tw/tweak/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - tweak - 3.02-6: normalized package name match | Ubuntu 24.04 LTS package indexes: tweak from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Efficient text-mode hex editor | https://www.chiark.greenend.org.uk/~sgtatham/tweak/
- dnf - tweak - 3.02-23.fc45: normalized package name match | Fedora Rawhide package metadata: tweak from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | An efficient hex editor | http://www.chiark.greenend.org.uk/~sgtatham/tweak/


## Combined YAML source

View the package source record on GitHub. [combined/tweak.yml](https://github.com/mxcl/pkgdb/blob/main/combined/tweak.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
