How To Install python3-q on Fedora 36

In this tutorial we learn how to install python3-q in Fedora 36. python3-q is Quick and dirty python debugging output

Introduction

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

What is python3-q

If you have ever been frustrated trying to debug with print because a web application or a unittesting framework is swallowing your debugging output, q will make you jump for joy. import q variable = ‘Hmmm… something happened here’ q.q(variable) cat /tmp/q Python 3 version.

We can use yum or dnf to install python3-q on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-q.

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

sudo dnf -y install python3-q

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

sudo yum -y install python3-q

How To Uninstall python3-q on Fedora 36

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

sudo dnf remove python3-q

python3-q Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/__pycache__/q.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/q.cpython-310.pyc
/usr/lib/python3.10/site-packages/q-2.6-py3.10.egg-info
/usr/lib/python3.10/site-packages/q-2.6-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/q-2.6-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/q-2.6-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/q-2.6-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/q.py
/usr/share/doc/python3-q
/usr/share/doc/python3-q/README.md

References

Summary

In this tutorial we learn how to install python3-q on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).