How To Install ghc-crypto-api on CentOS 7
Introduction
In this tutorial we learn how to install ghc-crypto-api
on CentOS 7.
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 CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install ghc-crypto-api
using yum
by running the following command:
sudo yum -y install ghc-crypto-api
Install ghc-crypto-api on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install ghc-crypto-api
using dnf
by running the following command:
sudo dnf -y install ghc-crypto-api
How To Uninstall ghc-crypto-api on CentOS 7
To uninstall only the ghc-crypto-api
package we can use the following command:
sudo dnf remove ghc-crypto-api
References
Summary
In this tutorial we learn how to install ghc-crypto-api
on CentOS 7 using yum
and dnf
.