How To Install guava.noarch on Amazon Linux 2

In this tutorial we learn how to install guava.noarch in Amazon Linux 2. guava.noarch is Google Core Libraries for Java

Introduction

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

What is guava.noarch

Guava is a suite of core and expanded libraries that include utility classes, Google’s collections, io classes, and much much more. This project is a complete packaging of all the Guava libraries into a single jar. Individual portions of Guava can be used by downloading the appropriate module and its dependencies.

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

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

sudo yum -y install guava.noarch

How To Uninstall guava.noarch on Amazon Linux 2

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

sudo yum remove guava.noarch

guava.noarch Package Contents on Amazon Linux 2

/usr/share/doc/guava-13.0
/usr/share/doc/guava-13.0/AUTHORS
/usr/share/doc/guava-13.0/CONTRIBUTORS
/usr/share/doc/guava-13.0/COPYING
/usr/share/doc/guava-13.0/README
/usr/share/doc/guava-13.0/README.maven
/usr/share/java/guava.jar
/usr/share/maven-effective-poms/JPP-guava.pom
/usr/share/maven-fragments/guava.xml
/usr/share/maven-poms/JPP-guava.pom
/usr/share/maven-poms/JPP.guava-guava-parent.pom

References

Summary

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