How To Install ant-swing.noarch on Amazon Linux 2

In this tutorial we learn how to install ant-swing.noarch in Amazon Linux 2. ant-swing.noarch is Optional swing tasks for ant

Introduction

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

What is ant-swing.noarch

Optional swing tasks for ant.

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

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

sudo yum -y install ant-swing.noarch

How To Uninstall ant-swing.noarch on Amazon Linux 2

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

sudo yum remove ant-swing.noarch

ant-swing.noarch Package Contents on Amazon Linux 2

/etc/ant.d/swing
/usr/share/ant/lib/ant-swing.jar
/usr/share/java/ant/ant-swing.jar
/usr/share/maven-fragments/ant-swing
/usr/share/maven-poms/JPP.ant-ant-swing.pom

References

Summary

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