How To Install mozjs17.x86_64 on Amazon Linux 2

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

Introduction

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

What is mozjs17.x86_64

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

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

sudo yum -y install mozjs17.x86_64

How To Uninstall mozjs17.x86_64 on Amazon Linux 2

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

sudo yum remove mozjs17.x86_64

mozjs17.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/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.x86_64 on Amazon Linux 2 using yum.