How To Install perl-Digest-HMAC on CentOS 7

In this tutorial we learn how to install perl-Digest-HMAC on CentOS 7. perl-Digest-HMAC is Keyed-Hashing for Message Authentication

Introduction

In this tutorial we learn how to install perl-Digest-HMAC on CentOS 7.

What is perl-Digest-HMAC

HMAC is used for message integrity checks between two parties that share a secret key, and works in combination with some other Digest algorithm, usually MD5 or SHA-1. The HMAC mechanism is described in RFC 2104. HMAC follow the common Digest takes the secret key and the name of some other simple Digest argument.

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

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

sudo yum -y install perl-Digest-HMAC

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

sudo dnf -y install perl-Digest-HMAC

How To Uninstall perl-Digest-HMAC on CentOS 7

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

sudo dnf remove perl-Digest-HMAC

References

Summary

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