How To Install ghc-doc-cron on AlmaLinux 8

In this tutorial we learn how to install ghc-doc-cron in AlmaLinux 8. ghc-doc-cron is GHC library documentation indexing cronjob

Introduction

In this tutorial we learn how to install ghc-doc-cron on AlmaLinux 8.

What is ghc-doc-cron

The package provides a cronjob for re-indexing installed library development documention.

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

Install ghc-doc-cron on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ghc-doc-cron using dnf by running the following command:

sudo dnf -y install ghc-doc-cron

Install ghc-doc-cron on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ghc-doc-cron using yum by running the following command:

sudo yum -y install ghc-doc-cron

How To Uninstall ghc-doc-cron on AlmaLinux 8

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

sudo dnf remove ghc-doc-cron

References

Summary

In this tutorial we learn how to install ghc-doc-cron on AlmaLinux 8 using yum and dnf.