How To Install python3-cram on Rocky Linux 8

In this tutorial we learn how to install python3-cram on Rocky Linux 8. python3-cram is Simple testing framework for command line applications

Introduction

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

What is python3-cram

Cram tests look like snippets of interactive shell sessions. Cram runs each command and compares the command output in the test with the command’s actual output.

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

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

sudo dnf -y install python3-cram

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

sudo yum -y install python3-cram

How To Uninstall python3-cram on Rocky Linux 8

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

sudo dnf remove python3-cram

python3-cram Package Contents on Rocky Linux 8

/usr/bin/cram
/usr/lib/python3.6/site-packages/cram
/usr/lib/python3.6/site-packages/cram-0.7-py3.6.egg-info
/usr/lib/python3.6/site-packages/cram/__init__.py
/usr/lib/python3.6/site-packages/cram/__main__.py
/usr/lib/python3.6/site-packages/cram/__pycache__
/usr/lib/python3.6/site-packages/cram/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/__main__.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_cli.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_cli.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_diff.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_diff.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_encoding.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_encoding.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_main.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_main.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_process.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_process.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_run.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_run.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_test.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_test.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_xunit.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/cram/__pycache__/_xunit.cpython-36.pyc
/usr/lib/python3.6/site-packages/cram/_cli.py
/usr/lib/python3.6/site-packages/cram/_diff.py
/usr/lib/python3.6/site-packages/cram/_encoding.py
/usr/lib/python3.6/site-packages/cram/_main.py
/usr/lib/python3.6/site-packages/cram/_process.py
/usr/lib/python3.6/site-packages/cram/_run.py
/usr/lib/python3.6/site-packages/cram/_test.py
/usr/lib/python3.6/site-packages/cram/_xunit.py
/usr/share/doc/python3-cram
/usr/share/doc/python3-cram/NEWS.rst
/usr/share/doc/python3-cram/README.rst
/usr/share/doc/python3-cram/TODO.md
/usr/share/licenses/python3-cram
/usr/share/licenses/python3-cram/COPYING.txt

References

Summary

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