How To Install ghc-hadolint on Fedora 36

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

Introduction

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

What is ghc-hadolint

This package provides the Haskell hadolint shared library.

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

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

sudo dnf -y install ghc-hadolint

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

sudo yum -y install ghc-hadolint

How To Uninstall ghc-hadolint on Fedora 36

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

sudo dnf remove ghc-hadolint

ghc-hadolint Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/2ffe30d6910e42006675d4a90376e945d9a106
/usr/lib64/libHShadolint-2.7.0-FQi8MSLm3ry5v4BOhPHnqo-ghc8.10.5.so
/usr/share/licenses/ghc-hadolint
/usr/share/licenses/ghc-hadolint/LICENSE

References

Summary

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