How To Install ghc-hledger-lib on Fedora 36

In this tutorial we learn how to install ghc-hledger-lib in Fedora 36. ghc-hledger-lib is A reusable library providing the core functionality of hledger

Introduction

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

What is ghc-hledger-lib

A reusable library containing hledger’s core functionality. This is used by most hledger* packages so that they support the same common file formats, command line options, reports etc. hledger is a robust, cross-platform set of tools for tracking money, time, or any other commodity, using double-entry accounting and a simple, editable file format, with command-line, terminal and web interfaces. It is a Haskell rewrite of Ledger, and one of the leading implementations of Plain Text Accounting. Read more at

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

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

sudo dnf -y install ghc-hledger-lib

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

sudo yum -y install ghc-hledger-lib

How To Uninstall ghc-hledger-lib on Fedora 36

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

sudo dnf remove ghc-hledger-lib

ghc-hledger-lib Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/f09135c1068438609db8708f8ba339ca5a178a
/usr/lib64/libHShledger-lib-1.21-906l1oSMgzZ3slzN3doBty-ghc8.10.5.so
/usr/share/licenses/ghc-hledger-lib
/usr/share/licenses/ghc-hledger-lib/LICENSE

References

Summary

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