# watcher を Homebrew, MacPorts, Nix, apt でインストール

watcher のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:watcher
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install watcher
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install watcher
```

  証拠: MacPorts ports tree: devel/watcher/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#watcher
```

  証拠: nixpkgs package indexes: pkgs/by-name/wa/watcher/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install python3-watcher
```

  証拠: Debian stable package indexes: python3-watcher from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## パッケージ情報

- **パッケージキー:** brew:watcher
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/watcher>
- **バージョン:** 0.14.5
- **ソース概要:** Filesystem watcher, works anywhere, simple, efficient and friendly
- **ホームページ:** <https://github.com/e-dant/watcher>
- **リポジトリ:** <https://github.com/e-dant/watcher>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/e-dant/watcher/archive/refs/tags/0.14.5.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- wtr.watcher (cli)
- wtr.watcher (エイリアス)

## ビルド依存関係

- cmake

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.14.5
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/e-dant/watcher
- 検出された最新: 0.14.5 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

Watcher is e-dant's cross-platform filesystem event watcher, exposed both as a C++ library and as a CLI that prints filesystem events. Its niche is deliberately small and systems-oriented: a dependency-minimal watcher that can be embedded from C++ or reached through C, Python, Rust, Node.js, and Go bindings.

### プロジェクトの歴史

Watcher appeared publicly as a Show HN post on October 18, 2022, where the author described it as a simple, efficient, dependency-free, header-only filesystem event watcher. In that launch discussion, the author explained the early implementation tradeoff: a baseline standard-library watcher, OS-specific support where useful, and attention to correctness on large trees rather than simply wrapping one kernel notification API.

The repository's release history shows the project maturing from the 0.9 and 0.10 series into 0.12, 0.13, and 0.14. By the 0.14.0 release, the project had added a Go package, refined Windows DLL exports for the C interface, and improved CMake behavior for subproject use. The 0.13.7 and later releases also show the kind of maintenance expected from filesystem tools: inotify rename fixes, Darwin/FSEvents fixes, pkg-config files, version flags, C++17 portability, and test/CI updates.

### 採用の歴史

Watcher remains a modest project compared with older file watching services, but its adoption signals are visible in developer packaging channels. The GitHub project page shows hundreds of stars, the README badges point to Conan, Cargo, PyPI, Go modules, Homebrew, Nix, and GNU Guix, and release artifacts are published for multiple operating systems and architectures.

### 使われ方

The README presents Watcher as both a library and a program. Library users call a `watch` function or class with a path and callback, then receive event objects containing path name, path type, effect type, event time, and an associated path for rename-style events. CLI users can run the bundled watcher program and pipe the resulting JSON stream into other tools.

The project is unusually binding-heavy for its size. The README includes quick starts for C++, C, Python, Rust, Node.js, and Go, which positions Watcher less as an end-user automation command like watchexec and more as a portable event substrate for developers who want file-change events inside their own applications.

### パッケージ好きにとっての重要性

Watcher is significant to package nerds because it tackles a famously awkward portability problem: every major OS exposes different filesystem event semantics, and correctness around renames, recursive trees, symlinks, and editor save patterns is full of edge cases. A small, dependency-minimal C++17 implementation with pkg-config, CMake, C ABI, and language bindings is exactly the sort of library packagers scrutinize for ABI surface, portability, testability, and platform-specific behavior.

### タイムライン

- 2022-10-18: Watcher is introduced on Hacker News as a filesystem watcher.
- 2023-2024: 0.10 through 0.12 release tags mark early public library and CLI maturation.
- 2025-09-01: 0.13.7 adds pkg-config files, a CLI version flag, C++17 portability fixes, and inotify rename fixes.
- 2025-12-08: 0.14.0 adds a Go package and improves C/CMake integration.
- 2026-02-23: 0.14.5 fixes cross-directory path-name caching and inotify/Linux reporting.

### Related projects

- Watcher sits near fsnotify-style libraries, kqueue/inotify/FSEvents/ReadDirectoryChangesW wrappers, Watchman, watchexec, entr, and language-specific file-watching packages. Its closest distinction is being an embeddable C++ library with a CLI, rather than a long-running service or a command rerunner.

### ソース

- <https://conan.io/center/recipes/watcher>
- <https://github.com/e-dant/watcher>
- <https://github.com/e-dant/watcher/releases>
- <https://news.ycombinator.com/item?id=33247155>


## セキュリティノート

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:** watcher
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** tabiew
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Debian apt - python3-watcher - 14.0.0-1+deb13u1: normalized package name match | Debian stable package indexes: python3-watcher from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack Cloud Optimization as a Service - Python libraries | https://github.com/openstack/watcher
- Debian apt - watcher-api - 14.0.0-1+deb13u1: normalized package name match | Debian stable package indexes: watcher-api from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack Cloud Optimization as a Service - API server | https://github.com/openstack/watcher
- Debian apt - watcher-applier - 14.0.0-1+deb13u1: normalized package name match | Debian stable package indexes: watcher-applier from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack Cloud Optimization as a Service - Applier | https://github.com/openstack/watcher
- Debian apt - watcher-common - 14.0.0-1+deb13u1: normalized package name match | Debian stable package indexes: watcher-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack Cloud Optimization as a Service - common files | https://github.com/openstack/watcher
- Debian apt - watcher-decision-engine - 14.0.0-1+deb13u1: normalized package name match | Debian stable package indexes: watcher-decision-engine from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack Cloud Optimization as a Service - Decision Engine | https://github.com/openstack/watcher
- Debian apt - watcher-doc - 14.0.0-1+deb13u1: normalized package name match | Debian stable package indexes: watcher-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack Cloud Optimization as a Service - doc | https://github.com/openstack/watcher
- Nix - watcher: normalized package name match | nixpkgs package indexes: pkgs/by-name/wa/watcher/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - python3-watcher - 2:12.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-watcher from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenStack Cloud Optimization as a Service - Python 3 libraries | https://opendev.org/openstack/watcher
- Ubuntu apt - watcher-api - 2:12.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: watcher-api from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenStack Cloud Optimization as a Service - API server | https://opendev.org/openstack/watcher
- Ubuntu apt - watcher-applier - 2:12.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: watcher-applier from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenStack Cloud Optimization as a Service - Applier | https://opendev.org/openstack/watcher
- Ubuntu apt - watcher-common - 2:12.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: watcher-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenStack Cloud Optimization as a Service - common files | https://opendev.org/openstack/watcher
- Ubuntu apt - watcher-decision-engine - 2:12.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: watcher-decision-engine from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenStack Cloud Optimization as a Service - Decision Engine | https://opendev.org/openstack/watcher
- Ubuntu apt - watcher-doc - 2:12.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: watcher-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | OpenStack Cloud Optimization as a Service - doc | https://opendev.org/openstack/watcher
- MacPorts - watcher: normalized package name match | MacPorts ports tree: devel/watcher/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [fswatch](https://pkg.so/ja/brew/fswatch/) - Shares pkgdb curated category or tags: cli, cross-platform, developer-tools, file-watcher.
- [ada-url](https://pkg.so/ja/brew/ada-url/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools.
- [watchman](https://pkg.so/ja/brew/watchman/) - Shares pkgdb curated category or tags: cli, developer-tools, file-watcher.
- [meson](https://pkg.so/ja/brew/meson/) - Shares pkgdb curated category or tags: cli, cross-platform, developer-tools.
- [fbthrift](https://pkg.so/ja/brew/fbthrift/) - Shares pkgdb curated category or tags: cli, cpp, developer-tools.
- [apr](https://pkg.so/ja/brew/apr/) - Shares pkgdb curated category or tags: cli, cross-platform, developer-tools.
- [qtbase](https://pkg.so/ja/brew/qtbase/) - Shares pkgdb curated category or tags: cli, cross-platform, developer-tools.
- [nfd2nfc](https://pkg.so/ja/brew/nfd2nfc/) - Local package facts share a topical domain. Shared terms: cli, cross, cross-platform, developer, developer-tools.
- [arelo](https://pkg.so/ja/brew/arelo/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, file, file-watcher.
- [fclones](https://pkg.so/ja/brew/fclones/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, efficient, file.

## Combined YAML source

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