# 使用 Homebrew, apk 安装 sexpect

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

## 安装

```sh
sudo av install brew:sexpect
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sexpect
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add sexpect
```

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

## 软件包事实

- **软件包键:** brew:sexpect
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/sexpect>
- **版本:** 2.4.0
- **来源摘要:** Expect for shells
- **主页:** <https://github.com/clarkwang/sexpect>
- **仓库:** <https://github.com/clarkwang/sexpect>
- **许可证:** GPL-3.0-only
- **源码归档:** <https://github.com/clarkwang/sexpect/archive/refs/tags/v2.4.0.tar.gz>
- **最后更新:** 2026-07-15T21:00:12Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- sexpect (cli)
- sexpect (别名)

## 构建依赖

- cmake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.4.0
- 管理器更新时间: 2026-07-15
- 本地数据: OK
- 上游仓库: https://github.com/clarkwang/sexpect
- 检测到的最新版本: v2.4.0 (当前)

## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

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

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

- apk - sexpect - 2.3.15-r0: normalized package name match | Alpine Linux edge package indexes: sexpect from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | expect designed for shell scripts | https://github.com/clarkwang/sexpect
- apk - sexpect-doc - 2.3.15-r0: normalized package name match | Alpine Linux edge package indexes: sexpect-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | expect designed for shell scripts (documentation) | https://github.com/clarkwang/sexpect


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [empty](https://pkg.so/zh-hans/brew/empty/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, expect, pty.
- [retry](https://pkg.so/zh-hans/brew/retry/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, shell.
- [shell2http](https://pkg.so/zh-hans/brew/shell2http/) - Shares pkgdb curated category or tags: automation, cli, developer-tools, shell.
- [expect](https://pkg.so/zh-hans/brew/expect/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [entr](https://pkg.so/zh-hans/brew/entr/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [appium](https://pkg.so/zh-hans/brew/appium/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [apify-cli](https://pkg.so/zh-hans/brew/apify-cli/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [robot-framework](https://pkg.so/zh-hans/brew/robot-framework/) - Shares pkgdb curated category or tags: automation, cli, developer-tools.
- [ppss](https://pkg.so/zh-hans/brew/ppss/) - Local package facts share a topical domain. Shared terms: automation, cli, developer, developer-tools, shell.

## Combined YAML source

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


## 来源

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