How To Install junit.noarch on Amazon Linux 2

In this tutorial we learn how to install junit.noarch in Amazon Linux 2. junit.noarch is Java regression test package

Introduction

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

What is junit.noarch

JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java. JUnit is Open Source Software, released under the Common Public License Version 1.0 and hosted on GitHub.

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

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

sudo yum -y install junit.noarch

How To Uninstall junit.noarch on Amazon Linux 2

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

sudo yum remove junit.noarch

junit.noarch Package Contents on Amazon Linux 2

/usr/share/doc/junit-4.11
/usr/share/doc/junit-4.11/CODING_STYLE
/usr/share/doc/junit-4.11/LICENSE
/usr/share/doc/junit-4.11/README
/usr/share/java/junit.jar
/usr/share/java/junit4.jar
/usr/share/maven-fragments/junit
/usr/share/maven-poms/JPP-junit.pom

References

Summary

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