How To Install javacc.noarch on Amazon Linux 2

In this tutorial we learn how to install javacc.noarch in Amazon Linux 2. javacc.noarch is A parser/scanner generator for java

Introduction

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

What is javacc.noarch

Java Compiler Compiler (JavaCC) is the most popular parser generator for use with Java applications. A parser generator is a tool that reads a grammar specification and converts it to a Java program that can recognize matches to the grammar. In addition to the parser generator itself, JavaCC provides other standard capabilities related to parser generation such as tree building (via a tool called JJTree included with JavaCC), actions, debugging, etc.

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

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

sudo yum -y install javacc.noarch

How To Uninstall javacc.noarch on Amazon Linux 2

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

sudo yum remove javacc.noarch

javacc.noarch Package Contents on Amazon Linux 2

/usr/bin/javacc.sh
/usr/bin/jjdoc
/usr/bin/jjtree
/usr/share/doc/javacc-5.0
/usr/share/doc/javacc-5.0/LICENSE
/usr/share/doc/javacc-5.0/README
/usr/share/java/javacc.jar
/usr/share/maven-fragments/javacc
/usr/share/maven-poms/JPP-javacc.pom

References

Summary

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