How To Install mhash on Fedora 34

mhash is Thread-safe hash algorithms library Thread-safe hash algorithms library

Introduction

In this tutorial we learn how to install mhash on Fedora 34.

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. mhash 0.9.9.9 23.fc34 x86_64 115 k mhash-0.9.9.9-23.fc34.src.rpm fedora Thread-safe hash algorithms library http LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mhash.

Install mhash on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install mhash using dnf by running the following command:

sudo dnf -y install mhash

Install mhash on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove mhash

mhash Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/a6caddb7a54177f6d51e94b22ed8a61fbb7a70
/usr/lib/libmhash.so.2
/usr/lib/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
/usr/lib/.build-id
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/2b1a1231abd432d2bc699629fd0a73ed688611
/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 Fedora 34 using yum and dnf.