How To Install python3-wcmatch on AlmaLinux 8

In this tutorial we learn how to install python3-wcmatch in AlmaLinux 8. python3-wcmatch is Wildcard/glob file name matcher

Introduction

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

What is python3-wcmatch

Wildcard Match provides an enhanced fnmatch, glob, and pathlib library in order to provide file matching and globbing that more closely follows the features found in Bash. In some ways these libraries are similar to Python’s builtin libraries as they provide a similar interface to match, filter, and glob the file system. But they also include a number of features found in Bash’s globbing such as backslash escaping, brace expansion, extended glob pattern groups, etc. They also add a number of new useful functions as well, such as globmatch which functions like fnmatch, but for paths.

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

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

sudo dnf -y install python3-wcmatch

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

sudo yum -y install python3-wcmatch

How To Uninstall python3-wcmatch on AlmaLinux 8

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

sudo dnf remove python3-wcmatch

References

Summary

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