How To Install perl-Text-Glob on CentOS 7

In this tutorial we learn how to install perl-Text-Glob on CentOS 7. perl-Text-Glob is Perl module to match globbing patterns against text

Introduction

In this tutorial we learn how to install perl-Text-Glob on CentOS 7.

What is perl-Text-Glob

Text match against text, rather than fetching names from a file-system. If you want to do full file globbing use the File instead.

We can use yum or dnf to install perl-Text-Glob on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Text-Glob.

Install perl-Text-Glob on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-Text-Glob using yum by running the following command:

sudo yum -y install perl-Text-Glob

Install perl-Text-Glob on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install perl-Text-Glob using dnf by running the following command:

sudo dnf -y install perl-Text-Glob

How To Uninstall perl-Text-Glob on CentOS 7

To uninstall only the perl-Text-Glob package we can use the following command:

sudo dnf remove perl-Text-Glob

References

Summary

In this tutorial we learn how to install perl-Text-Glob on CentOS 7 using yum and dnf.