How To Install ghc-simple-cmd on Fedora 36

In this tutorial we learn how to install ghc-simple-cmd in Fedora 36. ghc-simple-cmd is Simple String-based process commands

Introduction

In this tutorial we learn how to install ghc-simple-cmd on Fedora 36.

What is ghc-simple-cmd

Simple wrappers over System.Process (readProcess, readProcessWithExitCode, rawSystem, and createProcess). The idea is to provide some common idioms for 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 Fedora 36. 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 Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-simple-cmd using dnf by running the following command:

sudo dnf -y install ghc-simple-cmd

Install ghc-simple-cmd on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-simple-cmd using yum by running the following command:

sudo yum -y install ghc-simple-cmd

How To Uninstall ghc-simple-cmd on Fedora 36

To uninstall only the ghc-simple-cmd package we can use the following command:

sudo dnf remove ghc-simple-cmd

ghc-simple-cmd Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/768d2a176078dea993e53f38a4db439d2b5224
/usr/lib64/libHSsimple-cmd-0.2.3-840zQbCNTkMLwtJsXW3uAN-ghc8.10.5.so
/usr/share/licenses/ghc-simple-cmd
/usr/share/licenses/ghc-simple-cmd/LICENSE

References

Summary

In this tutorial we learn how to install ghc-simple-cmd on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).