How To Install mozjs17.i686 on Amazon Linux 2

In this tutorial we learn how to install mozjs17.i686 in Amazon Linux 2. mozjs17.i686 is JavaScript interpreter and libraries

Introduction

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

What is mozjs17.i686

JavaScript is the Netscape-developed object scripting language used in millions of web pages and server applications worldwide. Netscape’s JavaScript is a superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, with only mild differences from the published standard.

We can use yum to install mozjs17.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install mozjs17.i686.

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

sudo yum -y install mozjs17.i686

How To Uninstall mozjs17.i686 on Amazon Linux 2

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

sudo yum remove mozjs17.i686

mozjs17.i686 Package Contents on Amazon Linux 2

/usr/lib/libmozjs-17.0.so
/usr/share/doc/mozjs17-17.0.0
/usr/share/doc/mozjs17-17.0.0/LICENSE
/usr/share/doc/mozjs17-17.0.0/README

References

Summary

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