How To Install ghc-cmdtheline on CentOS 7
Introduction
In this tutorial we learn how to install ghc-cmdtheline
on CentOS 7.
What is ghc-cmdtheline
CmdTheLine aims to remove tedium from the definition of command-line programs, producing usage and help with little effort. The inspiration was found in Daniel Bunzli’s <http CmdTheLine uses applicative functors to provide a declarative, compositional mechanism for defining command-line programs by lifting regular Haskell functions over argument parsers. A tutorial can be found at <http Suggestions, comments, and bug reports are appreciated. Please see the bug and issue tracker at <http
We can use yum
or dnf
to install ghc-cmdtheline
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-cmdtheline.
Install ghc-cmdtheline 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-cmdtheline
using yum
by running the following command:
sudo yum -y install ghc-cmdtheline
Install ghc-cmdtheline 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-cmdtheline
using dnf
by running the following command:
sudo dnf -y install ghc-cmdtheline
How To Uninstall ghc-cmdtheline on CentOS 7
To uninstall only the ghc-cmdtheline
package we can use the following command:
sudo dnf remove ghc-cmdtheline
References
Summary
In this tutorial we learn how to install ghc-cmdtheline
on CentOS 7 using yum
and dnf
.