How To Install python-django-bash-completion on Rocky Linux 8

In this tutorial we learn how to install python-django-bash-completion on Rocky Linux 8. python-django-bash-completion is bash completion files for Django

Introduction

In this tutorial we learn how to install python-django-bash-completion on Rocky Linux 8.

What is python-django-bash-completion

This package contains the bash completion files form Django high-level Python Web framework.

We can use yum or dnf to install python-django-bash-completion on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python-django-bash-completion.

Install python-django-bash-completion on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python-django-bash-completion using dnf by running the following command:

sudo dnf -y install python-django-bash-completion

Install python-django-bash-completion on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python-django-bash-completion using yum by running the following command:

sudo yum -y install python-django-bash-completion

How To Uninstall python-django-bash-completion on Rocky Linux 8

To uninstall only the python-django-bash-completion package we can use the following command:

sudo dnf remove python-django-bash-completion

python-django-bash-completion Package Contents on Rocky Linux 8

/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/django-admin
/usr/share/bash-completion/completions/django-admin-3
/usr/share/bash-completion/completions/django-admin-3.6
/usr/share/bash-completion/completions/django-admin.py
/usr/share/bash-completion/completions/manage.py
/usr/share/bash-completion/completions/python3-django-admin

References

Summary

In this tutorial we learn how to install python-django-bash-completion on Rocky Linux 8 using yum and dnf.