Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, winget 安装 expect

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install expect

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install expect

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add expect

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

Debian apt已验证 · 92%
sudo apt install expect

Debian stable package indexes · expect · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install expect

Fedora Rawhide package metadata · expect · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#expect

nixpkgs package indexes · expect · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S expect

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

openSUSE zypper已验证 · 92%
sudo zypper install expect

openSUSE Tumbleweed package metadata · expect · 来源: download.opensuse.org

Windows

Windows Package Manager已验证 · 92%
winget install --id FlorinZamfir.Weather -e

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

概览

软件包摘要

Program that can automate interactive applications

命令和别名

  • 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

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:ftp,decrypt

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
autoexpectcli全局可执行文件
autopasswdcli全局可执行文件
cryptdircli全局可执行文件
decryptdircli全局可执行文件
dislocatecli全局可执行文件
expectcli全局可执行文件
ftp-rfccli全局可执行文件
kibitzcli全局可执行文件
lpunlockcli全局可执行文件
mkpasswdcli全局可执行文件
multixtermcli全局可执行文件
passmasscli全局可执行文件
rftpcli全局可执行文件
rlogin-cwdcli全局可执行文件
timed-readcli全局可执行文件
timed-runcli全局可执行文件
tknewsbiffcli全局可执行文件
tkpasswdcli全局可执行文件
unbuffercli全局可执行文件
weathercli全局可执行文件
xkibitzcli全局可执行文件
xpstatcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本5.45.4
管理器更新时间2026-06-19
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖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 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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

expect 5.45.4-4

Automates interactive applications

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

sudo apt install expect
  • Section: interpreters
  • Architecture: amd64
  • 4 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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