How To Install ghc-language-javascript on Fedora 36

In this tutorial we learn how to install ghc-language-javascript in Fedora 36. ghc-language-javascript is Parser for JavaScript

Introduction

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

What is ghc-language-javascript

Parses Javascript into an Abstract Syntax Tree (AST). Initially intended as frontend to hjsmin.

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

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

sudo dnf -y install ghc-language-javascript

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

sudo yum -y install ghc-language-javascript

How To Uninstall ghc-language-javascript on Fedora 36

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

sudo dnf remove ghc-language-javascript

ghc-language-javascript Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/165ef3c994af7ab81a0be7a65e739b648ad8ab
/usr/lib64/libHSlanguage-javascript-0.7.1.0-K8wQHYKmBDd1Ff3c6rUljU-ghc8.10.5.so
/usr/share/licenses/ghc-language-javascript
/usr/share/licenses/ghc-language-javascript/LICENSE

References

Summary

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