How To Install gradle-debian-helper on Ubuntu 18.04

In this tutorial we learn how to install gradle-debian-helper on Ubuntu 18.04. gradle-debian-helper is Helper tools for building Debian packages with Gradle

Introduction

In this tutorial we learn how to install gradle-debian-helper on Ubuntu 18.04.

What is gradle-debian-helper

gradle-debian-helper is:

gradle-debian-helper contains helper tools to ease the packaging of Gradle based projects in Debian. It consists in:

  • a Gradle plugin resolving the dependencies against the system Maven repository (/usr/share/maven-repo). The resolver uses the same Maven rule files that maven-debian-helper and maven-repo-helper employ (debian/maven.rules, debian/maven.ignoreRules).
  • a debhelper class detecting Gradle build files, initializing the plugin and running Gradle in offline mode.

There are three methods to install gradle-debian-helper 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 gradle-debian-helper Using apt-get

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

sudo apt-get update

After updating apt database, We can install gradle-debian-helper using apt-get by running the following command:

sudo apt-get -y install gradle-debian-helper

Install gradle-debian-helper Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install gradle-debian-helper using apt by running the following command:

sudo apt -y install gradle-debian-helper

Install gradle-debian-helper 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 gradle-debian-helper using aptitude by running the following command:

sudo aptitude -y install gradle-debian-helper

How To Uninstall gradle-debian-helper on Ubuntu 18.04

To uninstall only the gradle-debian-helper package we can use the following command:

sudo apt-get remove gradle-debian-helper

Uninstall gradle-debian-helper And Its Dependencies

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

sudo apt-get -y autoremove gradle-debian-helper

Remove gradle-debian-helper Configurations and Data

To remove gradle-debian-helper configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge gradle-debian-helper

Remove gradle-debian-helper configuration, data, and all of its dependencies

We can use the following command to remove gradle-debian-helper configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge gradle-debian-helper

References

Summary

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