How To Install mozjs52.i686 on Amazon Linux 2

In this tutorial we learn how to install mozjs52.i686 in Amazon Linux 2. mozjs52.i686 is SpiderMonkey JavaScript library

Introduction

In this tutorial we learn how to install mozjs52.i686 on Amazon Linux 2.

What is mozjs52.i686

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 to install mozjs52.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mozjs52.i686.

Install mozjs52.i686 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install mozjs52.i686 using yum by running the following command:

sudo yum -y install mozjs52.i686

How To Uninstall mozjs52.i686 on Amazon Linux 2

To uninstall only the mozjs52.i686 package we can use the following command:

sudo yum remove mozjs52.i686

mozjs52.i686 Package Contents on Amazon Linux 2

/usr/lib/libmozjs-52.so.0
/usr/lib/libmozjs-52.so.0.0.0
/usr/share/doc/mozjs52-52.9.0
/usr/share/doc/mozjs52-52.9.0/README.html

References

Summary

In this tutorial we learn how to install mozjs52.i686 on Amazon Linux 2 using yum.