How To Install ghc-rpm-nvr on Fedora 36

In this tutorial we learn how to install ghc-rpm-nvr in Fedora 36. ghc-rpm-nvr is RPM package name-version-release data types

Introduction

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

What is ghc-rpm-nvr

The library provides types related to RPM package name-version-releases. There are modules for reading and showing * NV (name-version) * NVR (name-version-release) * NVRA (name-version-release.arch) * VerRel (version-release) * VerCmp for comparing RPM versions or releases (used to order VerRel).

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

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

sudo dnf -y install ghc-rpm-nvr

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

sudo yum -y install ghc-rpm-nvr

How To Uninstall ghc-rpm-nvr on Fedora 36

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

sudo dnf remove ghc-rpm-nvr

ghc-rpm-nvr Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/3a5f14096310807148c865c144693a667f940f
/usr/lib64/libHSrpm-nvr-0.1.1-Jcpv3q9m969CnM3EmqnpRC-ghc8.10.5.so
/usr/share/licenses/ghc-rpm-nvr
/usr/share/licenses/ghc-rpm-nvr/LICENSE

References

Summary

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