macOS
brew install fswatchlocal Homebrew formula metadata
sudo port install fswatchMacPorts ports tree · sysutils/fswatch/Portfile · 来源: api.github.com
安装
brew install fswatchlocal Homebrew formula metadata
sudo port install fswatchMacPorts ports tree · sysutils/fswatch/Portfile · 来源: api.github.com
sudo apt install fswatchDebian stable package indexes · fswatch · 来源: deb.debian.org
sudo dnf install fswatchFedora Rawhide package metadata · fswatch · 来源: dl.fedoraproject.org
nix profile install nixpkgs#fswatchnixpkgs package indexes · pkgs/by-name/fs/fswatch/package.nix · 来源: api.github.com
sudo zypper install fswatchopenSUSE Tumbleweed package metadata · fswatch · 来源: download.opensuse.org
winget install --id emcrisostomo.fswatch -eWindows Package Manager source index · emcrisostomo.fswatch · 来源: cdn.winget.microsoft.com
概览
Monitor a directory for changes and run a shell command
历史
fswatch is a cross-platform file-change monitor and libfswatch frontend with backends for macOS, BSD, Linux, Solaris/Illumos, Windows, and portable polling.
The fswatch README traces the project to Alan Dipert's 2009 OS X implementation using Apple's FSEvents API. At the end of 2013 Enrico M. Crisostomo wrote fsw as a cross-platform replacement and front end for multiple filesystem event APIs.
In April 2014, the authors of fswatch and fsw agreed to merge the programs, with future development continuing in the fswatch repository under Crisostomo's maintenance. The current README describes fswatch as a frontend for libfswatch, with C, C++, and Go bindings noted.
The official README tells users to obtain fswatch from their operating-system or third-party package manager when available, and gives examples for MacPorts, Homebrew, and FreeBSD pkg. The supplied package data shows packages across Homebrew, Debian, Fedora, MacPorts, Nix, Ubuntu, winget, and openSUSE families.
The project has continued as a packaged command-line utility while also exposing libfswatch for programs that need filesystem events without maintaining per-platform watcher code.
fswatch accepts paths and streams events for changes to files or directories. Its output can be piped to shell loops or to xargs, and the -o mode supports running one command per batch of changes.
By default fswatch chooses the best available monitor for the platform, while users can select monitors explicitly. The README recommends FSEvents on macOS, File Events Notification on Solaris derivatives, inotify on Linux, the Windows monitor on Windows, kqueue for small BSD/macOS watch sets, and polling as the fallback.
fswatch is important to package users because it provides one CLI and one library abstraction over the incompatible filesystem notification APIs that build tools, static-site generators, test runners, and shell automation frequently need.
For maintainers, fswatch is also a classic portability package: it wraps native APIs where possible, keeps a poll fallback, publishes Texinfo/man/PDF/API documentation, and ships through many Unix and Windows package channels.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
fswatch | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/emcrisostomo/fswatch
安装元数据
| 软件包键 | brew:fswatch |
|---|---|
| 版本 | 1.22.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/fswatch |
| 主页 | https://emcrisostomo.github.io/fswatch/ |
| 仓库 | https://github.com/emcrisostomo/fswatch |
| 上游文档 | https://emcrisostomo.github.io/fswatch/documentation.html |
| 许可证 | GPL-3.0-or-later AND Apache-2.0 |
| 源码归档 | https://github.com/emcrisostomo/fswatch/releases/download/1.22.0/fswatch-1.22.0.tar.gz |
| 最后更新 | 2026-07-22T12:18:56Z |
| Pulse | updated |
| 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 | fswatch |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
fswatch 1.14.0+repack-13.1+b1
file change monitor based on inotify
http://emcrisostomo.github.io/fswatch
sudo apt install fswatchfswatch
nix profile install nixpkgs#fswatchfswatch 1.14.0+repack-13.1
file change monitor based on inotify
http://emcrisostomo.github.io/fswatch
sudo apt install fswatchfswatch 1.17.1-6.fc44
A cross-platform file change monitor
https://github.com/emcrisostomo/fswatch
sudo dnf install fswatchfswatch-devel 1.17.1-6.fc44
Development files for fswatch
https://github.com/emcrisostomo/fswatch
sudo dnf install fswatch-develfswatch-static 1.17.1-6.fc44
Static library for fswatch
https://github.com/emcrisostomo/fswatch
sudo dnf install fswatch-staticfswatch 1.21.0-1.1
Multi platform file change monitor
https://github.com/emcrisostomo/fswatch
sudo zypper install fswatchfswatch-doc 1.21.0-1.1
Documentation for fswatch
https://github.com/emcrisostomo/fswatch
sudo zypper install fswatch-docfswatch-lang 1.21.0-1.1
Translations for package fswatch
https://github.com/emcrisostomo/fswatch
sudo zypper install fswatch-langlibfswatch-devel 1.21.0-1.1
Development files for fswatch
https://github.com/emcrisostomo/fswatch
sudo zypper install libfswatch-devellibfswatch15 1.21.0-1.1
Shared library for fswatch
https://github.com/emcrisostomo/fswatch
sudo zypper install libfswatch15fswatch
sudo port install fswatchemcrisostomo.fswatch
winget install --id emcrisostomo.fswatch -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.