macOS
brew install fswatchlocal Homebrew formula metadata
sudo port install fswatchMacPorts ports tree · sysutils/fswatch/Portfile · source: api.github.com
brew
Monitor a directory for changes and run a shell command. Version 1.21.0 via Homebrew; verified 2026-06-15.
install
brew install fswatchlocal Homebrew formula metadata
sudo port install fswatchMacPorts ports tree · sysutils/fswatch/Portfile · source: api.github.com
sudo apt install fswatchDebian stable package indexes · fswatch · source: deb.debian.org
sudo dnf install fswatchFedora Rawhide package metadata · fswatch · source: dl.fedoraproject.org
nix profile install nixpkgs#fswatchnixpkgs package indexes · pkgs/by-name/fs/fswatch/package.nix · source: api.github.com
sudo zypper install fswatchopenSUSE Tumbleweed package metadata · fswatch · source: download.opensuse.org
winget install --id emcrisostomo.fswatch -eWindows Package Manager source index · emcrisostomo.fswatch · source: cdn.winget.microsoft.com
overview
Monitor a directory for changes and run a shell command
history
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.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
fswatch | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/emcrisostomo/fswatch
install metadata
| Package key | brew:fswatch |
|---|---|
| Version | 1.21.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/fswatch |
| Homepage | https://emcrisostomo.github.io/fswatch/ |
| Repository | https://github.com/emcrisostomo/fswatch |
| Upstream docs | https://emcrisostomo.github.io/fswatch/documentation.html |
| License | GPL-3.0-or-later AND Apache-2.0 |
| Source archive | https://github.com/emcrisostomo/fswatch/releases/download/1.21.0/fswatch-1.21.0.tar.gz |
| Last updated | 2026-06-15T10:20:16-04:00 |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 -esource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.