How To Install ghc-edit-distance on Fedora 36

In this tutorial we learn how to install ghc-edit-distance in Fedora 36. ghc-edit-distance is Levenshtein and restricted Damerau-Levenshtein edit distances

Introduction

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

What is ghc-edit-distance

Optimized edit distances for fuzzy matching, including Levenshtein and restricted Damerau-Levenshtein algorithms.

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

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

sudo dnf -y install ghc-edit-distance

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

sudo yum -y install ghc-edit-distance

How To Uninstall ghc-edit-distance on Fedora 36

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

sudo dnf remove ghc-edit-distance

ghc-edit-distance Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/61a41e6b47a5eaf240386d69ecda2a81850734
/usr/lib64/libHSedit-distance-0.2.2.1-1JzolFUm1dNFaL3qOzjCDC-ghc8.10.5.so
/usr/share/licenses/ghc-edit-distance
/usr/share/licenses/ghc-edit-distance/LICENSE

References

Summary

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