How To Install ghc-doc on Fedora 36

In this tutorial we learn how to install ghc-doc in Fedora 36. ghc-doc is Haskell library documentation meta package

Introduction

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

What is ghc-doc

Installing this package causes ghc--doc packages corresponding to ghc--devel packages to be automatically installed too.

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

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

sudo dnf -y install ghc-doc

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

sudo yum -y install ghc-doc

How To Uninstall ghc-doc on Fedora 36

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

sudo dnf remove ghc-doc

ghc-doc Package Contents on Fedora 36

References

Summary

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