How To Install mozjs91 on Fedora 36

In this tutorial we learn how to install mozjs91 in Fedora 36. mozjs91 is SpiderMonkey JavaScript library

Introduction

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

What is mozjs91

SpiderMonkey is the code-name for Mozilla Firefox’s C++ implementation of JavaScript. It is intended to be embedded in other applications that provide host environments for JavaScript.

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

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

sudo dnf -y install mozjs91

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

sudo yum -y install mozjs91

How To Uninstall mozjs91 on Fedora 36

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

sudo dnf remove mozjs91

mozjs91 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/9ad44f778abcf79f06668a901025c5ec9d6021
/usr/lib64/libmozjs-91.so.0
/usr/lib64/libmozjs-91.so.0.0.0
/usr/share/doc/mozjs91
/usr/share/doc/mozjs91/README.html
/usr/share/licenses/mozjs91
/usr/share/licenses/mozjs91/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/a5494c5fc1cca44337023fd41c5b8d15768d60
/usr/lib64/libmozjs-91.so.0
/usr/lib64/libmozjs-91.so.0.0.0
/usr/share/doc/mozjs91
/usr/share/doc/mozjs91/README.html
/usr/share/licenses/mozjs91
/usr/share/licenses/mozjs91/LICENSE

References

Summary

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