# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/hwatch>
- **版本:** 0.4.2
- **来源摘要:** Modern alternative to the watch command
- **主页:** <https://github.com/blacknon/hwatch>
- **仓库:** <https://github.com/blacknon/hwatch>
- **许可证:** MIT
- **源码归档:** <https://github.com/blacknon/hwatch/archive/refs/tags/0.4.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- hwatch (cli)
- hwatch (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.4.2
- 本地数据: OK
- 上游仓库: https://github.com/blacknon/hwatch
- 检测到的最新版本: 0.4.2 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [viddy](https://pkg.so/zh-hans/brew/viddy/) - Shares pkgdb curated category or tags: cli, monitoring, system, terminal, watch.
- [htop](https://pkg.so/zh-hans/brew/htop/) - Shares pkgdb curated category or tags: cli, monitoring, system, terminal.
- [pv](https://pkg.so/zh-hans/brew/pv/) - Shares pkgdb curated category or tags: cli, monitoring, system, terminal.
- [dfc](https://pkg.so/zh-hans/brew/dfc/) - Shares pkgdb curated category or tags: cli, monitoring, system, terminal.
- [gotop](https://pkg.so/zh-hans/brew/gotop/) - Shares pkgdb curated category or tags: cli, monitoring, system, terminal.
- [multitail](https://pkg.so/zh-hans/brew/multitail/) - Shares pkgdb curated category or tags: cli, monitoring, system, terminal.
- [tree](https://pkg.so/zh-hans/brew/tree/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [eza](https://pkg.so/zh-hans/brew/eza/) - Shares pkgdb curated category or tags: cli, system, terminal.
- [facad](https://pkg.so/zh-hans/brew/facad/) - Local package facts share a topical domain. Shared terms: alternative, cli, modern, system, terminal.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
