How To Install pexpect.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install pexpect.noarch
on Amazon Linux 2.
What is pexpect.noarch
Pexpect is a pure Python module for spawning child applications; controlling them; and responding to expected patterns in their output. Pexpect works like Don Libes’ Expect. Pexpect allows your script to spawn a child application and control it as if a human were typing commands. Pexpect can be used for automating interactive applications such as ssh, ftp, passwd, telnet, etc. It can be used to automate setup scripts for duplicating software package installations on different servers. And it can be used for automated software testing. Pexpect is in the spirit of Don Libes’ Expect, but Pexpect is pure Python. Unlike other Expect-like modules for Python, Pexpect does not require TCL or Expect nor does it require C extensions to be compiled. It should work on any platform that supports the standard Python pty module.
We can use yum
to install pexpect.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install pexpect.noarch.
Install pexpect.noarch 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 pexpect.noarch
using yum
by running the following command:
sudo yum -y install pexpect.noarch
How To Uninstall pexpect.noarch on Amazon Linux 2
To uninstall only the pexpect.noarch
package we can use the following command:
sudo yum remove pexpect.noarch
pexpect.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/ANSI.py
/usr/lib/python2.7/site-packages/ANSI.pyc
/usr/lib/python2.7/site-packages/ANSI.pyo
/usr/lib/python2.7/site-packages/FSM.py
/usr/lib/python2.7/site-packages/FSM.pyc
/usr/lib/python2.7/site-packages/FSM.pyo
/usr/lib/python2.7/site-packages/fdpexpect.py
/usr/lib/python2.7/site-packages/fdpexpect.pyc
/usr/lib/python2.7/site-packages/fdpexpect.pyo
/usr/lib/python2.7/site-packages/pexpect-2.3-py2.7.egg-info
/usr/lib/python2.7/site-packages/pexpect.py
/usr/lib/python2.7/site-packages/pexpect.pyc
/usr/lib/python2.7/site-packages/pexpect.pyo
/usr/lib/python2.7/site-packages/pxssh.py
/usr/lib/python2.7/site-packages/pxssh.pyc
/usr/lib/python2.7/site-packages/pxssh.pyo
/usr/lib/python2.7/site-packages/screen.py
/usr/lib/python2.7/site-packages/screen.pyc
/usr/lib/python2.7/site-packages/screen.pyo
/usr/share/doc/pexpect-2.3
/usr/share/doc/pexpect-2.3/LICENSE
/usr/share/doc/pexpect-2.3/README
/usr/share/doc/pexpect-2.3/doc
/usr/share/doc/pexpect-2.3/doc/ANSI.html
/usr/share/doc/pexpect-2.3/doc/FSM.html
/usr/share/doc/pexpect-2.3/doc/clean.css
/usr/share/doc/pexpect-2.3/doc/email.png
/usr/share/doc/pexpect-2.3/doc/examples.html
/usr/share/doc/pexpect-2.3/doc/fdpexpect.html
/usr/share/doc/pexpect-2.3/doc/index.html
/usr/share/doc/pexpect-2.3/doc/index.template.html
/usr/share/doc/pexpect-2.3/doc/pexpect.html
/usr/share/doc/pexpect-2.3/doc/pxssh.html
/usr/share/doc/pexpect-2.3/doc/screen.html
/usr/share/doc/pexpect-2.3/examples
/usr/share/doc/pexpect-2.3/examples/README
/usr/share/doc/pexpect-2.3/examples/astat.py
/usr/share/doc/pexpect-2.3/examples/bd_client.py
/usr/share/doc/pexpect-2.3/examples/bd_serv.py
/usr/share/doc/pexpect-2.3/examples/cgishell.cgi
/usr/share/doc/pexpect-2.3/examples/chess.py
/usr/share/doc/pexpect-2.3/examples/chess2.py
/usr/share/doc/pexpect-2.3/examples/chess3.py
/usr/share/doc/pexpect-2.3/examples/df.py
/usr/share/doc/pexpect-2.3/examples/fix_cvs_files.py
/usr/share/doc/pexpect-2.3/examples/ftp.py
/usr/share/doc/pexpect-2.3/examples/hive.py
/usr/share/doc/pexpect-2.3/examples/log_69.80.212.10
/usr/share/doc/pexpect-2.3/examples/log_69.80.212.11
/usr/share/doc/pexpect-2.3/examples/monitor.py
/usr/share/doc/pexpect-2.3/examples/passmass.py
/usr/share/doc/pexpect-2.3/examples/python.py
/usr/share/doc/pexpect-2.3/examples/rippy.py
/usr/share/doc/pexpect-2.3/examples/script.py
/usr/share/doc/pexpect-2.3/examples/ssh_session.py
/usr/share/doc/pexpect-2.3/examples/ssh_tunnel.py
/usr/share/doc/pexpect-2.3/examples/sshls.py
/usr/share/doc/pexpect-2.3/examples/table_test.html
/usr/share/doc/pexpect-2.3/examples/topip.py
/usr/share/doc/pexpect-2.3/examples/uptime.py
References
Summary
In this tutorial we learn how to install pexpect.noarch
on Amazon Linux 2 using yum.