How To Install ant-antunit on Fedora 36

In this tutorial we learn how to install ant-antunit in Fedora 36. ant-antunit is Unit Test Framework for Ant Tasks

Introduction

In this tutorial we learn how to install ant-antunit on Fedora 36.

What is ant-antunit

This library contains tasks that enables Ant task developers to test their tasks with Ant and without JUnit. It contains a few assertion tasks and an antunit task that runs build files instead of test classes and is modelled after the JUnit task.

We can use yum or dnf to install ant-antunit on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ant-antunit.

Install ant-antunit on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install ant-antunit using dnf by running the following command:

sudo dnf -y install ant-antunit

Install ant-antunit on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ant-antunit using yum by running the following command:

sudo yum -y install ant-antunit

How To Uninstall ant-antunit on Fedora 36

To uninstall only the ant-antunit package we can use the following command:

sudo dnf remove ant-antunit

ant-antunit Package Contents on Fedora 36

/usr/share/java/ant-antunit
/usr/share/java/ant-antunit/ant-antunit.jar
/usr/share/licenses/ant-antunit
/usr/share/licenses/ant-antunit/LICENSE
/usr/share/licenses/ant-antunit/NOTICE
/usr/share/maven-metadata/ant-antunit.xml
/usr/share/maven-poms/ant-antunit
/usr/share/maven-poms/ant-antunit/ant-antunit.pom

References

Summary

In this tutorial we learn how to install ant-antunit on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).