How To Install ghc-primitive-prof on Fedora 36

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

Introduction

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

What is ghc-primitive-prof

This package provides the Haskell primitive profiling library.

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

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

sudo dnf -y install ghc-primitive-prof

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

sudo yum -y install ghc-primitive-prof

How To Uninstall ghc-primitive-prof on Fedora 36

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

sudo dnf remove ghc-primitive-prof

ghc-primitive-prof Package Contents on Fedora 36

/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Control/Monad/Primitive.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/Array.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/ByteArray.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/Internal/Compat.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/Internal/Operations.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/MVar.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/MachDeps.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/MutVar.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/PrimArray.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/Ptr.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/SmallArray.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/Data/Primitive/Types.p_hi
/usr/lib64/ghc-8.10.5/primitive-0.7.1.0/libHSprimitive-0.7.1.0-H44eQ1j8hQJ3Kj2SFx0Ivh_p.a

References

Summary

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