How To Install ghc-cryptohash-sha1 on Fedora 36

In this tutorial we learn how to install ghc-cryptohash-sha1 in Fedora 36. ghc-cryptohash-sha1 is Fast, pure and practical SHA-1 implementation

Introduction

In this tutorial we learn how to install ghc-cryptohash-sha1 on Fedora 36.

What is ghc-cryptohash-sha1

A practical incremental and one-pass, pure API to the SHA-1 hash algorithm (including HMAC support) with performance close to the fastest implementations available in other languages. NOTE ‘cryptohash’ package has been deprecated and so this package continues to satisfy the need for a lightweight package providing the SHA1 hash algorithm without any dependencies on packages other than ‘base’ and ‘bytestring’. Consequently, this package can be used as a drop-in replacement for cryptohash’s “Crypto.Hash.SHA1” module, though with a clearly smaller footprint.

We can use yum or dnf to install ghc-cryptohash-sha1 on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-cryptohash-sha1.

Install ghc-cryptohash-sha1 on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-cryptohash-sha1 using dnf by running the following command:

sudo dnf -y install ghc-cryptohash-sha1

Install ghc-cryptohash-sha1 on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-cryptohash-sha1 using yum by running the following command:

sudo yum -y install ghc-cryptohash-sha1

How To Uninstall ghc-cryptohash-sha1 on Fedora 36

To uninstall only the ghc-cryptohash-sha1 package we can use the following command:

sudo dnf remove ghc-cryptohash-sha1

ghc-cryptohash-sha1 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/0919b5dc150f6c106f535bc569a61e5eacdf08
/usr/lib64/libHScryptohash-sha1-0.11.100.1-HA3MUFqd1UUI8eb8HGKp7P-ghc8.10.5.so
/usr/share/licenses/ghc-cryptohash-sha1
/usr/share/licenses/ghc-cryptohash-sha1/LICENSE

References

Summary

In this tutorial we learn how to install ghc-cryptohash-sha1 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).