How To Install mozjs24.x86_64 on Amazon Linux 2

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

Introduction

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

What is mozjs24.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 super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language, with only mild differences from the published standard.

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

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

sudo yum -y install mozjs24.x86_64

How To Uninstall mozjs24.x86_64 on Amazon Linux 2

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

sudo yum remove mozjs24.x86_64

mozjs24.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libmozjs-24.so
/usr/share/doc/mozjs24-24.2.0
/usr/share/doc/mozjs24-24.2.0/LICENSE
/usr/share/doc/mozjs24-24.2.0/README

References

Summary

In this tutorial we learn how to install mozjs24.x86_64 on Amazon Linux 2 using yum.