How To Install ghc-hakyll on Fedora 36

In this tutorial we learn how to install ghc-hakyll in Fedora 36. ghc-hakyll is A static website compiler library

Introduction

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

What is ghc-hakyll

Hakyll is a static website compiler library. It provides you with the tools to create a simple or advanced static website using a Haskell DSL and formats such as markdown or RST. You can find more information, including a tutorial, on the website

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

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

sudo dnf -y install ghc-hakyll

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

sudo yum -y install ghc-hakyll

How To Uninstall ghc-hakyll on Fedora 36

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

sudo dnf remove ghc-hakyll

ghc-hakyll Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/334cc5ec375071a8450f14be55937e5fb2a379
/usr/lib64/libHShakyll-4.14.0.0-FfvnT1pL5r6Ahcexeu39Dj-ghc8.10.5.so
/usr/share/hakyll-4.14.0.0
/usr/share/hakyll-4.14.0.0/example
/usr/share/hakyll-4.14.0.0/example/about.rst
/usr/share/hakyll-4.14.0.0/example/contact.markdown
/usr/share/hakyll-4.14.0.0/example/css
/usr/share/hakyll-4.14.0.0/example/css/default.css
/usr/share/hakyll-4.14.0.0/example/images
/usr/share/hakyll-4.14.0.0/example/images/haskell-logo.png
/usr/share/hakyll-4.14.0.0/example/index.html
/usr/share/hakyll-4.14.0.0/example/posts
/usr/share/hakyll-4.14.0.0/example/posts/2015-08-12-spqr.markdown
/usr/share/hakyll-4.14.0.0/example/posts/2015-10-07-rosa-rosa-rosam.markdown
/usr/share/hakyll-4.14.0.0/example/posts/2015-11-28-carpe-diem.markdown
/usr/share/hakyll-4.14.0.0/example/posts/2015-12-07-tu-quoque.markdown
/usr/share/hakyll-4.14.0.0/example/site.hs
/usr/share/hakyll-4.14.0.0/example/templates
/usr/share/hakyll-4.14.0.0/example/templates/archive.html
/usr/share/hakyll-4.14.0.0/example/templates/default.html
/usr/share/hakyll-4.14.0.0/example/templates/post-list.html
/usr/share/hakyll-4.14.0.0/example/templates/post.html
/usr/share/licenses/ghc-hakyll
/usr/share/licenses/ghc-hakyll/LICENSE

References

Summary

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