How To Install ghc-hjsmin on Fedora 36

In this tutorial we learn how to install ghc-hjsmin in Fedora 36. ghc-hjsmin is Haskell implementation of a javascript minifier

Introduction

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

What is ghc-hjsmin

Reduces size of javascript files by stripping out extraneous whitespace and other syntactic elements, without changing the semantics.

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

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

sudo dnf -y install ghc-hjsmin

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

sudo yum -y install ghc-hjsmin

How To Uninstall ghc-hjsmin on Fedora 36

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

sudo dnf remove ghc-hjsmin

ghc-hjsmin Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/c0add9d97c11bcc3669d57bb3998d79c80907c
/usr/lib64/libHShjsmin-0.2.0.4-GHTzEYECCgL35IWrQKlD30-ghc8.10.5.so
/usr/share/licenses/ghc-hjsmin
/usr/share/licenses/ghc-hjsmin/LICENSE

References

Summary

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