How To Install libcommons-collections4-java on Kali Linux
Introduction
In this tutorial we learn how to install libcommons-collections4-java on Kali Linux.
What is libcommons-collections4-java
libcommons-collections4-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 recognized 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-collections4-java on Kali Linux. 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-collections4-java Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libcommons-collections4-java using apt-get by running the following command:
sudo apt-get -y install libcommons-collections4-javaInstall libcommons-collections4-java Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libcommons-collections4-java using apt by running the following command:
sudo apt -y install libcommons-collections4-javaInstall libcommons-collections4-java Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install libcommons-collections4-java using aptitude by running the following command:
sudo aptitude -y install libcommons-collections4-javaHow To Uninstall libcommons-collections4-java on Kali Linux
To uninstall only the libcommons-collections4-java package we can use the following command:
sudo apt-get remove libcommons-collections4-javaUninstall libcommons-collections4-java And Its Dependencies
To uninstall libcommons-collections4-java and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libcommons-collections4-javaRemove libcommons-collections4-java Configurations and Data
To remove libcommons-collections4-java configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libcommons-collections4-javaRemove libcommons-collections4-java configuration, data, and all of its dependencies
We can use the following command to remove libcommons-collections4-java configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcommons-collections4-javaDependencies
libcommons-collections4-java have the following dependencies:
References
Summary
In this tutorial we learn how to install libcommons-collections4-java package on Kali Linux using different package management tools: apt, apt-get and aptitude.