How To Install antlr-tool.noarch on Amazon Linux 2

In this tutorial we learn how to install antlr-tool.noarch in Amazon Linux 2. antlr-tool.noarch is ANother Tool for Language Recognition

Introduction

In this tutorial we learn how to install antlr-tool.noarch on Amazon Linux 2.

What is antlr-tool.noarch

ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing C++ or Java actions [You can use PCCTS 1.xx to generate C-based parsers].

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

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

sudo yum -y install antlr-tool.noarch

How To Uninstall antlr-tool.noarch on Amazon Linux 2

To uninstall only the antlr-tool.noarch package we can use the following command:

sudo yum remove antlr-tool.noarch

antlr-tool.noarch Package Contents on Amazon Linux 2

/usr/bin/antlr
/usr/share/doc/antlr-tool-2.7.7
/usr/share/doc/antlr-tool-2.7.7/LICENSE.txt
/usr/share/java/antlr-2.7.7.jar
/usr/share/java/antlr.jar
/usr/share/maven-fragments/antlr
/usr/share/maven-poms/JPP-antlr.pom

References

Summary

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