How To Install mhash on Rocky Linux 8

In this tutorial we learn how to install mhash on Rocky Linux 8. mhash is Thread-safe hash algorithms library

Introduction

In this tutorial we learn how to install mhash on Rocky Linux 8.

What is mhash

Mhash is a free library which provides a uniform interface to a large number of hash algorithms. These algorithms can be used to compute checksums, message digests, and other signatures. The HMAC support implements the basics for message authentication, following RFC 2104. In the later versions some key generation algorithms, which use hash algorithms, have been added. Currently, the library supports the algorithms HAVAL256, HAVAL224, HAVAL192, HAVAL160, HAVAL128, MD5, MD4, MD2, RIPEMD128/160/256/320, TIGER, TIGER160, TIGER128, SHA1/224/256/384/512, Whirlpool, SNEFRU128/256, CRC32B and CRC32 checksums.

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

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

sudo dnf -y install mhash

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

sudo yum -y install mhash

How To Uninstall mhash on Rocky Linux 8

To uninstall only the mhash package we can use the following command:

sudo dnf remove mhash

mhash Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/e74e578cd460185bbc44bc3620911242e74ad2
/usr/lib64/libmhash.so.2
/usr/lib64/libmhash.so.2.0.1
/usr/share/doc/mhash
/usr/share/doc/mhash/AUTHORS
/usr/share/doc/mhash/COPYING
/usr/share/doc/mhash/NEWS
/usr/share/doc/mhash/README
/usr/share/doc/mhash/THANKS
/usr/share/doc/mhash/TODO

References

Summary

In this tutorial we learn how to install mhash on Rocky Linux 8 using yum and dnf.