How To Install groovy.noarch on Amazon Linux 2

In this tutorial we learn how to install groovy.noarch in Amazon Linux 2. groovy.noarch is Dynamic language for the Java Platform

Introduction

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

What is groovy.noarch

Groovy is an agile and dynamic language for the Java Virtual Machine, built upon Java with features inspired by languages like Python, Ruby and Smalltalk. It seamlessly integrates with all existing Java objects and libraries and compiles straight to Java bytecode so you can use it anywhere you can use Java.

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

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

sudo yum -y install groovy.noarch

How To Uninstall groovy.noarch on Amazon Linux 2

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

sudo yum remove groovy.noarch

groovy.noarch Package Contents on Amazon Linux 2

/etc/groovy-starter.conf
/usr/bin/grape
/usr/bin/groovy
/usr/bin/groovyConsole
/usr/bin/groovyc
/usr/bin/groovysh
/usr/bin/java2groovy
/usr/share/doc/groovy-1.8.9
/usr/share/doc/groovy-1.8.9/LICENSE-2.0.txt
/usr/share/doc/groovy-1.8.9/LICENSE.txt
/usr/share/doc/groovy-1.8.9/NOTICE.txt
/usr/share/doc/groovy-1.8.9/README.md
/usr/share/doc/groovy-1.8.9/cpl-v10.txt
/usr/share/doc/groovy-1.8.9/epl-v10.txt
/usr/share/java/groovy.jar
/usr/share/maven-fragments/groovy
/usr/share/maven-poms/JPP-groovy.pom

References

Summary

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