How To Install ghc-persistent on Fedora 36

In this tutorial we learn how to install ghc-persistent in Fedora 36. ghc-persistent is Type-safe, multi-backend data serialization

Introduction

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

What is ghc-persistent

Persistent allows us to choose among existing databases that are highly tuned for different data storage use cases, interoperate with other programming languages, and to use a safe and productive query interface, while still keeping the type safety of Haskell datatypes. Persistent follows the guiding principles of type safety and concise, declarative syntax. Other nice features are database-independence, convenient data modeling, and automatic database migrations.

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

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

sudo dnf -y install ghc-persistent

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

sudo yum -y install ghc-persistent

How To Uninstall ghc-persistent on Fedora 36

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

sudo dnf remove ghc-persistent

ghc-persistent Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/84
/usr/lib/.build-id/84/29f204dff80ea03b649833e3024bc45fb5195a
/usr/lib64/libHSpersistent-2.13.1.1-96PbtZwhoeV3dYqGHAJ08j-ghc8.10.5.so
/usr/share/licenses/ghc-persistent
/usr/share/licenses/ghc-persistent/LICENSE

References

Summary

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