How To Install ghc-regexpr on Fedora 36

In this tutorial we learn how to install ghc-regexpr in Fedora 36. ghc-regexpr is Regular expression like Perl/Ruby in Haskell

Introduction

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

What is ghc-regexpr

Regular expression library like Perl and Ruby’s regular expressions.

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

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

sudo dnf -y install ghc-regexpr

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

sudo yum -y install ghc-regexpr

How To Uninstall ghc-regexpr on Fedora 36

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

sudo dnf remove ghc-regexpr

ghc-regexpr Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/ff8e78270273fe34978a88760b7ef19363f305
/usr/lib64/libHSregexpr-0.5.4-4WElRYWoLWu59JXHeri2H-ghc8.10.5.so
/usr/share/licenses/ghc-regexpr
/usr/share/licenses/ghc-regexpr/LICENSE

References

Summary

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