macOS
brew install expectlocal Homebrew formula metadata
sudo port install expectMacPorts ports tree · devel/expect/Portfile · 来源: api.github.com
安装
brew install expectlocal Homebrew formula metadata
sudo port install expectMacPorts ports tree · devel/expect/Portfile · 来源: api.github.com
sudo apk add expectAlpine Linux edge package indexes · expect · 来源: dl-cdn.alpinelinux.org
sudo apt install expectDebian stable package indexes · expect · 来源: deb.debian.org
sudo dnf install expectFedora Rawhide package metadata · expect · 来源: dl.fedoraproject.org
nix profile install nixpkgs#expectnixpkgs package indexes · expect · 来源: raw.githubusercontent.com
sudo pacman -S expectArch Linux sync databases · expect · 来源: geo.mirror.pkgbuild.com
sudo zypper install expectopenSUSE Tumbleweed package metadata · expect · 来源: download.opensuse.org
winget install --id FlorinZamfir.Weather -eWindows Package Manager source index · FlorinZamfir.Weather · 来源: cdn.winget.microsoft.com
概览
Program that can automate interactive applications
历史
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.
安全态势
broad file, network, media, or database tool signal.
blue 风险 · 中 置信度 · tool
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
autoexpect | cli | 全局可执行文件 | |
autopasswd | cli | 全局可执行文件 | |
cryptdir | cli | 全局可执行文件 | |
decryptdir | cli | 全局可执行文件 | |
dislocate | cli | 全局可执行文件 | |
expect | cli | 全局可执行文件 | |
ftp-rfc | cli | 全局可执行文件 | |
kibitz | cli | 全局可执行文件 | |
lpunlock | cli | 全局可执行文件 | |
mkpasswd | cli | 全局可执行文件 | |
multixterm | cli | 全局可执行文件 | |
passmass | cli | 全局可执行文件 | |
rftp | cli | 全局可执行文件 | |
rlogin-cwd | cli | 全局可执行文件 | |
timed-read | cli | 全局可执行文件 | |
timed-run | cli | 全局可执行文件 | |
tknewsbiff | cli | 全局可执行文件 | |
tkpasswd | cli | 全局可执行文件 | |
unbuffer | cli | 全局可执行文件 | |
weather | cli | 全局可执行文件 | |
xkibitz | cli | 全局可执行文件 | |
xpstat | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://core.tcl-lang.org/expect/index
安装元数据
| 软件包键 | brew:expect |
|---|---|
| 版本 | 5.45.4 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/expect |
| 主页 | https://core.tcl-lang.org/expect/index |
| 仓库 | https://core.tcl-lang.org/expect |
| 上游文档 | https://core.tcl-lang.org/expect/dir |
| 许可证 | LicenseRef-Homebrew-public-domain |
| 源码归档 | https://downloads.sourceforge.net/project/expect/Expect/5.45.4/expect5.45.4.tar.gz |
| 最后更新 | 2026-06-19T12:30:06-07:00 |
| Pulse | updated |
| 依赖 | tcl-tk@8 |
| 构建依赖 | autoconf, automake, libtool |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-devel来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.