How To Install libportlet-api-2.0-spec-java on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libportlet-api-2.0-spec-java on Ubuntu 18.04.
What is libportlet-api-2.0-spec-java
libportlet-api-2.0-spec-java is:
The Java Portlet API version 2.0 developed by the Java Community Process JSR-286 Expert Group.
Portlets are pluggable user interface components that are managed and displayed in a web portal like Liferay or JBoss Gatein.
Package current source code is taken from Apache Portals project http://portals.apache.org/.
There are three methods to install libportlet-api-2.0-spec-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 libportlet-api-2.0-spec-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 libportlet-api-2.0-spec-java using apt-get by running the following command:
sudo apt-get -y install libportlet-api-2.0-spec-java
Install libportlet-api-2.0-spec-java Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libportlet-api-2.0-spec-java using apt by running the following command:
sudo apt -y install libportlet-api-2.0-spec-java
Install libportlet-api-2.0-spec-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 libportlet-api-2.0-spec-java using aptitude by running the following command:
sudo aptitude -y install libportlet-api-2.0-spec-java
How To Uninstall libportlet-api-2.0-spec-java on Ubuntu 18.04
To uninstall only the libportlet-api-2.0-spec-java package we can use the following command:
sudo apt-get remove libportlet-api-2.0-spec-java
Uninstall libportlet-api-2.0-spec-java And Its Dependencies
To uninstall libportlet-api-2.0-spec-java and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libportlet-api-2.0-spec-java
Remove libportlet-api-2.0-spec-java Configurations and Data
To remove libportlet-api-2.0-spec-java configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libportlet-api-2.0-spec-java
Remove libportlet-api-2.0-spec-java configuration, data, and all of its dependencies
We can use the following command to remove libportlet-api-2.0-spec-java configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libportlet-api-2.0-spec-java
References
Summary
In this tutorial we learn how to install libportlet-api-2.0-spec-java package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.