How To Install ghc-Only-devel on Fedora 36

In this tutorial we learn how to install ghc-Only-devel in Fedora 36. ghc-Only-devel is Haskell Only library development files

Introduction

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

What is ghc-Only-devel

This package provides the Haskell Only library development files.

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

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

sudo dnf -y install ghc-Only-devel

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

sudo yum -y install ghc-Only-devel

How To Uninstall ghc-Only-devel on Fedora 36

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

sudo dnf remove ghc-Only-devel

ghc-Only-devel Package Contents on Fedora 36

/usr/lib64/ghc-8.10.5/Only-0.1
/usr/lib64/ghc-8.10.5/Only-0.1/Data
/usr/lib64/ghc-8.10.5/Only-0.1/Data/Tuple
/usr/lib64/ghc-8.10.5/Only-0.1/Data/Tuple/Only.dyn_hi
/usr/lib64/ghc-8.10.5/Only-0.1/Data/Tuple/Only.hi
/usr/lib64/ghc-8.10.5/Only-0.1/libHSOnly-0.1-FUCJUAPDXF54dPZ4SnGX6G.a
/usr/lib64/ghc-8.10.5/package.conf.d/Only-0.1.conf

References

Summary

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