How To Install ghc-regex-pcre on Fedora 36

In this tutorial we learn how to install ghc-regex-pcre in Fedora 36. ghc-regex-pcre is PCRE Backend for “Text.Regex” (regex-base)

Introduction

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

What is ghc-regex-pcre

This package provides a <http <//hackage.haskell.org/package/regex-base regex-base> API. See also <https

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

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

sudo dnf -y install ghc-regex-pcre

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

sudo yum -y install ghc-regex-pcre

How To Uninstall ghc-regex-pcre on Fedora 36

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

sudo dnf remove ghc-regex-pcre

ghc-regex-pcre Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/036f03159a6454e671904f7cbfa554a4898065
/usr/lib64/libHSregex-pcre-0.95.0.0-IRgTpqryQ3DLvKP9pgVgkA-ghc8.10.5.so
/usr/share/licenses/ghc-regex-pcre
/usr/share/licenses/ghc-regex-pcre/LICENSE

References

Summary

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