How To Install python3-argcomplete on AlmaLinux 8

In this tutorial we learn how to install python3-argcomplete in AlmaLinux 8. python3-argcomplete is Bash tab completion for argparse

Introduction

In this tutorial we learn how to install python3-argcomplete on AlmaLinux 8.

What is python3-argcomplete

Argcomplete provides easy, extensible command line tab completion of arguments for your Python script. It makes two assumptions * You are using bash as your shell * You are using argparse to manage your command line arguments/options Argcomplete is particularly useful if your program has lots of options or subparsers, and if your program can dynamically suggest completions for your argument/option values (for example, if the user is browsing resources over the network). Python 3 version.

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

Install python3-argcomplete on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-argcomplete using dnf by running the following command:

sudo dnf -y install python3-argcomplete

Install python3-argcomplete on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-argcomplete using yum by running the following command:

sudo yum -y install python3-argcomplete

How To Uninstall python3-argcomplete on AlmaLinux 8

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

sudo dnf remove python3-argcomplete

References

Summary

In this tutorial we learn how to install python3-argcomplete on AlmaLinux 8 using yum and dnf.