How To Install ghc-stringsearch on Fedora 36

In this tutorial we learn how to install ghc-stringsearch in Fedora 36. ghc-stringsearch is Fast searching, splitting and replacing of ByteStrings

Introduction

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

What is ghc-stringsearch

This package provides several functions to quickly search for substrings in strict or lazy ByteStrings. It also provides functions for breaking or splitting on substrings and replacing all occurrences of a substring (the first in case of overlaps) with another.

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

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

sudo dnf -y install ghc-stringsearch

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

sudo yum -y install ghc-stringsearch

How To Uninstall ghc-stringsearch on Fedora 36

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

sudo dnf remove ghc-stringsearch

ghc-stringsearch Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/31
/usr/lib/.build-id/31/b8c87425aee290b136fe02f0fe2c2e47989bc7
/usr/lib64/libHSstringsearch-0.3.6.6-Lle2SO8TbtTA21wjkNX2yK-ghc8.10.5.so
/usr/share/licenses/ghc-stringsearch
/usr/share/licenses/ghc-stringsearch/LICENCE

References

Summary

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