How To Install log4j.noarch on Amazon Linux 2
In this tutorial we learn how to install log4j.noarch in Amazon Linux 2. log4j.noarch is Java logging package
Introduction
In this tutorial we learn how to install log4j.noarch on Amazon Linux 2.
What is log4j.noarch
Log4j is a tool to help the programmer output log statements to a variety of output targets.
We can use yum to install log4j.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install log4j.noarch.
Install log4j.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 log4j.noarch using yum by running the following command:
sudo yum -y install log4j.noarch
How To Uninstall log4j.noarch on Amazon Linux 2
To uninstall only the log4j.noarch package we can use the following command:
sudo yum remove log4j.noarch
log4j.noarch Package Contents on Amazon Linux 2
/usr/bin/chainsaw
/usr/bin/logfactor5
/usr/share/doc/log4j-1.2.17
/usr/share/doc/log4j-1.2.17/LICENSE
/usr/share/doc/log4j-1.2.17/NOTICE
/usr/share/java/log4j.jar
/usr/share/man/man1/chainsaw.1.gz
/usr/share/man/man1/logfactor5.1.gz
/usr/share/maven-effective-poms/JPP-log4j.pom
/usr/share/maven-fragments/log4j.xml
/usr/share/maven-poms/JPP-log4j.pom
/usr/share/sgml/log4j
/usr/share/sgml/log4j/catalog
/usr/share/sgml/log4j/log4j.dtd
References
Summary
In this tutorial we learn how to install log4j.noarch on Amazon Linux 2 using yum.