How To Install apache-commons-logging.noarch on Amazon Linux 2

In this tutorial we learn how to install apache-commons-logging.noarch in Amazon Linux 2. apache-commons-logging.noarch is Apache Commons Logging

Introduction

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

What is apache-commons-logging.noarch

The commons-logging package provides a simple, component oriented interface (org.apache.commons.logging.Log) together with wrappers for logging systems. The user can choose at runtime which system they want to use. In addition, a small number of basic implementations are provided to allow users to use the package standalone. commons-logging was heavily influenced by Avalon’s Logkit and Log4J. The commons-logging abstraction is meant to minimize the differences between the two, and to allow a developer to not tie himself to a particular logging implementation.

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

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

sudo yum -y install apache-commons-logging.noarch

How To Uninstall apache-commons-logging.noarch on Amazon Linux 2

To uninstall only the apache-commons-logging.noarch package we can use the following command:

sudo yum remove apache-commons-logging.noarch

apache-commons-logging.noarch Package Contents on Amazon Linux 2

/usr/share/doc/apache-commons-logging-1.1.2
/usr/share/doc/apache-commons-logging-1.1.2/LICENSE.txt
/usr/share/doc/apache-commons-logging-1.1.2/NOTICE.txt
/usr/share/doc/apache-commons-logging-1.1.2/PROPOSAL.html
/usr/share/doc/apache-commons-logging-1.1.2/RELEASE-NOTES.txt
/usr/share/java/apache-commons-logging-adapters.jar
/usr/share/java/apache-commons-logging-api.jar
/usr/share/java/apache-commons-logging.jar
/usr/share/java/commons-logging-adapters.jar
/usr/share/java/commons-logging-api.jar
/usr/share/java/commons-logging.jar
/usr/share/maven-effective-poms/JPP-apache-commons-logging.pom
/usr/share/maven-effective-poms/JPP-commons-logging.pom
/usr/share/maven-fragments/apache-commons-logging
/usr/share/maven-fragments/apache-commons-logging.xml
/usr/share/maven-poms/JPP-apache-commons-logging.pom
/usr/share/maven-poms/JPP-commons-logging-api.pom
/usr/share/maven-poms/JPP-commons-logging.pom

References

Summary

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