How To Install apache-rat-core.noarch on Amazon Linux 2

In this tutorial we learn how to install apache-rat-core.noarch in Amazon Linux 2. apache-rat-core.noarch is Core functionality for apache-rat

Introduction

In this tutorial we learn how to install apache-rat-core.noarch on Amazon Linux 2.

What is apache-rat-core.noarch

The core functionality of RAT, shared by the Ant tasks, and the Maven plugin. It also includes a wrapper script “apache-rat” that should be the equivalent to running upstream’s “java -jar apache-rat.jar”.

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

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

sudo yum -y install apache-rat-core.noarch

How To Uninstall apache-rat-core.noarch on Amazon Linux 2

To uninstall only the apache-rat-core.noarch package we can use the following command:

sudo yum remove apache-rat-core.noarch

apache-rat-core.noarch Package Contents on Amazon Linux 2

/usr/bin/apache-rat
/usr/share/doc/apache-rat-core-0.8
/usr/share/doc/apache-rat-core-0.8/LICENSE
/usr/share/doc/apache-rat-core-0.8/NOTICE
/usr/share/java/apache-rat/apache-rat-core.jar
/usr/share/maven-effective-poms/JPP.apache-rat-apache-rat-core.pom
/usr/share/maven-fragments/apache-rat-apache-rat-core.xml
/usr/share/maven-poms/JPP.apache-rat-apache-rat-core.pom

References

Summary

In this tutorial we learn how to install apache-rat-core.noarch on Amazon Linux 2 using yum.