How To Install ghc-lrucache on Fedora 36

In this tutorial we learn how to install ghc-lrucache in Fedora 36. ghc-lrucache is A simple, pure LRU cache

Introduction

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

What is ghc-lrucache

This package contains a simple, pure LRU cache, implemented in terms of “Data.Map”. It also contains a mutable IO wrapper providing atomic updates to an LRU cache.

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

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

sudo dnf -y install ghc-lrucache

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

sudo yum -y install ghc-lrucache

How To Uninstall ghc-lrucache on Fedora 36

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

sudo dnf remove ghc-lrucache

ghc-lrucache Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/39100eebdf939cc8cab9d6c5454c4695a3eef2
/usr/lib64/libHSlrucache-1.2.0.1-9DGsh2uijlt2sfBUPpaIex-ghc8.10.5.so
/usr/share/licenses/ghc-lrucache
/usr/share/licenses/ghc-lrucache/LICENSE

References

Summary

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