How To Install ghc-invariant on Fedora 36

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

Introduction

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

What is ghc-invariant

This package provides the Haskell invariant library.

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

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

sudo dnf -y install ghc-invariant

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

sudo yum -y install ghc-invariant

How To Uninstall ghc-invariant on Fedora 36

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

sudo dnf remove ghc-invariant

ghc-invariant Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/db
/usr/lib/.build-id/db/dfbf76526a0de5076df9d24ed3952973864d57
/usr/lib64/libHSinvariant-0.5.4-BtFR8FdTBqkHoNIXFEjBhm-ghc8.10.5.so
/usr/share/licenses/ghc-invariant
/usr/share/licenses/ghc-invariant/LICENSE

References

Summary

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