How To Install ghc-stack on Fedora 36

In this tutorial we learn how to install ghc-stack in Fedora 36. ghc-stack is Haskell stack library

Introduction

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

What is ghc-stack

This package provides the Haskell stack library.

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

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

sudo dnf -y install ghc-stack

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

sudo yum -y install ghc-stack

How To Uninstall ghc-stack on Fedora 36

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

sudo dnf remove ghc-stack

ghc-stack Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/ccb42b9ee95d9547a35e37280957b1cddb5c40
/usr/lib64/libHSstack-2.7.3-6fj3tSke7OM6cvI7NNKfTX-ghc8.10.5.so
/usr/share/licenses/ghc-stack
/usr/share/licenses/ghc-stack/LICENSE

References

Summary

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