How To Install libcommons-collections3-java on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
3 minutes • 508 words
Introduction
In this tutorial we learn how to install libcommons-collections3-java
on Ubuntu.
What is libcommons-collections3-java
libcommons-collections3-java is:
The Java Collections Framework was a major addition in JDK 1.2. It added many powerful data structures that accelerate development of most significant Java applications. Since that time it has become the recognised standard for collection handling in Java.
Commons Collections seek to build upon the JDK classes by providing new interfaces, implementations and utilities. There are many features, including:
- Bag interface for collections that have a number of copies of each object
- BidiMap interface for maps that can be looked up from value to key as well and key to value
- MapIterator interface to provide simple and quick iteration over maps
- Transforming decorators that alter each object as it is added to the collection
- Composite collections that make multiple collections look like one
- Ordered maps and sets that retain the order elements are added in, including an LRU based map
- Reference map that allows keys and/or values to be garbage collected under close control
- Many comparator implementations
- Many iterator implementations
- Adapter classes from array and enumerations to collections
- Utilities to test or create typical set-theory properties of collections such as union, intersection, and closure
There are three methods to install libcommons-collections3-java
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libcommons-collections3-java Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libcommons-collections3-java
using apt-get
by running the following command:
sudo apt-get -y install libcommons-collections3-java
Install libcommons-collections3-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libcommons-collections3-java
using apt
by running the following command:
sudo apt -y install libcommons-collections3-java
Install libcommons-collections3-java Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libcommons-collections3-java
using aptitude
by running the following command:
sudo aptitude -y install libcommons-collections3-java
How To Uninstall libcommons-collections3-java on Ubuntu
To uninstall only the libcommons-collections3-java
package we can use the following command:
sudo apt-get remove libcommons-collections3-java
Uninstall libcommons-collections3-java And Its Dependencies
To uninstall libcommons-collections3-java
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove libcommons-collections3-java
Remove libcommons-collections3-java Configurations and Data
To remove libcommons-collections3-java
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge libcommons-collections3-java
Remove libcommons-collections3-java configuration, data, and all of its dependencies
We can use the following command to remove libcommons-collections3-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcommons-collections3-java
Dependencies
libcommons-collections3-java have the following dependencies:
References
Summary
In this tutorial we learn how to install libcommons-collections3-java
package on Ubuntu using different package management tools: apt, apt-get and aptitude.