How To Install jruby-maven-plugins on Debian 9

In this tutorial we learn how to install jruby-maven-plugins on Debian 9. jruby-maven-plugins is Maven plugins to handle Ruby gems in a Maven compatible way

Introduction

In this tutorial we learn how to install jruby-maven-plugins on Debian 9.

What is jruby-maven-plugins

jruby-maven-plugins is:

jruby-maven-plugins is a set of utilities and plugins to handle Ruby gems with Maven. This allows one to integrate JRuby and other Java libraries with rspec, rails, cucumber, rake and another standard Ruby development tools.

There are three methods to install jruby-maven-plugins on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install jruby-maven-plugins Using apt-get

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

sudo apt-get update

After updating apt database, We can install jruby-maven-plugins using apt-get by running the following command:

sudo apt-get -y install jruby-maven-plugins

Install jruby-maven-plugins Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install jruby-maven-plugins using apt by running the following command:

sudo apt -y install jruby-maven-plugins

Install jruby-maven-plugins 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install jruby-maven-plugins using aptitude by running the following command:

sudo aptitude -y install jruby-maven-plugins

How To Uninstall jruby-maven-plugins on Debian 9

To uninstall only the jruby-maven-plugins package we can use the following command:

sudo apt-get remove jruby-maven-plugins

Uninstall jruby-maven-plugins And Its Dependencies

To uninstall jruby-maven-plugins and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove jruby-maven-plugins

Remove jruby-maven-plugins Configurations and Data

To remove jruby-maven-plugins configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge jruby-maven-plugins

Remove jruby-maven-plugins configuration, data, and all of its dependencies

We can use the following command to remove jruby-maven-plugins configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge jruby-maven-plugins

Dependencies

jruby-maven-plugins have the following dependencies:

References

Summary

In this tutorial we learn how to install jruby-maven-plugins package on Debian 9 using different package management tools: apt, apt-get and aptitude.