How To Install libeclipselink-java on Ubuntu 18.04

In this tutorial we learn how to install libeclipselink-java on Ubuntu 18.04. libeclipselink-java is Eclipse Persistence Services Project

Introduction

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

libeclipselink-java is:

Eclipse Persistence Services Project, more commonly known as EclipseLink, is a Java comprehensive persistence framework delivering a set of persistence services based around standards. This lets you rapidly build applications that combine the best aspects of object technology and the specific data source.

EclipseLink was started by a donation of the full source code and test suites of Oracle’s TopLink product.

EclipseLink’s services currently include object-relational with JPA, object-XML binding in MOXy (with support for JAXB), a Service Data Objects (SDO) implementation and support for another technologies like: Database Web Services (DWS), XML-Relational (XRM) and Non-Relational (EIS via JCA).

There are three methods to install libeclipselink-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.

Update apt database with apt-get using the following command.

sudo apt-get update

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

sudo apt-get -y install libeclipselink-java

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libeclipselink-java

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

sudo aptitude -y install libeclipselink-java

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

sudo apt-get remove libeclipselink-java

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

sudo apt-get -y autoremove libeclipselink-java

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

sudo apt-get -y purge libeclipselink-java

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

sudo apt-get -y autoremove --purge libeclipselink-java

References

Summary

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