How To Install perl-Digest-SHA1 on Rocky Linux 8

In this tutorial we learn how to install perl-Digest-SHA1 on Rocky Linux 8. perl-Digest-SHA1 is Digest-SHA1 Perl module

Introduction

In this tutorial we learn how to install perl-Digest-SHA1 on Rocky Linux 8.

What is perl-Digest-SHA1

The Digest digest algorithm from within Perl programs. The algorithm takes as input a message of arbitrary length and produces as output a 160-bit “fingerprint” or “message digest” of the input. The Digest as well as an object oriented interface that can handle messages of arbitrary length and which can read files directly. A binary digest will be 20 bytes long. A hex digest will be 40 characters long. A base64 digest will be 27 characters long.

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

Install perl-Digest-SHA1 on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Digest-SHA1 using dnf by running the following command:

sudo dnf -y install perl-Digest-SHA1

Install perl-Digest-SHA1 on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Digest-SHA1 using yum by running the following command:

sudo yum -y install perl-Digest-SHA1

How To Uninstall perl-Digest-SHA1 on Rocky Linux 8

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

sudo dnf remove perl-Digest-SHA1

perl-Digest-SHA1 Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/3cc5c6ece5f0d5ea8872fddb13a42abc8984ff
/usr/lib64/perl5/vendor_perl/Digest
/usr/lib64/perl5/vendor_perl/Digest/SHA1.pm
/usr/lib64/perl5/vendor_perl/auto/Digest
/usr/lib64/perl5/vendor_perl/auto/Digest/SHA1
/usr/lib64/perl5/vendor_perl/auto/Digest/SHA1/SHA1.so
/usr/share/doc/perl-Digest-SHA1
/usr/share/doc/perl-Digest-SHA1/Changes
/usr/share/doc/perl-Digest-SHA1/README
/usr/share/doc/perl-Digest-SHA1/fip180-1.gif
/usr/share/doc/perl-Digest-SHA1/fip180-1.html
/usr/share/man/man3/Digest::SHA1.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Digest-SHA1 on Rocky Linux 8 using yum and dnf.