How To Install expect on Rocky Linux 8
Introduction
In this tutorial we learn how to install expect on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install expect.
Install expect on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8
To uninstall only the expect package we can use the following command:
sudo dnf remove expect
expect Package Contents on Rocky Linux 8
/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/lib/.build-id
/usr/lib/.build-id/70
/usr/lib/.build-id/70/f937545a7a0369dcc25337449e6826ae240586
/usr/lib/.build-id/96
/usr/lib/.build-id/96/3274e1475142b94e5c9be4362f2565698ac3d6
/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.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 Rocky Linux 8 using yum and dnf.