How To Install ghc-SHA on CentOS 7
Introduction
In this tutorial we learn how to install ghc-SHA
on CentOS 7.
What is ghc-SHA
This library implements the SHA suite of message digest functions, according to NIST FIPS 180-2 (with the SHA-224 addendum), as well as the SHA-based HMAC routines. The functions have been tested against most of the NIST and RFC test vectors for the various functions. While some attention has been paid to performance, these do not presently reach the speed of well-tuned libraries, like OpenSSL.
We can use yum
or dnf
to install ghc-SHA
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-SHA.
Install ghc-SHA 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-SHA
using yum
by running the following command:
sudo yum -y install ghc-SHA
Install ghc-SHA 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-SHA
using dnf
by running the following command:
sudo dnf -y install ghc-SHA
How To Uninstall ghc-SHA on CentOS 7
To uninstall only the ghc-SHA
package we can use the following command:
sudo dnf remove ghc-SHA
References
Summary
In this tutorial we learn how to install ghc-SHA
on CentOS 7 using yum
and dnf
.