How To Install apache-commons-collections on Fedora 36

In this tutorial we learn how to install apache-commons-collections in Fedora 36. apache-commons-collections is Provides new interfaces, implementations and utilities for Java Collections

Introduction

In this tutorial we learn how to install apache-commons-collections on Fedora 36.

What is apache-commons-collections

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 or dnf to install apache-commons-collections on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install apache-commons-collections.

Install apache-commons-collections on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install apache-commons-collections using dnf by running the following command:

sudo dnf -y install apache-commons-collections

Install apache-commons-collections on Fedora 36 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 using yum by running the following command:

sudo yum -y install apache-commons-collections

How To Uninstall apache-commons-collections on Fedora 36

To uninstall only the apache-commons-collections package we can use the following command:

sudo dnf remove apache-commons-collections

apache-commons-collections Package Contents on Fedora 36

/usr/share/doc/apache-commons-collections
/usr/share/doc/apache-commons-collections/PROPOSAL.html
/usr/share/doc/apache-commons-collections/README.txt
/usr/share/java/apache-commons-collections.jar
/usr/share/java/commons-collections.jar
/usr/share/licenses/apache-commons-collections
/usr/share/licenses/apache-commons-collections/LICENSE.txt
/usr/share/licenses/apache-commons-collections/NOTICE.txt
/usr/share/maven-metadata/apache-commons-collections.xml
/usr/share/maven-poms/apache-commons-collections.pom
/usr/share/maven-poms/commons-collections.pom

References

Summary

In this tutorial we learn how to install apache-commons-collections on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).