How To Install perl-Pegex on AlmaLinux 8

In this tutorial we learn how to install perl-Pegex in AlmaLinux 8. perl-Pegex is Pegex Parser Generator

Introduction

In this tutorial we learn how to install perl-Pegex on AlmaLinux 8.

What is perl-Pegex

Pegex is an Acmeist parser framework. It is a PEG parser grammar syntax, combined with PCRE compatible regular expressions as the match tokens. Pegex draws heavily from Perl 6 rules, but works equivalently in many modern programming languages.

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

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

sudo dnf -y install perl-Pegex

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

sudo yum -y install perl-Pegex

How To Uninstall perl-Pegex on AlmaLinux 8

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

sudo dnf remove perl-Pegex

References

Summary

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