How To Install python3-optcomplete on Fedora 36

In this tutorial we learn how to install python3-optcomplete in Fedora 36. python3-optcomplete is Shell Completion Self-Generator for Python 3

Introduction

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

What is python3-optcomplete

This Python 3 module aims at providing almost automatically shell completion for any Python program that already uses the optparse module.

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

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

sudo dnf -y install python3-optcomplete

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

sudo yum -y install python3-optcomplete

How To Uninstall python3-optcomplete on Fedora 36

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

sudo dnf remove python3-optcomplete

python3-optcomplete Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/__pycache__/optcomplete.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/optcomplete.cpython-310.pyc
/usr/lib/python3.10/site-packages/optcomplete-1.2.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/optcomplete.py
/usr/share/doc/python3-optcomplete
/usr/share/doc/python3-optcomplete/CHANGES
/usr/share/doc/python3-optcomplete/CREDITS
/usr/share/doc/python3-optcomplete/README
/usr/share/doc/python3-optcomplete/TODO
/usr/share/doc/python3-optcomplete/conditional.txt
/usr/share/doc/python3-optcomplete/sample-output.txt
/usr/share/licenses/python3-optcomplete
/usr/share/licenses/python3-optcomplete/COPYING

References

Summary

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