How To Install python-cmdln-doc on Fedora 36

In this tutorial we learn how to install python-cmdln-doc in Fedora 36. python-cmdln-doc is An improved cmd.py for Writing Multi-command Scripts and Shells

Introduction

In this tutorial we learn how to install python-cmdln-doc on Fedora 36.

What is python-cmdln-doc

cmdln.py is an extension of Python’s default cmd.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. Documentation package.

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

Install python-cmdln-doc 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 python-cmdln-doc using dnf by running the following command:

sudo dnf -y install python-cmdln-doc

Install python-cmdln-doc 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 python-cmdln-doc using yum by running the following command:

sudo yum -y install python-cmdln-doc

How To Uninstall python-cmdln-doc on Fedora 36

To uninstall only the python-cmdln-doc package we can use the following command:

sudo dnf remove python-cmdln-doc

python-cmdln-doc Package Contents on Fedora 36

/usr/share/doc/python-cmdln-doc
/usr/share/doc/python-cmdln-doc/README.md
/usr/share/doc/python-cmdln-doc/conan.py
/usr/share/doc/python-cmdln-doc/diffs_with_cmd_py.txt
/usr/share/doc/python-cmdln-doc/getting_started.rst
/usr/share/doc/python-cmdln-doc/p4.py
/usr/share/doc/python-cmdln-doc/svn.py
/usr/share/licenses/python-cmdln-doc
/usr/share/licenses/python-cmdln-doc/LICENSE.txt

References

Summary

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