# 使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper, winget 安装 inotify-tools

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

## 安装

```sh
sudo av install brew:inotify-tools
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install inotify-tools
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add inotify-tools
```

  证据: Alpine Linux edge package indexes: inotify-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install inotify-tools
```

  证据: Debian stable package indexes: inotify-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install inotify-tools
```

  证据: Fedora Rawhide package metadata: inotify-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#inotify-tools
```

  证据: nixpkgs package indexes: pkgs/by-name/in/inotify-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S inotify-tools
```

  证据: Arch Linux sync databases: inotify-tools from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install inotify-tools
```

  证据: openSUSE Tumbleweed package metadata: inotify-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id thekid.inotifywait -e
```

  证据: Windows Package Manager source index: thekid.inotifywait from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:inotify-tools
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/inotify-tools>
- **版本:** 4.25.9.0
- **来源摘要:** C library and command-line programs providing a simple interface to inotify
- **主页:** <https://github.com/inotify-tools/inotify-tools>
- **仓库:** <https://github.com/inotify-tools/inotify-tools>
- **上游文档:** <https://github.com/inotify-tools/inotify-tools#readme>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/inotify-tools/inotify-tools/archive/refs/tags/4.25.9.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- fsnotifywait (cli)
- fsnotifywatch (cli)
- inotifywait (cli)
- inotifywatch (cli)
- fsnotifywait (别名)
- fsnotifywatch (别名)
- inotifywait (别名)
- inotifywatch (别名)

## 构建依赖

- autoconf
- automake
- libtool

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 4.25.9.0
- 本地数据: OK
- 上游仓库: https://github.com/inotify-tools/inotify-tools
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

inotify-tools is a Linux-focused package of command-line utilities and a C library that expose the kernel inotify interface to shell scripts. The README says its purpose is to let inotify features be used from scripts, while the man page describes `inotifywait` as an efficient way to wait for filesystem changes.

### 项目历史

The NEWS file records that inotify-tools began on 19 October 2005, close to the arrival of Linux inotify in the 2.6 kernel era. The project grew around `inotifywait`, `inotifywatch`, and `libinotifytools`, making filesystem event monitoring scriptable without each script needing to call kernel APIs directly.

The repository later added `fsnotifywait` and `fsnotifywatch` for fanotify-oriented workflows, and the README explicitly recommends enhancing the Rust version of the codebase over the older C/C++ version. That note captures an unusual maintenance transition for a long-lived Linux utility package.

### 采用历史

inotify-tools is broadly packaged across Linux distributions and developer package managers because it is a small, dependable building block for file watchers, deploy hooks, build scripts, sync scripts, and daemon glue. Homebrew metadata lists packages across Alpine, Debian, Fedora, Nix, Pacman, Ubuntu, WinGet, and openSUSE.

### 使用方式

The most common command is `inotifywait`, which waits for events on files or directories, exits after a single event by default, or streams events with `--monitor`. The man page documents recursive watching, event selection, CSV and custom output formatting, daemon mode, syslog output, and warnings about watch limits such as `/proc/sys/fs/inotify/max_user_watches`.

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

For package maintainers, inotify-tools is one of the canonical tiny Unix tools: it bridges a Linux-specific kernel facility into shell-friendly text output. Its presence in package indexes often enables other packages' test suites, file-reload scripts, and live-build tooling.

### 时间线

- 2005: NEWS records inotify-tools begun.
- 2005-2010s: `inotifywait`, `inotifywatch`, and `libinotifytools` become standard package-manager entries for Linux file-event scripting.
- 2020s: Repository includes fanotify-facing `fsnotifywait` and `fsnotifywatch` alongside the inotify tools.
- 2025: GitHub releases page lists release 4.25.9.0.

### Related projects

- Related technologies include Linux inotify, Linux fanotify, fsnotify, shell scripting, `watch`-style terminal tools, and higher-level file watcher packages that build on kernel event APIs.

### 来源

- <https://formulae.brew.sh/formula/inotify-tools>
- <https://github.com/inotify-tools/inotify-tools>
- <https://github.com/inotify-tools/inotify-tools/releases>
- <https://raw.githubusercontent.com/inotify-tools/inotify-tools/master/NEWS>
- <https://raw.githubusercontent.com/inotify-tools/inotify-tools/master/README.md>
- <https://raw.githubusercontent.com/inotify-tools/inotify-tools/master/man/inotifywait.1.in>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** inotify-tools
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** linux
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - inotify-tools - 4.23.9.0-2+b1: normalized package name match | Debian stable package indexes: inotify-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line programs providing a simple interface to inotify | https://github.com/rvoicilas/inotify-tools/wiki/
- Debian apt - libinotifytools0 - 4.23.9.0-2+b1: normalized package name match | Debian stable package indexes: libinotifytools0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utility wrapper around inotify | https://github.com/rvoicilas/inotify-tools/wiki/
- Debian apt - libinotifytools0-dev - 4.23.9.0-2+b1: normalized package name match | Debian stable package indexes: libinotifytools0-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development library and header files for libinotifytools0 | https://github.com/rvoicilas/inotify-tools/wiki/
- Nix - inotify-tools: normalized package name match | nixpkgs package indexes: pkgs/by-name/in/inotify-tools/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - inotify-tools - 3.22.6.0-4: normalized package name match | Ubuntu 24.04 LTS package indexes: inotify-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line programs providing a simple interface to inotify | https://github.com/rvoicilas/inotify-tools/wiki/
- Ubuntu apt - libinotifytools0 - 3.22.6.0-4: normalized package name match | Ubuntu 24.04 LTS package indexes: libinotifytools0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utility wrapper around inotify | https://github.com/rvoicilas/inotify-tools/wiki/
- Ubuntu apt - libinotifytools0-dev - 3.22.6.0-4: normalized package name match | Ubuntu 24.04 LTS package indexes: libinotifytools0-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development library and header files for libinotifytools0 | https://github.com/rvoicilas/inotify-tools/wiki/
- apk - inotify-tools - 4.23.9.0-r0: normalized package name match | Alpine Linux edge package indexes: inotify-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C library and CLI tools providing a simple interface to inotify | https://github.com/inotify-tools/inotify-tools
- apk - inotify-tools-dev - 4.23.9.0-r0: normalized package name match | Alpine Linux edge package indexes: inotify-tools-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C library and CLI tools providing a simple interface to inotify (development files) | https://github.com/inotify-tools/inotify-tools
- apk - inotify-tools-doc - 4.23.9.0-r0: normalized package name match | Alpine Linux edge package indexes: inotify-tools-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C library and CLI tools providing a simple interface to inotify (documentation) | https://github.com/inotify-tools/inotify-tools
- apk - inotify-tools-libs - 4.23.9.0-r0: normalized package name match | Alpine Linux edge package indexes: inotify-tools-libs from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | C library and CLI tools providing a simple interface to inotify (libraries) | https://github.com/inotify-tools/inotify-tools
- dnf - inotify-tools - 4.23.9.0-6.fc44: normalized package name match | Fedora Rawhide package metadata: inotify-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Command line utilities for inotify | https://github.com/inotify-tools/inotify-tools
- dnf - inotify-tools-devel - 4.23.9.0-6.fc44: normalized package name match | Fedora Rawhide package metadata: inotify-tools-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Headers and libraries for building apps that use libinotifytools | https://github.com/inotify-tools/inotify-tools
- pacman - inotify-tools - 4.25.9.0-1: normalized package name match | Arch Linux sync databases: inotify-tools from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | inotify-tools is a C library and a set of command-line programs for Linux providing a simple interface to inotify. | https://github.com/inotify-tools/inotify-tools
- zypper - inotify-tools - 4.25.9.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: inotify-tools from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Tools for inotify | https://github.com/inotify-tools/inotify-tools
- zypper - inotify-tools-devel - 4.25.9.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: inotify-tools-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for inotify-tools | https://github.com/inotify-tools/inotify-tools


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/zh-hans/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [direvent](https://www.automicvault.com/zh-hans/pkg/brew/direvent/) - Shares av.db curated category or tags: cli, filesystem, filesystem-monitoring, monitoring, system.
- [btrfs-progs](https://www.automicvault.com/zh-hans/pkg/brew/btrfs-progs/) - Shares av.db curated category or tags: cli, filesystem, linux, system.
- [dfc](https://www.automicvault.com/zh-hans/pkg/brew/dfc/) - Shares av.db curated category or tags: cli, filesystem, monitoring, system.
- [duf](https://www.automicvault.com/zh-hans/pkg/brew/duf/) - Shares av.db curated category or tags: cli, filesystem, monitoring, system.
- [dysk](https://www.automicvault.com/zh-hans/pkg/brew/dysk/) - Shares av.db curated category or tags: cli, filesystem, linux, system.
- [e2fsprogs](https://www.automicvault.com/zh-hans/pkg/brew/e2fsprogs/) - Shares av.db curated category or tags: cli, filesystem, linux, system.
- [erofs-utils](https://www.automicvault.com/zh-hans/pkg/brew/erofs-utils/) - Shares av.db curated category or tags: cli, filesystem, linux, system.
- [lsr](https://www.automicvault.com/zh-hans/pkg/brew/lsr/) - Shares av.db curated category or tags: cli, filesystem, linux, system.
- [trash-cli](https://www.automicvault.com/zh-hans/pkg/brew/trash-cli/) - Local package facts share a topical domain. Shared terms: cli, command-line, interface, line, linux.

## Combined YAML source

View the package source record on GitHub. [combined/inotify-tools.yml](https://github.com/automic-vault/db/blob/main/combined/inotify-tools.yml)


## 来源

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