# expect を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, winget でインストール

expect のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:expect
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install expect
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install expect
```

  証拠: MacPorts ports tree: devel/expect/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add expect
```

  証拠: Alpine Linux edge package indexes: expect from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install expect
```

  証拠: Debian stable package indexes: expect from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install expect
```

  証拠: Fedora Rawhide package metadata: expect from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#expect
```

  証拠: nixpkgs package indexes: expect from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S expect
```

  証拠: Arch Linux sync databases: expect from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install expect
```

  証拠: openSUSE Tumbleweed package metadata: expect from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id FlorinZamfir.Weather -e
```

  証拠: Windows Package Manager source index: FlorinZamfir.Weather from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:expect
- **パッケージマネージャ:** Homebrew
- **バージョン:** 5.45.4
- **ソース概要:** Program that can automate interactive applications
- **ホームページ:** <https://core.tcl-lang.org/expect/index>
- **最終更新:** 2026-08-02T15:56:46+09:00
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- 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 (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 5.45.4
## プロジェクトの歴史と使われ方

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.

### ソース

- <https://core.tcl-lang.org/expect>
- <https://core.tcl-lang.org/expect/dir>


## セキュリティノート

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

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## 他のパッケージマネージャ記録

- Debian apt - expect - 5.45.4-4: normalized package name match | Debian stable package indexes: expect from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Automates interactive applications | https://core.tcl.tk/expect/
- Debian apt - tcl-expect - 5.45.4-4: normalized package name match | Debian stable package indexes: tcl-expect from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Automates interactive applications (Tcl package) | https://core.tcl.tk/expect/
- Debian apt - tcl-expect-dev - 5.45.4-4: normalized package name match | Debian stable package indexes: tcl-expect-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Automates interactive applications (development) | https://core.tcl.tk/expect/
- Nix - expect: normalized package name match | nixpkgs package indexes: expect from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - expect - 5.45.4-3: normalized package name match | Ubuntu 24.04 LTS package indexes: expect from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Automates interactive applications | https://core.tcl.tk/expect/
- Ubuntu apt - tcl-expect - 5.45.4-3: normalized package name match | Ubuntu 24.04 LTS package indexes: tcl-expect from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Automates interactive applications (Tcl package) | https://core.tcl.tk/expect/
- Ubuntu apt - tcl-expect-dev - 5.45.4-3: normalized package name match | Ubuntu 24.04 LTS package indexes: tcl-expect-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Automates interactive applications (development) | https://core.tcl.tk/expect/
- apk - expect - 5.45.4-r5: normalized package name match | Alpine Linux edge package indexes: expect from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A tool for automating interactive applications | https://core.tcl-lang.org/expect/index
- apk - expect-dev - 5.45.4-r5: normalized package name match | Alpine Linux edge package indexes: expect-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A tool for automating interactive applications (development files) | https://core.tcl-lang.org/expect/index
- apk - expect-doc - 5.45.4-r5: normalized package name match | Alpine Linux edge package indexes: expect-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A tool for automating interactive applications (documentation) | https://core.tcl-lang.org/expect/index
- dnf - expect - 5.45.4-33.fc45: normalized package name match | Fedora Rawhide package metadata: expect from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A program-script interaction and testing utility | https://core.tcl.tk/expect/index
- dnf - expect-devel - 5.45.4-33.fc45: normalized package name match | Fedora Rawhide package metadata: expect-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A program-script interaction and testing utility | https://core.tcl.tk/expect/index
- dnf - expectk - 5.45.4-33.fc45: normalized package name match | Fedora Rawhide package metadata: expectk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A program-script interaction and testing utility | https://core.tcl.tk/expect/index
- pacman - expect - 5.45.4-5: normalized package name match | Arch Linux sync databases: expect from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool for automating interactive applications | https://www.nist.gov/el/msid/expect.cfm
- zypper - expect - 5.45.4-8.6: normalized package name match | openSUSE Tumbleweed package metadata: expect from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A Tool for Automating Interactive Programs | https://core.tcl-lang.org/expect/
- zypper - expect-devel - 5.45.4-8.6: normalized package name match | openSUSE Tumbleweed package metadata: expect-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Header Files and C API Documentation for expect | https://core.tcl-lang.org/expect/


## Combined YAML source

View the package source record on GitHub. [combined/expect.yml](https://github.com/mxcl/pkgdb/blob/main/combined/expect.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
