How To Install stack on Fedora 36

In this tutorial we learn how to install stack in Fedora 36. stack is Haskell package tool

Introduction

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

What is stack

Stack is a cross-platform program for developing Haskell projects.

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

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

sudo dnf -y install stack

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

sudo yum -y install stack

How To Uninstall stack on Fedora 36

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

sudo dnf remove stack

stack Package Contents on Fedora 36

/usr/bin/stack
/usr/lib/.build-id
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/6a476184b4425e504750355bc6ebc34671a38b
/usr/share/bash-completion/completions/stack
/usr/share/doc/stack
/usr/share/doc/stack/CONTRIBUTING.md
/usr/share/doc/stack/ChangeLog.md
/usr/share/doc/stack/README.md
/usr/share/licenses/stack
/usr/share/licenses/stack/LICENSE

References

Summary

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