How To Install expect on Fedora 36

In this tutorial we learn how to install expect in Fedora 36. expect is A program-script interaction and testing utility

Introduction

In this tutorial we learn how to install expect on Fedora 36.

What is expect

Expect is a tcl application for automating and testing interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. Expect makes it easy for a script to control another program and interact with it. This package contains expect and some scripts that use it.

We can use yum or dnf to install expect on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install expect.

Install expect on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install expect using dnf by running the following command:

sudo dnf -y install expect

Install expect on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install expect using yum by running the following command:

sudo yum -y install expect

How To Uninstall expect on Fedora 36

To uninstall only the expect package we can use the following command:

sudo dnf remove expect

expect Package Contents on Fedora 36

/usr/bin/autoexpect
/usr/bin/dislocate
/usr/bin/expect
/usr/bin/ftp-rfc
/usr/bin/kibitz
/usr/bin/lpunlock
/usr/bin/mkpasswd-expect
/usr/bin/passmass
/usr/bin/rftp
/usr/bin/rlogin-cwd
/usr/bin/timed-read
/usr/bin/timed-run
/usr/bin/unbuffer
/usr/bin/weather
/usr/bin/xkibitz
/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/2728f4bad9180dcf93cb2b9c72112c82c88d65
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/9b1317144f8a25118bf40b587ce69b31428556
/usr/lib64/libexpect.so
/usr/lib64/libexpect5.45.4.so
/usr/lib64/tcl8.6/expect5.45.4
/usr/lib64/tcl8.6/expect5.45.4/pkgIndex.tcl
/usr/share/doc/expect
/usr/share/doc/expect/FAQ
/usr/share/doc/expect/HISTORY
/usr/share/doc/expect/NEWS
/usr/share/doc/expect/README
/usr/share/man/man1/autoexpect.1.gz
/usr/share/man/man1/dislocate.1.gz
/usr/share/man/man1/expect.1.gz
/usr/share/man/man1/kibitz.1.gz
/usr/share/man/man1/mkpasswd-expect.1.gz
/usr/share/man/man1/passmass.1.gz
/usr/share/man/man1/unbuffer.1.gz
/usr/share/man/man1/xkibitz.1.gz

References

Summary

In this tutorial we learn how to install expect on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).