Automic VaultAutomic Vault

brew

Install expect with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, winget

Program that can automate interactive applications. Version 5.45.4 via Homebrew; verified 2026-06-19.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install expect

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install expect

MacPorts ports tree · devel/expect/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add expect

Alpine Linux edge package indexes · expect · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install expect

Debian stable package indexes · expect · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install expect

Fedora Rawhide package metadata · expect · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#expect

nixpkgs package indexes · expect · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S expect

Arch Linux sync databases · expect · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install expect

openSUSE Tumbleweed package metadata · expect · source: download.opensuse.org

Windows

Windows Package Managerverified · 92%
winget install --id FlorinZamfir.Weather -e

Windows Package Manager source index · FlorinZamfir.Weather · source: cdn.winget.microsoft.com

overview

Package summary

Program that can automate interactive applications

Commands and aliases

  • autoexpect
  • autopasswd
  • cryptdir
  • decryptdir
  • dislocate
  • expect
  • ftp-rfc
  • kibitz
  • lpunlock
  • mkpasswd
  • multixterm
  • passmass
  • rftp
  • rlogin-cwd
  • timed-read
  • timed-run
  • tknewsbiff
  • tkpasswd
  • unbuffer
  • weather
  • xkibitz
  • xpstat

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 1987: Expect was conceived in September.
  • 1990: The bulk of version 2 was designed and written between January and April.
  • 1991: About half of Expect was rewritten for Tcl 6.0.
  • 1993: Expect 4 alpha introduced Tk support; production Expect 4 followed in August.
  • 1994: Production Expect 5 was released in March.
  • 1995: The Exploring Expect book became available in January.
  • 1999: Substantial rewriting added Tcl 8.2 support, an exp-channel driver, object support, and Unicode-related work.

Related projects

  • Tcl is Expect's control language and runtime foundation.
  • Tk is the GUI toolkit used by Expect variants such as expectk.
  • DejaGnu is related through the regression and conformance testing use case mentioned in Expect's readings.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:ftp,decrypt

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
autoexpectcliglobal executable
autopasswdcliglobal executable
cryptdircliglobal executable
decryptdircliglobal executable
dislocatecliglobal executable
expectcliglobal executable
ftp-rfccliglobal executable
kibitzcliglobal executable
lpunlockcliglobal executable
mkpasswdcliglobal executable
multixtermcliglobal executable
passmasscliglobal executable
rftpcliglobal executable
rlogin-cwdcliglobal executable
timed-readcliglobal executable
timed-runcliglobal executable
tknewsbiffcliglobal executable
tkpasswdcliglobal executable
unbuffercliglobal executable
weathercliglobal executable
xkibitzcliglobal executable
xpstatcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version5.45.4
manager updated2026-06-19
local dataok
upstreamnot checked
latest detectednot detected

https://core.tcl-lang.org/expect/index

install metadata

Package metadata

Package keybrew:expect
Version5.45.4
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/expect
Homepagehttps://core.tcl-lang.org/expect/index
Repositoryhttps://core.tcl-lang.org/expect
Upstream docshttps://core.tcl-lang.org/expect/dir
LicenseLicenseRef-Homebrew-public-domain
Source archivehttps://downloads.sourceforge.net/project/expect/Expect/5.45.4/expect5.45.4.tar.gz
Last updated2026-06-19T12:30:06-07:00
Pulseupdated
Dependenciestcl-tk@8
Build dependenciesautoconf, automake, libtool
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameexpect
Version Scheme0
Revision3
Conflicts With
  • bash-snippets
  • ircd-hybrid
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

expect 5.45.4-4

Automates interactive applications

https://core.tcl.tk/expect/

sudo apt install expect
  • Section: interpreters
  • Architecture: amd64
  • 4 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Expect
Debian stable package indexes · deb.debian.org · Debian stable package indexes: expect from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

tcl-expect 5.45.4-4

Automates interactive applications (Tcl package)

https://core.tcl.tk/expect/

sudo apt install tcl-expect
  • Section: interpreters
  • Architecture: amd64
  • Source Package: expect
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Expect
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tcl-expect from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

tcl-expect-dev 5.45.4-4

Automates interactive applications (development)

https://core.tcl.tk/expect/

sudo apt install tcl-expect-dev
  • Section: devel
  • Architecture: amd64
  • Source Package: expect
  • 2 dependencies
  • normalized package name match
  • Matched by: Expect
Debian stable package indexes · deb.debian.org · Debian stable package indexes: tcl-expect-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

expect

nix profile install nixpkgs#expect
  • normalized package name match
  • Matched by: Expect
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: expect from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

expect 5.45.4-3

Automates interactive applications

https://core.tcl.tk/expect/

sudo apt install expect
  • Section: universe/interpreters
  • Architecture: amd64
  • 4 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Expect
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: expect from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

tcl-expect 5.45.4-3

Automates interactive applications (Tcl package)

https://core.tcl.tk/expect/

sudo apt install tcl-expect
  • Section: universe/interpreters
  • Architecture: amd64
  • Source Package: expect
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Expect
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tcl-expect from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

tcl-expect-dev 5.45.4-3

Automates interactive applications (development)

https://core.tcl.tk/expect/

sudo apt install tcl-expect-dev
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: expect
  • 2 dependencies
  • normalized package name match
  • Matched by: Expect
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: tcl-expect-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

expect 5.45.4-r5

A tool for automating interactive applications

https://core.tcl-lang.org/expect/index

sudo apk add expect
  • License: NIST-PD
  • Architecture: x86_64
  • Source Package: expect
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Expect
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: expect from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

expect-dev 5.45.4-r5

A tool for automating interactive applications (development files)

https://core.tcl-lang.org/expect/index

sudo apk add expect-dev
  • License: NIST-PD
  • Architecture: x86_64
  • Source Package: expect
  • normalized package name match
  • Matched by: Expect
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: expect-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

expect-doc 5.45.4-r5

A tool for automating interactive applications (documentation)

https://core.tcl-lang.org/expect/index

sudo apk add expect-doc
  • License: NIST-PD
  • Architecture: x86_64
  • Source Package: expect
  • normalized package name match
  • Matched by: Expect
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: expect-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

expect 5.45.4-31.fc45

A program-script interaction and testing utility

https://core.tcl.tk/expect/index

sudo dnf install expect
  • License: LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: expect
  • 5 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Expect
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: expect from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

expect-devel 5.45.4-31.fc45

A program-script interaction and testing utility

https://core.tcl.tk/expect/index

sudo dnf install expect-devel
  • License: LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: i686
  • Source Package: expect
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Expect
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: expect-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

expectk 5.45.4-31.fc45

A program-script interaction and testing utility

https://core.tcl.tk/expect/index

sudo dnf install expectk
  • License: LicenseRef-Fedora-Public-Domain
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: expect
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Expect
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: expectk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

expect 5.45.4-5

A tool for automating interactive applications

https://www.nist.gov/el/msid/expect.cfm

sudo pacman -S expect
  • License: custom
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Expect
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: expect from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

expect 5.45.4-8.4

A Tool for Automating Interactive Programs

https://core.tcl-lang.org/expect/

sudo zypper install expect
  • License: SUSE-Public-Domain
  • Category: Development/Languages/Tcl
  • Architecture: x86_64
  • Source Package: expect
  • 4 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Expect
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: expect from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

expect-devel 5.45.4-8.4

Header Files and C API Documentation for expect

https://core.tcl-lang.org/expect/

sudo zypper install expect-devel
  • License: SUSE-Public-Domain
  • Category: Development/Libraries/Tcl
  • Architecture: x86_64
  • Source Package: expect
  • 1 provides
  • normalized package name match
  • Matched by: Expect
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: expect-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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