# Install watchexec

Execute commands when watched files change. Version 2.5.1 via Homebrew; verified 2026-03-30.

## Install

```sh
sudo av install brew:watchexec
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install watchexec
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install watchexec
```

  Evidence: MacPorts ports tree: sysutils/watchexec/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add watchexec
```

  Evidence: Alpine Linux edge package indexes: watchexec from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#watchexec
```

  Evidence: nixpkgs package indexes: pkgs/by-name/wa/watchexec/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S watchexec
```

  Evidence: Arch Linux sync databases: watchexec from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install watchexec
```

  Evidence: openSUSE Tumbleweed package metadata: watchexec from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/watchexec
```

  Evidence: Scoop official bucket manifest trees: bucket/watchexec.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package Facts

- **Package key:** brew:watchexec
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/watchexec>
- **Version:** 2.5.1
- **Source summary:** Execute commands when watched files change
- **Homepage:** <https://watchexec.github.io/>
- **Repository:** <https://github.com/watchexec/watchexec>
- **Upstream docs:** <https://watchexec.github.io/docs>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/watchexec/watchexec/archive/refs/tags/v2.5.1.tar.gz>
- **Last updated:** 2026-03-30T08:06:34Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- watchexec (cli)
- watchexec (alias)

## Build Dependencies

- rust

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 2.5.1
- Package-manager updated: 2026-03-30
- Local data status: ok
- Upstream repository: https://github.com/watchexec/watchexec
- Upstream latest detected: v2.5.1 (current)

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** watchexec
- **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:** head, stable

## Other Package-Manager Records

- Nix - watchexec: normalized package name match | nixpkgs package indexes: pkgs/by-name/wa/watchexec/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - watchexec - 2.3.2-r1: normalized package name match | Alpine Linux edge package indexes: watchexec from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Executes commands in response to file modifications | https://github.com/watchexec/watchexec
- apk - watchexec-bash-completion - 2.3.2-r1: normalized package name match | Alpine Linux edge package indexes: watchexec-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for watchexec | https://github.com/watchexec/watchexec
- apk - watchexec-doc - 2.3.2-r1: normalized package name match | Alpine Linux edge package indexes: watchexec-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Executes commands in response to file modifications (documentation) | https://github.com/watchexec/watchexec
- apk - watchexec-fish-completion - 2.3.2-r1: normalized package name match | Alpine Linux edge package indexes: watchexec-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for watchexec | https://github.com/watchexec/watchexec
- apk - watchexec-zsh-completion - 2.3.2-r1: normalized package name match | Alpine Linux edge package indexes: watchexec-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for watchexec | https://github.com/watchexec/watchexec
- pacman - watchexec - 2.5.1-1: normalized package name match | Arch Linux sync databases: watchexec from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Executes commands in response to file modifications | https://github.com/watchexec/watchexec
- zypper - watchexec - 2.5.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: watchexec from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | Watches a path and runs a command whenever it detects modifications. | https://github.com/watchexec/watchexec
- MacPorts - watchexec: normalized package name match | MacPorts ports tree: sysutils/watchexec/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/watchexec: normalized package name match | Scoop official bucket manifest trees: bucket/watchexec.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related Links

- [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.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [wgo](https://www.automicvault.com/zh-hans/pkg/brew/wgo/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher, file-watching.
- [gaze](https://www.automicvault.com/zh-hans/pkg/brew/gaze/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher, file-watching.
- [watchman](https://www.automicvault.com/zh-hans/pkg/brew/watchman/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher, file-watching.
- [entr](https://www.automicvault.com/zh-hans/pkg/brew/entr/) - Shares av.db curated category or tags: automation, cli, developer-tools, file-watcher.
- [rust-parallel](https://www.automicvault.com/zh-hans/pkg/brew/rust-parallel/) - Shares av.db curated category or tags: automation, cli, developer-tools, rust.
- [gptscript](https://www.automicvault.com/zh-hans/pkg/brew/gptscript/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [clive](https://www.automicvault.com/zh-hans/pkg/brew/clive/) - Shares av.db curated category or tags: automation, cli, developer-tools.
- [cmdshelf](https://www.automicvault.com/zh-hans/pkg/brew/cmdshelf/) - Shares av.db curated category or tags: automation, cli, developer-tools, rust.

## Sources

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