How To Install ghc-refact on Fedora 36

In this tutorial we learn how to install ghc-refact in Fedora 36. ghc-refact is Specify refactorings to perform with apply-refact

Introduction

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

What is ghc-refact

This library provides a datatype which can be interpreted by apply-refact. It exists as a seperate library so that applications can specify refactorings without depending on GHC.

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

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

sudo dnf -y install ghc-refact

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

sudo yum -y install ghc-refact

How To Uninstall ghc-refact on Fedora 36

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

sudo dnf remove ghc-refact

ghc-refact Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/c742f89881e71b046bb18b7e543de20a351196
/usr/lib64/libHSrefact-0.3.0.2-JKNk3jm7RIRD7pQxWgpJCE-ghc8.10.5.so
/usr/share/licenses/ghc-refact
/usr/share/licenses/ghc-refact/LICENSE

References

Summary

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