# 使用 Homebrew, apk, MacPorts, Nix 安装 hwatch

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

## 安装

```sh
sudo av install brew:hwatch
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install hwatch
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hwatch
```

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

### Linux

- apk (92%):

```sh
sudo apk add hwatch
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#hwatch
```

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

## 软件包事实

- **软件包键:** brew:hwatch
- **软件包管理器:** Homebrew
- **版本:** 0.4.2
- **来源摘要:** Modern alternative to the watch command
- **主页:** <https://github.com/blacknon/hwatch>
- **仓库:** <https://github.com/blacknon/hwatch>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- hwatch (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

hwatch is a modern replacement for the Unix `watch` command. It repeatedly runs a command, keeps output history, shows diffs, can log results as JSON, and can trigger hooks when output changes.

### 项目历史

The GitHub repository was created in February 2018, and the README describes hwatch as an alternative watch command developed starting in 2018. The release list shows a v0.1.0 tag in July 2018, followed by 0.1.x releases through 2019 and later 0.2/0.3 releases in 2022.

### 采用历史

The README lists installation paths through Homebrew, MacPorts, AUR, Nix, conda-forge, mise/asdf, Cargo, GitHub release archives, and distro packaging work such as Alpine and Debian-style assets. That spread matches a small terminal utility whose adoption depends on being easy to install on many developer machines.

### 使用方式

hwatch is used where plain `watch` is too stateless: monitoring command output, scrolling previous results, viewing line or word diffs, writing JSONL logs, running an after-command on change, or using batch output in scripts.

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

Its package-nerd value is the familiar Unix-watch workflow with persistence and diff awareness. It is a small tool, but it fills a practical gap for people who inspect build output, service state, queue depths, or logs from a terminal.

### 时间线

- 2018: Repository created and v0.1.0 release published.
- 2019: 0.1.x releases continued the early CLI line.
- 2022: 0.2.x and 0.3.x releases appeared.
- 2026: README packaging notes listed multiple package-manager and release-asset paths.

### Related projects

- hwatch is directly related to the traditional Unix `watch` command, terminal diff viewers, JSONL logging workflows, Rust/Cargo packaging, and shell hook automation.

### 来源

- Project README, GitHub release metadata, GitHub repository metadata, and Homebrew package metadata were used.


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Nix - hwatch: normalized package name match | nixpkgs package indexes: pkgs/by-name/hw/hwatch/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - hwatch - 0.3.11-r0: normalized package name match | Alpine Linux edge package indexes: hwatch from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A modern alternative to the watch command | https://github.com/blacknon/hwatch
- apk - hwatch-doc - 0.3.11-r0: normalized package name match | Alpine Linux edge package indexes: hwatch-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A modern alternative to the watch command (documentation) | https://github.com/blacknon/hwatch
- apk - hwatch-fish-completion - 0.3.11-r0: normalized package name match | Alpine Linux edge package indexes: hwatch-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for hwatch | https://github.com/blacknon/hwatch
- apk - hwatch-zsh-completion - 0.3.11-r0: normalized package name match | Alpine Linux edge package indexes: hwatch-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for hwatch | https://github.com/blacknon/hwatch
- MacPorts - hwatch: normalized package name match | MacPorts ports tree: sysutils/hwatch/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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