How To Install rhino.noarch on Amazon Linux 2

In this tutorial we learn how to install rhino.noarch in Amazon Linux 2. rhino.noarch is JavaScript for Java

Introduction

In this tutorial we learn how to install rhino.noarch on Amazon Linux 2.

What is rhino.noarch

Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users.

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

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

sudo yum -y install rhino.noarch

How To Uninstall rhino.noarch on Amazon Linux 2

To uninstall only the rhino.noarch package we can use the following command:

sudo yum remove rhino.noarch

rhino.noarch Package Contents on Amazon Linux 2

/usr/bin/rhino
/usr/share/java/js.jar
/usr/share/java/rhino-examples.jar
/usr/share/java/rhino.jar
/usr/share/man/man1/rhino.1.gz
/usr/share/maven-fragments/rhino
/usr/share/maven-poms/JPP-rhino.pom

References

Summary

In this tutorial we learn how to install rhino.noarch on Amazon Linux 2 using yum.