How To Install ghc-spdx on Fedora 36

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

Introduction

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

What is ghc-spdx

This package provides the Haskell spdx library.

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

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

sudo dnf -y install ghc-spdx

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

sudo yum -y install ghc-spdx

How To Uninstall ghc-spdx on Fedora 36

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

sudo dnf remove ghc-spdx

ghc-spdx Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/251b1a9209392770f31cc04f33776014d99cb9
/usr/lib64/libHSspdx-1.0.0.2-1MvojAXHtJR4UYFmCMvYZj-ghc8.10.5.so
/usr/share/licenses/ghc-spdx
/usr/share/licenses/ghc-spdx/LICENSE

References

Summary

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