How To Install perl-Regexp-Grammars on CentOS 7

In this tutorial we learn how to install perl-Regexp-Grammars on CentOS 7. perl-Regexp-Grammars is Add grammatical parsing features to perl regular expressions

Introduction

In this tutorial we learn how to install perl-Regexp-Grammars on CentOS 7.

What is perl-Regexp-Grammars

This module adds a small number of new regular expressions constructs that can be used to implement complete recursive-descent parsing. These constructs use the grammar patterns that were added to perl’s regular expressions in perl 5.10.

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

Install perl-Regexp-Grammars 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-Regexp-Grammars using yum by running the following command:

sudo yum -y install perl-Regexp-Grammars

Install perl-Regexp-Grammars 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-Regexp-Grammars using dnf by running the following command:

sudo dnf -y install perl-Regexp-Grammars

How To Uninstall perl-Regexp-Grammars on CentOS 7

To uninstall only the perl-Regexp-Grammars package we can use the following command:

sudo dnf remove perl-Regexp-Grammars

References

Summary

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