How To Install sqldeveloper-package on Ubuntu 20.04

In this tutorial we learn how to install sqldeveloper-package on Ubuntu 20.04. sqldeveloper-package is Oracle SQL Developer Debian package builder

Introduction

In this tutorial we learn how to install sqldeveloper-package on Ubuntu 20.04.

What is sqldeveloper-package

sqldeveloper-package is:

This utility makes it possible to build a Debian package of Oracle SQL Developer. The Oracle SQL Developer program is governed by the copyright holder (Oracle USA, Inc.), so you may be limited as to what you can do with the resulting package (i.e. no redistribution, etc). This utility will simply help you create the Debian package, it is your responsibility to use the resulting package accordingly with the OTN license, a copy of which is included in the created package, that you must agree on when downloading the source.

This utility will require you to download the architecture independent archive from http://www.oracle.com/technetwork/developer-tools/sql-developer, identified as “Oracle SQL Developer for other platforms”, “Oracle SQL Developer for Multiple Platforms” or “Oracle SQL Developer for Linux and Unix” (depending on which version you are building), to create the Debian package from.

There are three methods to install sqldeveloper-package 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 sqldeveloper-package Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install sqldeveloper-package

Install sqldeveloper-package Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sqldeveloper-package

Install sqldeveloper-package 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 sqldeveloper-package using aptitude by running the following command:

sudo aptitude -y install sqldeveloper-package

How To Uninstall sqldeveloper-package on Ubuntu 20.04

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

sudo apt-get remove sqldeveloper-package

Uninstall sqldeveloper-package And Its Dependencies

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

sudo apt-get -y autoremove sqldeveloper-package

Remove sqldeveloper-package Configurations and Data

To remove sqldeveloper-package configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge sqldeveloper-package

Remove sqldeveloper-package configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sqldeveloper-package

References

Summary

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