How To Install libcommons-lang-java-doc on Ubuntu 18.04

In this tutorial we learn how to install libcommons-lang-java-doc on Ubuntu 18.04. libcommons-lang-java-doc is Documentation for Commons Lang - an extension of the java.lang package

Introduction

In this tutorial we learn how to install libcommons-lang-java-doc on Ubuntu 18.04.

What is libcommons-lang-java-doc

libcommons-lang-java-doc 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.

This package contains the API documentation of libcommons-lang-java

There are three methods to install libcommons-lang-java-doc on Ubuntu 18.04. 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-doc 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-doc using apt-get by running the following command:

sudo apt-get -y install libcommons-lang-java-doc

Install libcommons-lang-java-doc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcommons-lang-java-doc using apt by running the following command:

sudo apt -y install libcommons-lang-java-doc

Install libcommons-lang-java-doc 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-lang-java-doc using aptitude by running the following command:

sudo aptitude -y install libcommons-lang-java-doc

How To Uninstall libcommons-lang-java-doc on Ubuntu 18.04

To uninstall only the libcommons-lang-java-doc package we can use the following command:

sudo apt-get remove libcommons-lang-java-doc

Uninstall libcommons-lang-java-doc And Its Dependencies

To uninstall libcommons-lang-java-doc and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libcommons-lang-java-doc

Remove libcommons-lang-java-doc Configurations and Data

To remove libcommons-lang-java-doc configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcommons-lang-java-doc

Remove libcommons-lang-java-doc configuration, data, and all of its dependencies

We can use the following command to remove libcommons-lang-java-doc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcommons-lang-java-doc

References

Summary

In this tutorial we learn how to install libcommons-lang-java-doc package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.