How To Install librestlet-java on Ubuntu 18.04
Introduction
In this tutorial we learn how to install librestlet-java
on Ubuntu 18.04.
What is librestlet-java
librestlet-java is:
Restlet is a comprehensive yet lightweight RESTful web framework for Java that lets you embrace the architecture style of the Web (REST) and benefit from its simplicity and scalability.
Restlet has a light core but thanks to its pluggable extension, it is also a comprehensive REST framework for Java. It supports all REST concepts (Resource, Representation, Connector, Component, etc.) and is suitable for both client and server Web applications.
There are three methods to install librestlet-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 librestlet-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 librestlet-java
using apt-get
by running the following command:
sudo apt-get -y install librestlet-java
Install librestlet-java Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install librestlet-java
using apt
by running the following command:
sudo apt -y install librestlet-java
Install librestlet-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 librestlet-java
using aptitude
by running the following command:
sudo aptitude -y install librestlet-java
How To Uninstall librestlet-java on Ubuntu 18.04
To uninstall only the librestlet-java
package we can use the following command:
sudo apt-get remove librestlet-java
Uninstall librestlet-java And Its Dependencies
To uninstall librestlet-java
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove librestlet-java
Remove librestlet-java Configurations and Data
To remove librestlet-java
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge librestlet-java
Remove librestlet-java configuration, data, and all of its dependencies
We can use the following command to remove librestlet-java
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge librestlet-java
References
Summary
In this tutorial we learn how to install librestlet-java
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.