How To Install ghc-optics-core on Fedora 36

In this tutorial we learn how to install ghc-optics-core in Fedora 36. ghc-optics-core is Haskell optics-core library

Introduction

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

What is ghc-optics-core

This package provides the Haskell optics-core library.

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

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

sudo dnf -y install ghc-optics-core

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

sudo yum -y install ghc-optics-core

How To Uninstall ghc-optics-core on Fedora 36

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

sudo dnf remove ghc-optics-core

ghc-optics-core Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/63
/usr/lib/.build-id/63/e47777bc587377eb2812df42d710193d3bd6ea
/usr/lib64/libHSoptics-core-0.3.0.1-DFAEWf7nmPbDKSYMwKdLED-ghc8.10.5.so
/usr/share/licenses/ghc-optics-core
/usr/share/licenses/ghc-optics-core/LICENSE

References

Summary

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