How To Install apache-commons-collections.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install apache-commons-collections.noarch on Amazon Linux 2.
What is apache-commons-collections.noarch
The introduction of the Collections API by Sun in JDK 1.2 has been a boon to quick and effective Java programming. Ready access to powerful data structures has accelerated development by reducing the need for custom container classes around each core object. Most Java2 APIs are significantly easier to use because of the Collections API. However, there are certain holes left unfilled by Sun’s implementations, and the Jakarta-Commons Collections Component strives to fulfill them. Among the features of this package are - special-purpose implementations of Lists and Maps for fast access - adapter classes from Java1-style containers (arrays, enumerations) to Java2-style collections. - methods to test or create typical set-theory properties of collections such as union, intersection, and closure.
We can use yum to install apache-commons-collections.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-collections.noarch.
Install apache-commons-collections.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-collections.noarch using yum by running the following command:
sudo yum -y install apache-commons-collections.noarch
How To Uninstall apache-commons-collections.noarch on Amazon Linux 2
To uninstall only the apache-commons-collections.noarch package we can use the following command:
sudo yum remove apache-commons-collections.noarch
apache-commons-collections.noarch Package Contents on Amazon Linux 2
/usr/share/doc/apache-commons-collections-3.2.1
/usr/share/doc/apache-commons-collections-3.2.1/LICENSE.txt
/usr/share/doc/apache-commons-collections-3.2.1/NOTICE.txt
/usr/share/doc/apache-commons-collections-3.2.1/PROPOSAL.html
/usr/share/doc/apache-commons-collections-3.2.1/README.txt
/usr/share/doc/apache-commons-collections-3.2.1/RELEASE-NOTES.html
/usr/share/java/apache-commons-collections.jar
/usr/share/java/commons-collections.jar
/usr/share/maven-effective-poms/JPP-apache-commons-collections.pom
/usr/share/maven-effective-poms/JPP-commons-collections.pom
/usr/share/maven-fragments/apache-commons-collections.xml
/usr/share/maven-poms/JPP-apache-commons-collections.pom
/usr/share/maven-poms/JPP-commons-collections.pom
References
Summary
In this tutorial we learn how to install apache-commons-collections.noarch on Amazon Linux 2 using yum.