How To Install python3-aexpect on Rocky Linux 8

In this tutorial we learn how to install python3-aexpect on Rocky Linux 8. python3-aexpect is A python library to control interactive applications

Introduction

In this tutorial we learn how to install python3-aexpect on Rocky Linux 8.

What is python3-aexpect

Aexpect is a python library used to control interactive applications, very similar to pexpect. You can use it to control applications such as ssh, scp sftp, telnet, among others.

We can use yum or dnf to install python3-aexpect on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-aexpect.

Install python3-aexpect 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 python3-aexpect using dnf by running the following command:

sudo dnf -y install python3-aexpect

Install python3-aexpect 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 python3-aexpect using yum by running the following command:

sudo yum -y install python3-aexpect

How To Uninstall python3-aexpect on Rocky Linux 8

To uninstall only the python3-aexpect package we can use the following command:

sudo dnf remove python3-aexpect

python3-aexpect Package Contents on Rocky Linux 8

/usr/bin/aexpect_helper
/usr/bin/aexpect_helper-3
/usr/bin/aexpect_helper-3.6
/usr/lib/python3.6/site-packages/aexpect
/usr/lib/python3.6/site-packages/aexpect-1.6.2-py3.6.egg-info
/usr/lib/python3.6/site-packages/aexpect-1.6.2-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/aexpect-1.6.2-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/aexpect-1.6.2-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/aexpect-1.6.2-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/aexpect/__init__.py
/usr/lib/python3.6/site-packages/aexpect/__pycache__
/usr/lib/python3.6/site-packages/aexpect/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/client.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/client.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/exceptions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/exceptions.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/remote.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/remote.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/remote_door.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/remote_door.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/rss_client.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/rss_client.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/shared.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/__pycache__/shared.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/client.py
/usr/lib/python3.6/site-packages/aexpect/exceptions.py
/usr/lib/python3.6/site-packages/aexpect/remote.py
/usr/lib/python3.6/site-packages/aexpect/remote_door.py
/usr/lib/python3.6/site-packages/aexpect/rss_client.py
/usr/lib/python3.6/site-packages/aexpect/shared.py
/usr/lib/python3.6/site-packages/aexpect/utils
/usr/lib/python3.6/site-packages/aexpect/utils/__init__.py
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/astring.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/astring.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/data_factory.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/data_factory.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/genio.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/genio.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/path.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/path.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/process.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/process.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/wait.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/__pycache__/wait.cpython-36.pyc
/usr/lib/python3.6/site-packages/aexpect/utils/astring.py
/usr/lib/python3.6/site-packages/aexpect/utils/data_factory.py
/usr/lib/python3.6/site-packages/aexpect/utils/genio.py
/usr/lib/python3.6/site-packages/aexpect/utils/path.py
/usr/lib/python3.6/site-packages/aexpect/utils/process.py
/usr/lib/python3.6/site-packages/aexpect/utils/wait.py
/usr/share/doc/python3-aexpect
/usr/share/doc/python3-aexpect/README.rst
/usr/share/licenses/python3-aexpect
/usr/share/licenses/python3-aexpect/LICENSE

References

Summary

In this tutorial we learn how to install python3-aexpect on Rocky Linux 8 using yum and dnf.