How To Install apache-commons-collections4 on Fedora 36

In this tutorial we learn how to install apache-commons-collections4 in Fedora 36. apache-commons-collections4 is Extension of the Java Collections Framework

Introduction

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

What is apache-commons-collections4

Commons-Collections seek to build upon the JDK classes by providing new interfaces, implementations and utilities.

We can use yum or dnf to install apache-commons-collections4 on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install apache-commons-collections4.

Install apache-commons-collections4 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-collections4 using dnf by running the following command:

sudo dnf -y install apache-commons-collections4

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

sudo yum -y install apache-commons-collections4

How To Uninstall apache-commons-collections4 on Fedora 36

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

sudo dnf remove apache-commons-collections4

apache-commons-collections4 Package Contents on Fedora 36

/usr/share/doc/apache-commons-collections4
/usr/share/doc/apache-commons-collections4/RELEASE-NOTES.txt
/usr/share/java/apache-commons-collections4.jar
/usr/share/java/commons-collections4.jar
/usr/share/licenses/apache-commons-collections4
/usr/share/licenses/apache-commons-collections4/LICENSE.txt
/usr/share/licenses/apache-commons-collections4/NOTICE.txt
/usr/share/maven-metadata/apache-commons-collections4.xml
/usr/share/maven-poms/apache-commons-collections4.pom
/usr/share/maven-poms/commons-collections4.pom

References

Summary

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