How To Install ghc-smallcheck on Fedora 36

In this tutorial we learn how to install ghc-smallcheck in Fedora 36. ghc-smallcheck is A property-based testing library

Introduction

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

What is ghc-smallcheck

SmallCheck is a testing library that allows to verify properties for all test cases up to some depth. The test cases are generated automatically by SmallCheck.

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

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

sudo dnf -y install ghc-smallcheck

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

sudo yum -y install ghc-smallcheck

How To Uninstall ghc-smallcheck on Fedora 36

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

sudo dnf remove ghc-smallcheck

ghc-smallcheck Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/c934de78c3e83840e873a2844326a556a51d7f
/usr/lib64/libHSsmallcheck-1.2.1-2TnsNLwbrKlA2w92Uugh8I-ghc8.10.5.so
/usr/share/licenses/ghc-smallcheck
/usr/share/licenses/ghc-smallcheck/LICENSE

References

Summary

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