How To Install ghc-doctemplates on Fedora 36

In this tutorial we learn how to install ghc-doctemplates in Fedora 36. ghc-doctemplates is Pandoc-style document templates

Introduction

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

What is ghc-doctemplates

This is the text templating system used by pandoc. It supports variable interpolation, iteration, tests for non-blank values, pipes, and partials. Templates are rendered to doclayout Docs, and variable values may come from a variety of different sources, including aeson Values.

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

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

sudo dnf -y install ghc-doctemplates

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

sudo yum -y install ghc-doctemplates

How To Uninstall ghc-doctemplates on Fedora 36

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

sudo dnf remove ghc-doctemplates

ghc-doctemplates Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/c352d6bdbd4d45b9171fcb198b6f861f87b7ce
/usr/lib64/libHSdoctemplates-0.9-4WZUf8rqbJ9KNbMnbBNrhC-ghc8.10.5.so
/usr/share/licenses/ghc-doctemplates
/usr/share/licenses/ghc-doctemplates/LICENSE

References

Summary

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