How To Install js.x86_64 on Amazon Linux 2

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

Introduction

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

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

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

sudo yum -y install js.x86_64

How To Uninstall js.x86_64 on Amazon Linux 2

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

sudo yum remove js.x86_64

js.x86_64 Package Contents on Amazon Linux 2

/usr/bin/js
/usr/lib64/libjs.so.1
/usr/lib64/libmozjs.so.1
/usr/lib64/libmozjs185.so.1.0
/usr/lib64/libmozjs185.so.1.0.0
/usr/share/doc/js-1.8.5
/usr/share/doc/js-1.8.5/README.html

References

Summary

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