How To Install bsh.noarch on Amazon Linux 2

In this tutorial we learn how to install bsh.noarch in Amazon Linux 2. bsh.noarch is Lightweight Scripting for Java

Introduction

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

What is bsh.noarch

BeanShell is a small, free, embeddable, Java source interpreter with object scripting language features, written in Java. BeanShell executes standard Java statements and expressions, in addition to obvious scripting commands and syntax. BeanShell supports scripted objects as simple method closures like those in Perl and JavaScript(tm). You can use BeanShell interactively for Java experimentation and debugging or as a simple scripting engine for your applications. In short interpreted Java, plus some useful stuff. Another way to describe it is to say that in many ways BeanShell is to Java as Tcl/Tk is to C Java applications to execute Java code dynamically at run-time or to provide scripting extensibility for your applications. Alternatively, you can call your Java applications and objects from BeanShell; working with Java objects and APIs dynamically. Since BeanShell is written in Java and runs in the same space as your application, you can freely pass references to “real live” objects into scripts and return them as results.

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

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

sudo yum -y install bsh.noarch

How To Uninstall bsh.noarch on Amazon Linux 2

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

sudo yum remove bsh.noarch

bsh.noarch Package Contents on Amazon Linux 2

/usr/share/bsh
/usr/share/bsh/webapps
/usr/share/bsh/webapps/bshservlet-wbsh.war
/usr/share/bsh/webapps/bshservlet.war
/usr/share/doc/bsh-1.3.0
/usr/share/doc/bsh-1.3.0/Changes.html
/usr/share/doc/bsh-1.3.0/License.txt
/usr/share/doc/bsh-1.3.0/README.txt
/usr/share/java/bsh-bsf.jar
/usr/share/java/bsh-classpath.jar
/usr/share/java/bsh-commands.jar
/usr/share/java/bsh-core.jar
/usr/share/java/bsh-reflect.jar
/usr/share/java/bsh-util.jar
/usr/share/java/bsh.jar
/usr/share/maven-fragments/bsh
/usr/share/maven-poms/JPP-bsh-bsf.pom
/usr/share/maven-poms/JPP-bsh.pom

References

Summary

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