macOS
brew install watchmanlocal Homebrew formula metadata
sudo port install watchmanMacPorts ports tree · sysutils/watchman/Portfile · 来源: api.github.com
安装
brew install watchmanlocal Homebrew formula metadata
sudo port install watchmanMacPorts ports tree · sysutils/watchman/Portfile · 来源: api.github.com
nix profile install nixpkgs#watchmannixpkgs package indexes · pkgs/by-name/wa/watchman/package.nix · 来源: api.github.com
sudo apt install watchmanUbuntu 24.04 LTS package indexes · watchman · 来源: archive.ubuntu.com
choco install watchmanChocolatey community package catalog · watchman · 来源: community.chocolatey.org
scoop install main/watchmanScoop official bucket manifest trees · bucket/watchman.json · 来源: api.github.com
winget install --id facebook.watchman -eWindows Package Manager source index · facebook.watchman · 来源: cdn.winget.microsoft.com
概览
Watch files and take action when they change
历史
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.
安全态势
没有找到 watchman 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
/etc/watchman.json.watchmanconfig可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
watchman | cli | 全局可执行文件 | |
watchman-diag | cli | 全局可执行文件 | |
watchman-make | cli | 全局可执行文件 | |
watchman-replicate-subscription | cli | 全局可执行文件 | |
watchman-wait | cli | 全局可执行文件 | |
watchmanctl | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 依赖 | 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | watchman |
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
watchman
nix profile install nixpkgs#watchmanpython3-pywatchman 4.9.0-7build4
Python library for Watchman and related utilities
https://facebook.github.io/watchman
sudo apt install python3-pywatchmanwatchman 4.9.0-7build4
File watching service
https://facebook.github.io/watchman
sudo apt install watchmanwatchman
sudo port install watchmanwatchman
choco install watchmanmain/watchman
scoop install main/watchmanfacebook.watchman
winget install --id facebook.watchman -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.