How To Install python3-cram on Fedora 36

In this tutorial we learn how to install python3-cram in Fedora 36. python3-cram is Simple testing framework for command line applications

Introduction

In this tutorial we learn how to install python3-cram on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-cram.

Install python3-cram on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove python3-cram

python3-cram Package Contents on Fedora 36

/usr/bin/cram
/usr/lib/python3.10/site-packages/cram
/usr/lib/python3.10/site-packages/cram-0.7-py3.10.egg-info
/usr/lib/python3.10/site-packages/cram/__init__.py
/usr/lib/python3.10/site-packages/cram/__main__.py
/usr/lib/python3.10/site-packages/cram/__pycache__
/usr/lib/python3.10/site-packages/cram/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_diff.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_diff.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_encoding.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_encoding.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_main.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_main.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_process.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_process.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_run.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_run.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_test.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_test.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_xunit.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cram/__pycache__/_xunit.cpython-310.pyc
/usr/lib/python3.10/site-packages/cram/_cli.py
/usr/lib/python3.10/site-packages/cram/_diff.py
/usr/lib/python3.10/site-packages/cram/_encoding.py
/usr/lib/python3.10/site-packages/cram/_main.py
/usr/lib/python3.10/site-packages/cram/_process.py
/usr/lib/python3.10/site-packages/cram/_run.py
/usr/lib/python3.10/site-packages/cram/_test.py
/usr/lib/python3.10/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).