How To Install ghc-lukko on Fedora 36

In this tutorial we learn how to install ghc-lukko in Fedora 36. ghc-lukko is File locking

Introduction

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

What is ghc-lukko

This package provides access to platform dependent file locking APIs * on Linux (“Lukko.OFD”) * BSD-style ‘flock(2)’ locks on UNIX platforms (“Lukko.FLock”) * Windows locking via (“Lukko.Windows”) * No-op locking, which throws exceptions (“Lukko.NoOp”) * “Lukko” module exports the best option for the target platform with uniform API. There are alternative file locking packages * “GHC.IO.Handle.Lock” in ‘base >= 4.10’ is good enough for most use cases. However, uses only ‘Handle’s so these locks cannot be used for intra-process locking. (You should use e.g. ‘MVar’ in addition). * <https locking. /Lukko/ means lock in Finnish. Submodules “Lukko.OFD”, “Lukko.Windows” etc are available based on following conditions. ’ if os(windows) cpp-options elif (os(linux) && flag(ofd-locking)) cpp-options cpp-options elif !(os(solaris) || os(aix)) cpp-options “Lukko.FLock” is available on not (Windows or Solaris or AIX). “Lukko.NoOp” is always available.

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

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

sudo dnf -y install ghc-lukko

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

sudo yum -y install ghc-lukko

How To Uninstall ghc-lukko on Fedora 36

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

sudo dnf remove ghc-lukko

ghc-lukko Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/6b94e249d3b2718a9af14cfaf9c6271c1a8ba3
/usr/lib64/libHSlukko-0.1.1.3-HQyCveKDYEhBFLUb2zbWPa-ghc8.10.5.so
/usr/share/licenses/ghc-lukko
/usr/share/licenses/ghc-lukko/LICENSE
/usr/share/licenses/ghc-lukko/LICENSE.GPLv2
/usr/share/licenses/ghc-lukko/LICENSE.GPLv3

References

Summary

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