How To Install ant-antunit.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install ant-antunit.noarch on Amazon Linux 2.
What is ant-antunit.noarch
The
task drives the tests much like does for JUnit tests. When called on a build file, the task will start a new Ant project for that build file and scan for targets with names that start with “test”. For each such target it then will 1. Execute the target named setUp, if there is one. 2. Execute the target itself - if this target depends on other targets the normal Ant rules apply and the dependent targets are executed first. 3. Execute the target names tearDown, if there is one.
We can use yum to install ant-antunit.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ant-antunit.noarch.
Install ant-antunit.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-antunit.noarch using yum by running the following command:
sudo yum -y install ant-antunit.noarch
How To Uninstall ant-antunit.noarch on Amazon Linux 2
To uninstall only the ant-antunit.noarch package we can use the following command:
sudo yum remove ant-antunit.noarch
ant-antunit.noarch Package Contents on Amazon Linux 2
/etc/ant-antunit.d/antunit
/usr/share/doc/ant-antunit-1.2
/usr/share/doc/ant-antunit-1.2/CONTRIBUTORS
/usr/share/doc/ant-antunit-1.2/LICENSE
/usr/share/doc/ant-antunit-1.2/NOTICE
/usr/share/doc/ant-antunit-1.2/README
/usr/share/doc/ant-antunit-1.2/README.html
/usr/share/doc/ant-antunit-1.2/WHATSNEW
/usr/share/java/ant-antunit.jar
/usr/share/maven-fragments/ant-antunit
/usr/share/maven-poms/JPP-ant-antunit.pom
References
Summary
In this tutorial we learn how to install ant-antunit.noarch on Amazon Linux 2 using yum.