How To Install ghc-cryptohash-sha256 on Fedora 36

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

Introduction

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

What is ghc-cryptohash-sha256

A practical incremental and one-pass, pure API to the SHA-256 hash algorithm according to FIPS 180-4 with performance close to the fastest implementations available in other languages. This package can be used as a drop-in replacement for cryptohash’s “Crypto.Hash.SHA256” module, though with a clearly smaller footprint.

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

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

sudo dnf -y install ghc-cryptohash-sha256

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

sudo yum -y install ghc-cryptohash-sha256

How To Uninstall ghc-cryptohash-sha256 on Fedora 36

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

sudo dnf remove ghc-cryptohash-sha256

ghc-cryptohash-sha256 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/5072cbfcca43fabc625a7622eda3494098dd17
/usr/lib64/libHScryptohash-sha256-0.11.102.0-BIK7tUgUf6XGJKq7LBFHn0-ghc8.10.5.so
/usr/share/licenses/ghc-cryptohash-sha256
/usr/share/licenses/ghc-cryptohash-sha256/LICENSE

References

Summary

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