How To Install ant.noarch on Amazon Linux 2

In this tutorial we learn how to install ant.noarch in Amazon Linux 2. ant.noarch is Build tool for java

Introduction

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

What is ant.noarch

Ant is a platform-independent build tool for java. It’s used by apache jakarta and xml projects.

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

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

sudo yum -y install ant.noarch

How To Uninstall ant.noarch on Amazon Linux 2

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

sudo yum remove ant.noarch

ant.noarch Package Contents on Amazon Linux 2

/etc/ant.conf
/etc/ant.d
/usr/bin/ant
/usr/bin/antRun
/usr/bin/antRun.pl
/usr/bin/complete-ant-cmd.pl
/usr/bin/runant.pl
/usr/bin/runant.py
/usr/share/ant
/usr/share/ant/bin
/usr/share/ant/bin/ant
/usr/share/ant/bin/antRun
/usr/share/ant/etc
/usr/share/ant/etc/ant-update.xsl
/usr/share/ant/etc/changelog.xsl
/usr/share/ant/etc/common2master.xsl
/usr/share/ant/etc/coverage-frames.xsl
/usr/share/ant/etc/junit-frames-xalan1.xsl
/usr/share/ant/etc/log.xsl
/usr/share/ant/etc/mmetrics-frames.xsl
/usr/share/ant/etc/printFailingTests.xsl
/usr/share/ant/etc/tagdiff.xsl
/usr/share/ant/lib
/usr/share/ant/lib/ant-bootstrap.jar
/usr/share/ant/lib/ant-launcher.jar
/usr/share/ant/lib/ant.jar
/usr/share/doc/ant-1.9.2
/usr/share/doc/ant-1.9.2/KEYS
/usr/share/doc/ant-1.9.2/LICENSE
/usr/share/doc/ant-1.9.2/NOTICE
/usr/share/doc/ant-1.9.2/README
/usr/share/doc/ant-1.9.2/WHATSNEW
/usr/share/java/ant
/usr/share/java/ant-bootstrap.jar
/usr/share/java/ant-launcher.jar
/usr/share/java/ant.jar
/usr/share/java/ant/ant-bootstrap.jar
/usr/share/java/ant/ant-launcher.jar
/usr/share/java/ant/ant.jar
/usr/share/maven-fragments/ant
/usr/share/maven-fragments/ant-ant
/usr/share/maven-fragments/ant-launcher
/usr/share/maven-poms/JPP-ant-parent.pom
/usr/share/maven-poms/JPP.ant-ant-launcher.pom
/usr/share/maven-poms/JPP.ant-ant.pom

References

Summary

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