How To Install ghc-executable-path on Fedora 36

In this tutorial we learn how to install ghc-executable-path in Fedora 36. ghc-executable-path is Find out the full path of an executable

Introduction

In this tutorial we learn how to install ghc-executable-path on Fedora 36.

What is ghc-executable-path

The documentation of “System.Environment.getProgName” says that “However, this is hard-to-impossible to implement on some non-Unix OSes, so instead, for maximum portability, we just return the leaf name of the program as invoked.” This library tries to provide the missing path.

We can use yum or dnf to install ghc-executable-path on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ghc-executable-path.

Install ghc-executable-path 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-executable-path using dnf by running the following command:

sudo dnf -y install ghc-executable-path

Install ghc-executable-path 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-executable-path using yum by running the following command:

sudo yum -y install ghc-executable-path

How To Uninstall ghc-executable-path on Fedora 36

To uninstall only the ghc-executable-path package we can use the following command:

sudo dnf remove ghc-executable-path

ghc-executable-path Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/184d815adafe44af3cc318ee39d3f52348b470
/usr/lib64/libHSexecutable-path-0.0.3.1-84VowVJXXjdLu8L9GxK1jL-ghc8.10.5.so
/usr/share/licenses/ghc-executable-path
/usr/share/licenses/ghc-executable-path/LICENSE

References

Summary

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