How To Install perl-Hash-Merge-Simple on CentOS 7

In this tutorial we learn how to install perl-Hash-Merge-Simple on CentOS 7. perl-Hash-Merge-Simple is Recursively merge two or more hashes, simply

Introduction

In this tutorial we learn how to install perl-Hash-Merge-Simple on CentOS 7.

What is perl-Hash-Merge-Simple

Hash return the result as a new hash reference. The merge function will descend and merge hashes that exist under the same node in both the left and right hash, but doesn’t attempt to combine arrays, objects, scalars, or anything else. The rightmost hash also takes precedence, replacing whatever was in the left hash if a conflict occurs. This code was pretty much taken straight from Catalyst same time.

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

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

sudo yum -y install perl-Hash-Merge-Simple

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

sudo dnf -y install perl-Hash-Merge-Simple

How To Uninstall perl-Hash-Merge-Simple on CentOS 7

To uninstall only the perl-Hash-Merge-Simple package we can use the following command:

sudo dnf remove perl-Hash-Merge-Simple

References

Summary

In this tutorial we learn how to install perl-Hash-Merge-Simple on CentOS 7 using yum and dnf.