macOS
brew install expectlocal Homebrew formula metadata
sudo port install expectMacPorts ports tree · devel/expect/Portfile · source: api.github.com
brew
Program that can automate interactive applications. Version 5.45.4 via Homebrew; verified 2026-06-19.
install
brew install expectlocal Homebrew formula metadata
sudo port install expectMacPorts ports tree · devel/expect/Portfile · source: api.github.com
sudo apk add expectAlpine Linux edge package indexes · expect · source: dl-cdn.alpinelinux.org
sudo apt install expectDebian stable package indexes · expect · source: deb.debian.org
sudo dnf install expectFedora Rawhide package metadata · expect · source: dl.fedoraproject.org
nix profile install nixpkgs#expectnixpkgs package indexes · expect · source: raw.githubusercontent.com
sudo pacman -S expectArch Linux sync databases · expect · source: geo.mirror.pkgbuild.com
sudo zypper install expectopenSUSE Tumbleweed package metadata · expect · source: download.opensuse.org
winget install --id FlorinZamfir.Weather -eWindows Package Manager source index · FlorinZamfir.Weather · source: cdn.winget.microsoft.com
overview
Program that can automate interactive applications
history
Expect is Don Libes' Tcl-based tool for automating interactive programs. Its package-manager significance comes from a stubbornly practical Unix problem: many tools were designed for humans at terminals, and Expect made those conversations scriptable.
The Expect homepage says Expect was conceived in September 1987, with the bulk of version 2 designed and written between January and April 1990. It was later rewritten substantially for Tcl 6.0 in October 1991, then advanced through Expect 4 and Expect 5 as Tcl and Tk evolved.
Expect's history is tightly tied to Tcl and Tk. Expect uses Tcl as its control language for procedures, loops, file I/O, arithmetic, and scripting, and Tk support arrived with the Expect 4 line. The project also includes libexpect for C or C++ programs, although the README argues that the standalone expect scripting tool is usually the easier path.
Expect spread through sysadmin and testing culture before today's automation stacks existed. The official site lists papers from USENIX 1990, LISA IV, Computing Systems, USENIX 1992, and other venues covering system administration, regression testing, conformance testing, and automating interactive network applications.
The README presents practical adoption signals from the era: users could get readings and transparencies, build Expect with or without Tcl and Tk, embed it in C programs, and buy commercial support or classes from companies such as ActiveState, Cygnus Support, and Computerized Processes Unlimited.
Expect scripts spawn a program, send input, wait for expected output, and optionally hand control back to the user. The official introduction names telnet, ftp, passwd, fsck, rlogin, and tip as examples, and also calls out testing interactive applications.
The package includes helper programs such as autoexpect and unbuffer. In package-manager terms, Expect is often installed not because it is fashionable, but because some installer, test, login workflow, serial-console workflow, or legacy admin script needs to drive an interactive prompt reliably.
Expect is one of the canonical examples of a small Unix automation language that survived because the problem survived. SSH, CI, APIs, and configuration management reduced many uses, but they did not eliminate password prompts, REPLs, terminal programs, embedded consoles, or old scripts.
For packagers, Expect also brings the Tcl dependency relationship into focus: the executable is useful by itself, but its language runtime, optional Tk integration, examples, man pages, and legacy scripts shape how downstream packages split and test it.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
autoexpect | cli | global executable | |
autopasswd | cli | global executable | |
cryptdir | cli | global executable | |
decryptdir | cli | global executable | |
dislocate | cli | global executable | |
expect | cli | global executable | |
ftp-rfc | cli | global executable | |
kibitz | cli | global executable | |
lpunlock | cli | global executable | |
mkpasswd | cli | global executable | |
multixterm | cli | global executable | |
passmass | cli | global executable | |
rftp | cli | global executable | |
rlogin-cwd | cli | global executable | |
timed-read | cli | global executable | |
timed-run | cli | global executable | |
tknewsbiff | cli | global executable | |
tkpasswd | cli | global executable | |
unbuffer | cli | global executable | |
weather | cli | global executable | |
xkibitz | cli | global executable | |
xpstat | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://core.tcl-lang.org/expect/index
install metadata
| Package key | brew:expect |
|---|---|
| Version | 5.45.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/expect |
| Homepage | https://core.tcl-lang.org/expect/index |
| Repository | https://core.tcl-lang.org/expect |
| Upstream docs | https://core.tcl-lang.org/expect/dir |
| License | LicenseRef-Homebrew-public-domain |
| Source archive | https://downloads.sourceforge.net/project/expect/Expect/5.45.4/expect5.45.4.tar.gz |
| Last updated | 2026-06-19T12:30:06-07:00 |
| Pulse | updated |
| Dependencies | tcl-tk@8 |
| Build dependencies | autoconf, automake, libtool |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | expect |
| Version Scheme | 0 |
| Revision | 3 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
expect 5.45.4-4
Automates interactive applications
sudo apt install expecttcl-expect 5.45.4-4
Automates interactive applications (Tcl package)
sudo apt install tcl-expecttcl-expect-dev 5.45.4-4
Automates interactive applications (development)
sudo apt install tcl-expect-devexpect
nix profile install nixpkgs#expectexpect 5.45.4-3
Automates interactive applications
sudo apt install expecttcl-expect 5.45.4-3
Automates interactive applications (Tcl package)
sudo apt install tcl-expecttcl-expect-dev 5.45.4-3
Automates interactive applications (development)
sudo apt install tcl-expect-devexpect 5.45.4-r5
A tool for automating interactive applications
https://core.tcl-lang.org/expect/index
sudo apk add expectexpect-dev 5.45.4-r5
A tool for automating interactive applications (development files)
https://core.tcl-lang.org/expect/index
sudo apk add expect-devexpect-doc 5.45.4-r5
A tool for automating interactive applications (documentation)
https://core.tcl-lang.org/expect/index
sudo apk add expect-docexpect 5.45.4-31.fc45
A program-script interaction and testing utility
https://core.tcl.tk/expect/index
sudo dnf install expectexpect-devel 5.45.4-31.fc45
A program-script interaction and testing utility
https://core.tcl.tk/expect/index
sudo dnf install expect-develexpectk 5.45.4-31.fc45
A program-script interaction and testing utility
https://core.tcl.tk/expect/index
sudo dnf install expectkexpect 5.45.4-5
A tool for automating interactive applications
https://www.nist.gov/el/msid/expect.cfm
sudo pacman -S expectexpect 5.45.4-8.4
A Tool for Automating Interactive Programs
https://core.tcl-lang.org/expect/
sudo zypper install expectexpect-devel 5.45.4-8.4
Header Files and C API Documentation for expect
https://core.tcl-lang.org/expect/
sudo zypper install expect-develsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.