How To Install ghc-regex-compat on CentOS 7
Introduction
In this tutorial we learn how to install ghc-regex-compat
on CentOS 7.
What is ghc-regex-compat
One module layer over regex-posix to replace Text.Regex.
We can use yum
or dnf
to install ghc-regex-compat
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-regex-compat.
Install ghc-regex-compat 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-regex-compat
using yum
by running the following command:
sudo yum -y install ghc-regex-compat
Install ghc-regex-compat on CentOS 7 Using dnf
If you don’t have dnf installed you can install dnf first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install ghc-regex-compat
using dnf
by running the following command:
sudo dnf -y install ghc-regex-compat
How To Uninstall ghc-regex-compat on CentOS 7
To uninstall only the ghc-regex-compat
package we can use the following command:
sudo dnf remove ghc-regex-compat
ghc-regex-compat Package Contents on CentOS 7
/usr/lib64/ghc-7.6.3/regex-compat-0.95.1
/usr/lib64/ghc-7.6.3/regex-compat-0.95.1/libHSregex-compat-0.95.1-ghc7.6.3.so
/usr/share/doc/ghc-regex-compat-0.95.1
/usr/share/doc/ghc-regex-compat-0.95.1/LICENSE
References
Summary
In this tutorial we learn how to install ghc-regex-compat
on CentOS 7 using yum and dnf.