How To Install libjstun-java-doc on Ubuntu 20.04

In this tutorial we learn how to install libjstun-java-doc on Ubuntu 20.04. libjstun-java-doc is Java-based STUN implementation (documentation)

Introduction

In this tutorial we learn how to install libjstun-java-doc on Ubuntu 20.04.

What is libjstun-java-doc

libjstun-java-doc is:

“JSTUN” is a Java-based STUN (Simple Traversal of User Datagram Protocol (UDP) Through Network Address Translation (NAT)) implementation.

STUN provides a mean for applications to discover the presence and type of firewalls or NATs between them and the public Internet. Additionally, in presence of a NAT STUN can be used by applications to learn the public Internet Protocol (IP) address assigned to the NAT.

This package contains the documentation in javadoc format for this library.

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

sudo apt-get -y install libjstun-java-doc

Install libjstun-java-doc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjstun-java-doc

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

sudo aptitude -y install libjstun-java-doc

How To Uninstall libjstun-java-doc on Ubuntu 20.04

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

sudo apt-get remove libjstun-java-doc

Uninstall libjstun-java-doc And Its Dependencies

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

sudo apt-get -y autoremove libjstun-java-doc

Remove libjstun-java-doc Configurations and Data

To remove libjstun-java-doc configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libjstun-java-doc

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

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

sudo apt-get -y autoremove --purge libjstun-java-doc

References

Summary

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