How To Install hlint on Fedora 36

In this tutorial we learn how to install hlint in Fedora 36. hlint is Haskell source code suggestions

Introduction

In this tutorial we learn how to install hlint on Fedora 36.

What is hlint

HLint gives suggestions on how to improve your source code.

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

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

sudo dnf -y install hlint

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

sudo yum -y install hlint

How To Uninstall hlint on Fedora 36

To uninstall only the hlint package we can use the following command:

sudo dnf remove hlint

hlint Package Contents on Fedora 36

/usr/bin/hlint
/usr/lib/.build-id
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/605d3bc16faa900557b0eac8f747e740bdcb79
/usr/share/man/man1/hlint.1.gz

References

Summary

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