How To Install libjetty9-extra-java on Ubuntu 18.04

In this tutorial we learn how to install libjetty9-extra-java on Ubuntu 18.04. libjetty9-extra-java is Java servlet engine and webserver – extra libraries

Introduction

In this tutorial we learn how to install libjetty9-extra-java on Ubuntu 18.04.

What is libjetty9-extra-java

libjetty9-extra-java is:

Jetty is an Open Source HTTP Servlet Server written in 100% Java. It is designed to be light weight, high performance, embeddable, extensible and flexible, thus making it an ideal platform for serving dynamic HTTP requests from any Java application. The extra libraries include jetty-management, jetty-naming, jetty-servlet-tester, jetty-ajp, jetty-java5-threadpool, jetty-client, jetty-rewrite-handler, jetty-plus, jetty-annotations

There are three methods to install libjetty9-extra-java 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 libjetty9-extra-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 libjetty9-extra-java using apt-get by running the following command:

sudo apt-get -y install libjetty9-extra-java

Install libjetty9-extra-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libjetty9-extra-java

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

sudo aptitude -y install libjetty9-extra-java

How To Uninstall libjetty9-extra-java on Ubuntu 18.04

To uninstall only the libjetty9-extra-java package we can use the following command:

sudo apt-get remove libjetty9-extra-java

Uninstall libjetty9-extra-java And Its Dependencies

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

sudo apt-get -y autoremove libjetty9-extra-java

Remove libjetty9-extra-java Configurations and Data

To remove libjetty9-extra-java configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjetty9-extra-java

Remove libjetty9-extra-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libjetty9-extra-java

References

Summary

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