How To Install ghc-hpack on Fedora 36

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

Introduction

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

What is ghc-hpack

This package provides the Haskell hpack library.

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

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

sudo dnf -y install ghc-hpack

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

sudo yum -y install ghc-hpack

How To Uninstall ghc-hpack on Fedora 36

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

sudo dnf remove ghc-hpack

ghc-hpack Package Contents on Fedora 36

/usr/bin/hpack
/usr/lib/.build-id
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/7f9b81fff9b2a57ef36923eeed64552d9c1c85
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/bff037efa4f83b21e7631b175fb6f116c2effc
/usr/lib64/libHShpack-0.34.4-8pFQ1gFWFgW2qsWgXllgfH-ghc8.10.5.so
/usr/share/licenses/ghc-hpack
/usr/share/licenses/ghc-hpack/LICENSE

References

Summary

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