How To Install perl-match-simple on AlmaLinux 8

In this tutorial we learn how to install perl-match-simple in AlmaLinux 8. perl-match-simple is Simplified clone of smartmatch operator

Introduction

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

What is perl-match-simple

match subset of the (as of Perl 5.18) deprecated smart match operator. Unlike smart match, the behaviour of the match is determined entirely by the operand on the right hand side.

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

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

sudo dnf -y install perl-match-simple

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

sudo yum -y install perl-match-simple

How To Uninstall perl-match-simple on AlmaLinux 8

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

sudo dnf remove perl-match-simple

References

Summary

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