Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, MacPorts, Nix, apt, scoop, winget 安装 watchman

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install watchman

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install watchman

MacPorts ports tree · sysutils/watchman/Portfile · 来源: api.github.com

Linux

Nix已验证 · 92%
nix profile install nixpkgs#watchman

nixpkgs package indexes · pkgs/by-name/wa/watchman/package.nix · 来源: api.github.com

Ubuntu apt已验证 · 92%
sudo apt install watchman

Ubuntu 24.04 LTS package indexes · watchman · 来源: archive.ubuntu.com

Windows

Chocolatey已验证 · 92%
choco install watchman

Chocolatey community package catalog · watchman · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install main/watchman

Scoop official bucket manifest trees · bucket/watchman.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id facebook.watchman -e

Windows Package Manager source index · facebook.watchman · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Watch files and take action when they change

命令和别名

  • watchman
  • watchman-diag
  • watchman-make
  • watchman-replicate-subscription
  • watchman-wait
  • watchmanctl

历史

项目历史与用法

Watchman is Meta's file-watching service for recording file changes, querying watched roots, and triggering actions. Unlike single-shot command rerunners, Watchman is a daemon-like service with clients, subscriptions, clocks, queries, triggers, and source-control-aware behavior for very large working trees.

项目历史

The Watchman documentation says the project has been used in production since a few weeks after it was first written, which explains its emphasis on backward compatibility and conservative behavior. The README states that Watchman is primarily maintained by Meta's source control team and supports Windows, macOS, Linux on recent Ubuntu and Fedora releases, and Python, Rust, and JavaScript clients.

Release notes show a mature 3.x and 4.x era by 2015. In 2015, Watchman added relative-root query support, BSER support for the Node client, official PyPI release machinery for pywatchman, server capabilities, recursive glob query improvements, and significant macOS and Linux recrawl/crawl-speed improvements. In 2016, the 4.x line continued with configuration and performance work, including source-control-settling behavior and the 4.7 release's shared-lock queries and Buck-oriented glob-generator integration.

The 4.8 notes describe a major internal transition: Watchman was converted from C to C++, subscriptions and triggers became more concurrent, BSERv2 was implemented, Python 3 support improved, and macOS launchd socket-activation behavior changed for Homebrew users. The 4.9.0 release in 2017 added content SHA-1 hashing, experimental source-control-aware query mode, Windows beta status, and several Windows reliability improvements. Since May 2020, the compatibility docs say Watchman is continuously deployed inside Facebook/Meta and public tags became date-based rather than manually versioned.

采用历史

Watchman's adoption is strongest where file watching must scale across large repos and developer tools. The official docs describe recursive roots, subscriptions, queries since a clock, triggers, and conservative handling of uncertain state. The Jest CLI still exposes a `--watchman` option for file crawling, defaulting to true, which is a visible example of Watchman becoming infrastructure under JavaScript test tooling.

The installation docs also reflect a split between Meta's upstream releases and community packaging. Homebrew and MacPorts are documented for macOS, Chocolatey for Windows, and upstream release packages for Fedora and Ubuntu are recommended over stale distro packages. That history fits Watchman's role: users often install it not because they plan to call it directly every day, but because another tool wants a reliable file-change indexer.

使用方式

A basic Watchman workflow establishes a watch root and then adds a trigger, for example watching a source directory and running a minifier when CSS files change. More advanced users issue file queries, subscribe to changes, configure roots with `/etc/watchman.json` or `.watchmanconfig`, and tune OS-specific limits such as Linux inotify watch counts.

The service model is the key distinction. Clients ask what changed since a clock, subscribe to a stream, or defer events during source-control operations. Source-control-aware subscriptions can defer during Mercurial updates, and the 4.9 release notes describe source-control-aware queries as a way to keep responses closer to the size of the user's changes rather than the size of the entire repository.

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

Watchman matters to package nerds because it is a serious answer to the unreliable, platform-specific, resource-limited world of filesystem notifications. It sits underneath build systems, test runners, source-control tooling, and editor-adjacent workflows, exposing stable APIs while hiding inotify, FSEvents, Windows, recrawl, overflow, and large-tree behavior behind a service boundary.

时间线

  • 2015-06: Watchman 3.3.0 adds relative-root query and subscription support.
  • 2015-08: pywatchman 1.0.0 and Node fb-watchman BSER support appear in release notes.
  • 2015-09: Watchman 3.8.0 adds capabilities and client capability checks.
  • 2016-09: Watchman 4.7.0 reduces memory use, adds shared-lock queries, and notes Buck integration with the glob generator.
  • 2017-08-24: Watchman 4.9.0 adds content SHA-1 fields, experimental source-control-aware query mode, and promotes Windows support to beta.
  • 2020-05: Compatibility docs describe the move to continuous deployment and date-based tags.
  • 2023: Watchman documentation site identifies Meta Platforms as the site owner and README names Meta's source control team as primary maintainer.

Related projects

  • Watchman is related to Sapling and Meta source-control infrastructure, Jest's file crawling, Buck-style build tooling, React Native and Metro-era watch workflows, pywatchman, fb-watchman for Node, and simpler file-watching command runners such as watchexec and entr.

安全态势

尚未找到受保护工具覆盖

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

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 8 个运行时依赖。
  • 构建元数据列出 10 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
/etc/watchman.json.watchmanconfig

可执行文件

已安装的可执行文件

命令类型暴露范围备注
watchmancli全局可执行文件
watchman-diagcli全局可执行文件
watchman-makecli全局可执行文件
watchman-replicate-subscriptioncli全局可执行文件
watchman-waitcli全局可执行文件
watchmanctlcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2026.07.06.00
管理器更新时间2026-07-07
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/facebook/watchman

安装元数据

软件包元数据

软件包键brew:watchman
版本2026.07.06.00
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/watchman
主页https://facebook.github.io/watchman/
仓库https://github.com/facebook/watchman
上游文档https://facebook.github.io/watchman
许可证MIT
源码归档https://github.com/facebook/watchman/archive/refs/tags/v2026.07.06.00.tar.gz
最后更新2026-07-07T21:44:34Z
Pulseupdated
依赖edencommon, fb303, fbthrift, fmt, folly, glog, pcre2, python@3.14
构建依赖cmake, cpptoml, gflags, googletest, libevent, mvfst, openssl@4, pkgconf, python-setuptools, rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namewatchman
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

watchman

nix profile install nixpkgs#watchman
  • normalized package name match
  • 匹配方式:Watchman
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/wa/watchman/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

python3-pywatchman 4.9.0-7build4

Python library for Watchman and related utilities

https://facebook.github.io/watchman

sudo apt install python3-pywatchman
  • Section: universe/python
  • Architecture: amd64
  • Source Package: watchman
  • 4 依赖
  • normalized package name match
  • 匹配方式:Watchman
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-pywatchman from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

watchman 4.9.0-7build4

File watching service

https://facebook.github.io/watchman

sudo apt install watchman
  • Section: universe/utils
  • Architecture: amd64
  • 5 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Watchman
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: watchman from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
MacPorts95%

watchman

sudo port install watchman
  • normalized package name match
  • 匹配方式:Watchman
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/watchman/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

watchman

choco install watchman
  • normalized package name match
  • 匹配方式:Watchman
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: watchman from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','vscode'
Scoop95%

main/watchman

scoop install main/watchman
  • normalized package name match
  • 匹配方式:Watchman
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/watchman.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

facebook.watchman

winget install --id facebook.watchman -e
  • normalized package name match
  • 匹配方式:Watchman
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: facebook.watchman from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment