How To Install ghc-magic-prof on Fedora 36

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

Introduction

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

What is ghc-magic-prof

This package provides the Haskell magic profiling library.

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

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

sudo dnf -y install ghc-magic-prof

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

sudo yum -y install ghc-magic-prof

How To Uninstall ghc-magic-prof on Fedora 36

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

sudo dnf remove ghc-magic-prof

ghc-magic-prof Package Contents on Fedora 36

/usr/lib64/ghc-8.10.5/magic-1.1/Magic.p_hi
/usr/lib64/ghc-8.10.5/magic-1.1/Magic/Data.p_hi
/usr/lib64/ghc-8.10.5/magic-1.1/Magic/Init.p_hi
/usr/lib64/ghc-8.10.5/magic-1.1/Magic/Operations.p_hi
/usr/lib64/ghc-8.10.5/magic-1.1/Magic/Types.p_hi
/usr/lib64/ghc-8.10.5/magic-1.1/Magic/TypesLL.p_hi
/usr/lib64/ghc-8.10.5/magic-1.1/Magic/Utils.p_hi
/usr/lib64/ghc-8.10.5/magic-1.1/libHSmagic-1.1-ACgJfsTtmRc6ULiEKeUBqR_p.a

References

Summary

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