How To Install libcommons-lang-java on Debian 10
Introduction
In this tutorial we learn how to install libcommons-lang-java
on Debian 10.
What is libcommons-lang-java
libcommons-lang-java is:
The Lang Component contains a set of Java classes that provide helper methods for standard Java classes, especially those found in the java.lang package in the Sun JDK. The following classes are included:
- StringUtils - Helper for java.lang.String.
- CharSetUtils - Methods for dealing with CharSets, which are sets of characters such as [a-z] and [abcdez].
- RandomStringUtils - Helper for creating randomised Strings.
- NumberUtils - Helper for java.lang.Number and its subclasses.
- NumberRange - A range of numbers with an upper and lower bound.
- ObjectUtils - Helper for java.lang.Object.
- SerializationUtils - Helper for serializing Objects.
- SystemUtils - Utility class defining the Java system properties.
- NestedException package - A sub-package for the creation of nested exceptions.
- Enum package - A sub-package for the creation of enumerated types.
- Builder package - A sub-package for the creation of equals, hashCode, compareTo and toString methods.
There are three methods to install libcommons-lang-java
on Debian 10. 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-lang-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-lang-java
using apt-get
by running the following command:
sudo apt-get -y install libcommons-lang-java
Install libcommons-lang-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libcommons-lang-java
using apt
by running the following command:
sudo apt -y install libcommons-lang-java
Install libcommons-lang-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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libcommons-lang-java
using aptitude
by running the following command:
sudo aptitude -y install libcommons-lang-java
How To Uninstall libcommons-lang-java on Debian 10
To uninstall only the libcommons-lang-java
package we can use the following command:
sudo apt-get remove libcommons-lang-java
Uninstall libcommons-lang-java And Its Dependencies
To uninstall libcommons-lang-java
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libcommons-lang-java
Remove libcommons-lang-java Configurations and Data
To remove libcommons-lang-java
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libcommons-lang-java
Remove libcommons-lang-java configuration, data, and all of its dependencies
We can use the following command to remove libcommons-lang-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcommons-lang-java
Dependencies
libcommons-lang-java have the following dependencies:
References
Summary
In this tutorial we learn how to install libcommons-lang-java
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.