How To Install jflex.noarch on Amazon Linux 2

In this tutorial we learn how to install jflex.noarch in Amazon Linux 2. jflex.noarch is Fast Scanner Generator

Introduction

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

What is jflex.noarch

JFlex is a lexical analyzer generator (also known as scanner generator) for Java, written in Java. It is also a rewrite of the very useful tool JLex which was developed by Elliot Berk at Princeton University. As Vern Paxson states for his C/C++ tool flex work together with the LALR parser generator CUP by Scott Hudson, and the Java modification of Berkeley Yacc BYacc/J by Bob Jamison. It can also be used together with other parser generators like ANTLR or as a standalone tool.

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

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

sudo yum -y install jflex.noarch

How To Uninstall jflex.noarch on Amazon Linux 2

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

sudo yum remove jflex.noarch

jflex.noarch Package Contents on Amazon Linux 2

/usr/bin/jflex
/usr/share/doc/jflex-1.4.3
/usr/share/doc/jflex-1.4.3/COPYRIGHT
/usr/share/doc/jflex-1.4.3/doc
/usr/share/doc/jflex-1.4.3/doc/COPYRIGHT
/usr/share/doc/jflex-1.4.3/doc/crossref.png
/usr/share/doc/jflex-1.4.3/doc/footnote.png
/usr/share/doc/jflex-1.4.3/doc/jflex_anttask.html
/usr/share/doc/jflex-1.4.3/doc/logo.png
/usr/share/doc/jflex-1.4.3/doc/manual.css
/usr/share/doc/jflex-1.4.3/doc/manual.html
/usr/share/doc/jflex-1.4.3/doc/manual.pdf
/usr/share/doc/jflex-1.4.3/doc/manual.ps.gz
/usr/share/emacs/site-lisp/jflex
/usr/share/emacs/site-lisp/jflex/jflex-mode.el
/usr/share/emacs/site-lisp/jflex/jflex-mode.elc
/usr/share/java/JFlex.jar
/usr/share/java/jflex.jar
/usr/share/man/man1/jflex.1.gz
/usr/share/maven-fragments/jflex
/usr/share/maven-poms/JPP-jflex.pom

References

Summary

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