How To Install ghc-ormolu on Fedora 36

In this tutorial we learn how to install ghc-ormolu in Fedora 36. ghc-ormolu is Haskell ormolu library

Introduction

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

What is ghc-ormolu

This package provides the Haskell ormolu shared library.

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

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

sudo dnf -y install ghc-ormolu

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

sudo yum -y install ghc-ormolu

How To Uninstall ghc-ormolu on Fedora 36

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

sudo dnf remove ghc-ormolu

ghc-ormolu Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/71580d85a6e0ac61e2c5d476c8a127596ec72a
/usr/lib64/libHSormolu-0.1.4.1-HpacYDuP4US4vmf7t2AR7o-ghc8.10.5.so

References

Summary

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