Automic VaultAutomic Vault

brew

使用 Homebrew, apt, dnf, MacPorts, Nix, zypper, winget 安装 fswatch

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install fswatch

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install fswatch

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

Linux

Debian apt已验证 · 92%
sudo apt install fswatch

Debian stable package indexes · fswatch · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install fswatch

Fedora Rawhide package metadata · fswatch · 来源: dl.fedoraproject.org

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

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

openSUSE zypper已验证 · 92%
sudo zypper install fswatch

openSUSE Tumbleweed package metadata · fswatch · 来源: download.opensuse.org

Windows

Windows Package Manager已验证 · 92%
winget install --id emcrisostomo.fswatch -e

Windows Package Manager source index · emcrisostomo.fswatch · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Monitor a directory for changes and run a shell command

命令和别名

  • fswatch

历史

项目历史与用法

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.

时间线

  • 2009: First fswatch implementation written for OS X FSEvents.
  • 2013: fsw written as a multi-backend replacement effort.
  • 2014: fsw and fswatch merged, with development continuing in fswatch.
  • 2024: fswatch 1.18.0 adopted C++17 and updated FSEvents/inotify rename-correlation support.
  • 2026: fswatch 1.21.0 documented conjunctive filters, pruning, and CMake package configuration files for libfswatch.

Related projects

  • fsw is the predecessor project that merged into fswatch.
  • libfswatch is the library layer behind the fswatch frontend.
  • The project is related to native event systems including FSEvents, kqueue, File Events Notification, inotify, fanotify, ReadDirectoryChangesW, and stat-based polling.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:shell

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
fswatchcli全局可执行文件

新鲜度

版本和新鲜度

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

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

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
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

fswatch 1.14.0+repack-13.1+b1

file change monitor based on inotify

http://emcrisostomo.github.io/fswatch

sudo apt install fswatch
  • Section: misc
  • Architecture: amd64
  • Source Package: fswatch
  • 3 依赖
  • normalized package name match
  • 匹配方式:Fswatch
Debian stable package indexes · deb.debian.org · Debian stable package indexes: fswatch from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

fswatch

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

fswatch 1.14.0+repack-13.1

file change monitor based on inotify

http://emcrisostomo.github.io/fswatch

sudo apt install fswatch
  • Section: universe/misc
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Fswatch
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: fswatch from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

fswatch 1.17.1-6.fc44

A cross-platform file change monitor

https://github.com/emcrisostomo/fswatch

sudo dnf install fswatch
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: fswatch
  • 6 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Fswatch
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: fswatch from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

fswatch-devel 1.17.1-6.fc44

Development files for fswatch

https://github.com/emcrisostomo/fswatch

sudo dnf install fswatch-devel
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: fswatch
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Fswatch
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: fswatch-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

fswatch-static 1.17.1-6.fc44

Static library for fswatch

https://github.com/emcrisostomo/fswatch

sudo dnf install fswatch-static
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: i686
  • Source Package: fswatch
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Fswatch
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: fswatch-static from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

fswatch 1.21.0-1.1

Multi platform file change monitor

https://github.com/emcrisostomo/fswatch

sudo zypper install fswatch
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: fswatch
  • 4 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Fswatch
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: fswatch from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

fswatch-doc 1.21.0-1.1

Documentation for fswatch

https://github.com/emcrisostomo/fswatch

sudo zypper install fswatch-doc
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: fswatch
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Fswatch
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: fswatch-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

fswatch-lang 1.21.0-1.1

Translations for package fswatch

https://github.com/emcrisostomo/fswatch

sudo zypper install fswatch-lang
  • License: GPL-3.0-or-later
  • Category: System/Localization
  • Architecture: noarch
  • Source Package: fswatch
  • 1 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Fswatch
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: fswatch-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libfswatch-devel 1.21.0-1.1

Development files for fswatch

https://github.com/emcrisostomo/fswatch

sudo zypper install libfswatch-devel
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: fswatch
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Fswatch
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libfswatch-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libfswatch15 1.21.0-1.1

Shared library for fswatch

https://github.com/emcrisostomo/fswatch

sudo zypper install libfswatch15
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: fswatch
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Fswatch
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libfswatch15 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

fswatch

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

emcrisostomo.fswatch

winget install --id emcrisostomo.fswatch -e
  • normalized package name match
  • 匹配方式:Fswatch
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: emcrisostomo.fswatch 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 package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment