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

In this tutorial we learn how to install antlr-python.noarch in Amazon Linux 2. antlr-python.noarch is Python runtime support for ANTLR-generated parsers

Introduction

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

What is antlr-python.noarch

Python runtime support for ANTLR-generated parsers

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

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

sudo yum -y install antlr-python.noarch

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

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

sudo yum remove antlr-python.noarch

antlr-python.noarch Package Contents on Amazon Linux 2

/usr/lib/python2.7/site-packages/antlr-2.7.5RC1-py2.7.egg-info
/usr/lib/python2.7/site-packages/antlr/__init__.py
/usr/lib/python2.7/site-packages/antlr/__init__.pyc
/usr/lib/python2.7/site-packages/antlr/__init__.pyo
/usr/lib/python2.7/site-packages/antlr/antlr.py
/usr/lib/python2.7/site-packages/antlr/antlr.pyc
/usr/lib/python2.7/site-packages/antlr/antlr.pyo

References

Summary

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