How To Install ghc-simple-cmd on CentOS 7
Introduction
In this tutorial we learn how to install ghc-simple-cmd
on CentOS 7.
What is ghc-simple-cmd
Thin wrappers over System.Process (readProcess, readProcessWithExitCode, and rawSystem). The idea is to provide some simple common idioms for easy calling out to commands from programs. For more advanced shell-scripting or streaming use turtle, shelly, command, etc.
We can use yum
or dnf
to install ghc-simple-cmd
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-simple-cmd.
Install ghc-simple-cmd 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-simple-cmd
using yum
by running the following command:
sudo yum -y install ghc-simple-cmd
Install ghc-simple-cmd 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-simple-cmd
using dnf
by running the following command:
sudo dnf -y install ghc-simple-cmd
How To Uninstall ghc-simple-cmd on CentOS 7
To uninstall only the ghc-simple-cmd
package we can use the following command:
sudo dnf remove ghc-simple-cmd
References
Summary
In this tutorial we learn how to install ghc-simple-cmd
on CentOS 7 using yum
and dnf
.