# Install sexpect with Homebrew, apk

Expect for shells. Version 2.4.0 via Homebrew; verified 2026-07-15. Also installable with apk: sudo apk add sexpect.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sexpect
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add sexpect
```

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

## Package facts

- **Package key:** brew:sexpect
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/sexpect>
- **Version:** 2.4.0
- **Source summary:** Expect for shells
- **Homepage:** <https://github.com/clarkwang/sexpect>
- **Repository:** <https://github.com/clarkwang/sexpect>
- **License:** GPL-3.0-only
- **Source archive:** <https://github.com/clarkwang/sexpect/archive/refs/tags/v2.4.0.tar.gz>
- **Last updated:** 2026-07-15T21:00:12Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- sexpect (cli)
- sexpect (alias)

## Build dependencies

- cmake

## 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-08-04
- Package-manager version: 2.4.0
- Package-manager updated: 2026-07-15
- Local data: ok
- Upstream repository: https://github.com/clarkwang/sexpect
- Upstream latest detected: v2.4.0 (current)

## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal

## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

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


## Sources

- 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
