How To Install expect.x86_64 on Amazon Linux 2

In this tutorial we learn how to install expect.x86_64 in Amazon Linux 2. expect.x86_64 is A program-script interaction and testing utility

Introduction

In this tutorial we learn how to install expect.x86_64 on Amazon Linux 2.

What is expect.x86_64

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 to install expect.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install expect.x86_64.

Install expect.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install expect.x86_64

How To Uninstall expect.x86_64 on Amazon Linux 2

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

sudo yum remove expect.x86_64

expect.x86_64 Package Contents on Amazon Linux 2

/usr/bin/autoexpect
/usr/bin/dislocate
/usr/bin/expect
/usr/bin/ftp-rfc
/usr/bin/kibitz
/usr/bin/lpunlock
/usr/bin/mkpasswd
/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/lib64/libexpect.so
/usr/lib64/libexpect5.45.so
/usr/lib64/tcl8.5/expect5.45
/usr/lib64/tcl8.5/expect5.45/pkgIndex.tcl
/usr/share/doc/expect-5.45
/usr/share/doc/expect-5.45/FAQ
/usr/share/doc/expect-5.45/HISTORY
/usr/share/doc/expect-5.45/NEWS
/usr/share/doc/expect-5.45/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.1.gz
/usr/share/man/man1/passmass.1.gz
/usr/share/man/man1/tknewsbiff.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.x86_64 on Amazon Linux 2 using yum.