How To Install python3-cmdln on Fedora 36
Introduction
In this tutorial we learn how to install python3-cmdln
on Fedora 36.
What is python3-cmdln
cmdln.py
is an extension of Python’s defaultcmd.py
module that provides “a simple framework for writing line-oriented command interpreters”. The idea (with both cmd.py and cmdln.py) is to be able to quickly build multi-sub-command tools (think cvs or svn) and/or simple interactive shells (think gdb or pdb). Cmdln’s extensions make it more natural to write sub-commands, integrate optparse for simple option processing, and make having good command documentation easier. Python 3 compatible module.
We can use yum
or dnf
to install python3-cmdln
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-cmdln.
Install python3-cmdln 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-cmdln
using dnf
by running the following command:
sudo dnf -y install python3-cmdln
Install python3-cmdln 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-cmdln
using yum
by running the following command:
sudo yum -y install python3-cmdln
How To Uninstall python3-cmdln on Fedora 36
To uninstall only the python3-cmdln
package we can use the following command:
sudo dnf remove python3-cmdln
python3-cmdln Package Contents on Fedora 36
/usr/lib/python3.10/site-packages/__pycache__
/usr/lib/python3.10/site-packages/__pycache__/cmdln.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/cmdln.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmdln-2.0.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/cmdln.py
/usr/share/licenses/python3-cmdln
/usr/share/licenses/python3-cmdln/LICENSE.txt
References
Summary
In this tutorial we learn how to install python3-cmdln
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).