How To Install ghc-crypto-api on Fedora 36

In this tutorial we learn how to install ghc-crypto-api in Fedora 36. ghc-crypto-api is A generic interface for cryptographic operations

Introduction

In this tutorial we learn how to install ghc-crypto-api on Fedora 36.

What is ghc-crypto-api

A generic interface for cryptographic operations (hashes, ciphers, randomness). Maintainers of hash and cipher implementations are encouraged to add instances for the classes defined in Crypto.Classes. Crypto users are similarly encouraged to use the interfaces defined in the Classes module. Any concepts or functions of general use to more than one cryptographic algorithm (eg padding) is within the scope of this package.

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

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

sudo dnf -y install ghc-crypto-api

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

sudo yum -y install ghc-crypto-api

How To Uninstall ghc-crypto-api on Fedora 36

To uninstall only the ghc-crypto-api package we can use the following command:

sudo dnf remove ghc-crypto-api

ghc-crypto-api Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/35
/usr/lib/.build-id/35/23ab8d56b22b3f49de81623fddda7bf9621b67
/usr/lib64/libHScrypto-api-0.13.3-4MVP5u8cM4N2LHbolvSquY-ghc8.10.5.so
/usr/share/licenses/ghc-crypto-api
/usr/share/licenses/ghc-crypto-api/LICENSE

References

Summary

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