# 使用 Homebrew, apk, Nix, zypper, scoop 安装 wait4x

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

## 安装

```sh
sudo av install brew:wait4x
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wait4x
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add wait4x
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#wait4x
```

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

- zypper (92%):

```sh
sudo zypper install wait4x
```

  证据: openSUSE Tumbleweed package metadata: wait4x from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install extras/wait4x
```

  证据: Scoop official bucket manifest trees: bucket/wait4x.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:wait4x
- **软件包管理器:** Homebrew
- **版本:** 3.6.0
- **来源摘要:** Wait for a port or a service to enter the requested state
- **主页:** <https://wait4x.dev>
- **仓库:** <https://github.com/wait4x/wait4x>
- **最后更新:** 2026-05-09T15:13:04Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wait4x (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.6.0
## 项目历史与用法

Wait4X is a Go-based readiness-waiting tool for scripts, CI jobs, containers, and local development. Its job is deliberately narrow: block until a port, protocol endpoint, database, message broker, or other service reaches the expected state, then optionally run a command.

### 项目历史

The GitHub repository was created on November 1, 2019, and GitHub release metadata shows v0.1.0 published on February 8, 2020. The project later adopted the `wait4x.dev/v3` module path and documents itself as a lightweight, zero-dependency tool for modern infrastructure readiness checks.

By 2025 the release series had reached v3.6.0, and the README described a broader surface than simple TCP waiting: TCP, HTTP, DNS, Redis, MySQL, PostgreSQL, MongoDB, Kafka, RabbitMQ, InfluxDB, Temporal, reverse checks, parallel checks, exponential backoff, and command execution after checks.

### 采用历史

Wait4X lives in the same operational niche as `wait-for-it`, `dockerize`, Kubernetes readiness checks, and ad hoc shell loops, but its pitch is one static cross-platform binary with service-aware checks. As of July 2, 2026, GitHub API metadata showed about 1,339 stars and 54 forks, which is meaningful adoption for a focused infrastructure CLI.

### 使用方式

Typical usage is inline in automation: `wait4x tcp localhost:5432`, `wait4x http https://example.com/health --expect-status-code 200`, or `wait4x postgresql postgres://...` before a test suite or startup script continues. The README also shows multiple targets checked in parallel and an `--invert-check` mode for waiting until a service becomes unavailable.

Because it can run a command after readiness succeeds, Wait4X often replaces a shell loop in Docker entrypoints, CI workflow steps, and local scripts where a database, cache, broker, or API needs to be up before the next process starts.

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

Its package-nerd significance is the consolidation of many tiny readiness patterns into one binary. It does not define a protocol or framework, but it is useful glue in the places where package managers, containers, and CI systems expose race conditions between service startup and test execution.

### 时间线

- November 1, 2019: the wait4x/wait4x repository was created on GitHub.
- February 8, 2020: v0.1.0 was published as an early GitHub release.
- October 20, 2025: v3.6.0 was published, showing the project had continued into a v3 line with a wider readiness-check surface.
- July 2, 2026: GitHub API metadata showed the project still present as a moderate-sized infrastructure CLI repository.

### Related projects

- Related tools include `wait-for-it`, `dockerize`, and health-check mechanisms in Docker Compose and Kubernetes. Wait4X differs by shipping a single CLI with multiple protocol and service-specific checks rather than relying only on raw TCP ports or shell scripting.

### 来源

- <https://api.github.com/repos/wait4x/wait4x>
- <https://api.github.com/repos/wait4x/wait4x/releases>
- <https://github.com/wait4x/wait4x>
- <https://raw.githubusercontent.com/wait4x/wait4x/main/README.md>


## 安全说明

没有找到 wait4x 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Nix - wait4x: normalized package name match | nixpkgs package indexes: pkgs/by-name/wa/wait4x/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - wait4x - 3.6.0-r3: normalized package name match | Alpine Linux edge package indexes: wait4x from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Wait4X allows you to wait for a port or a service to enter the requested state | https://wait4x.dev
- apk - wait4x-bash-completion - 3.6.0-r3: normalized package name match | Alpine Linux edge package indexes: wait4x-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for wait4x | https://wait4x.dev
- apk - wait4x-doc - 3.6.0-r3: normalized package name match | Alpine Linux edge package indexes: wait4x-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Wait4X allows you to wait for a port or a service to enter the requested state (documentation) | https://wait4x.dev
- apk - wait4x-fish-completion - 3.6.0-r3: normalized package name match | Alpine Linux edge package indexes: wait4x-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for wait4x | https://wait4x.dev
- apk - wait4x-zsh-completion - 3.6.0-r3: normalized package name match | Alpine Linux edge package indexes: wait4x-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for wait4x | https://wait4x.dev
- zypper - wait4x - 3.6.0-1.6: normalized package name match | openSUSE Tumbleweed package metadata: wait4x from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Wait for a port or a service to enter the requested state | https://github.com/wait4x/wait4x
- Scoop - extras/wait4x: normalized package name match | Scoop official bucket manifest trees: bucket/wait4x.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/wait4x.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wait4x.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
