How To Install jruby on Debian 10
Introduction
In this tutorial we learn how to install jruby
on Debian 10.
What is jruby
jruby is:
JRuby is an implementation of the ruby language using the JVM.
It aims to be a complete, correct and fast implementation of Ruby, at the same time as providing powerful new features such as concurrency without a global interpreter lock, true parallelism and tight integration to the Java language to allow one to use Java classes in Ruby programs and to allow JRuby to be embedded into a Java application.
JRuby can be used as a faster version of Ruby, it can be used to run Ruby on the JVM and access powerful JVM libraries such as highly tuned concurrency primitives, it can also be used to embed Ruby as a scripting language in your Java program, or many other possibilities.
There are three methods to install jruby
on Debian 10. 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 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
using apt-get
by running the following command:
sudo apt-get -y install jruby
Install jruby Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install jruby
using apt
by running the following command:
sudo apt -y install jruby
Install jruby 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
using aptitude
by running the following command:
sudo aptitude -y install jruby
How To Uninstall jruby on Debian 10
To uninstall only the jruby
package we can use the following command:
sudo apt-get remove jruby
Uninstall jruby And Its Dependencies
To uninstall jruby
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove jruby
Remove jruby Configurations and Data
To remove jruby
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge jruby
Remove jruby configuration, data, and all of its dependencies
We can use the following command to remove jruby
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge jruby
Dependencies
jruby have the following dependencies:
- default-jre
- ant
- junit4
- libasm-java
- libbsf-java
- libbytelist-java
- libdirgra-java
- libheadius-options-java
- libinvokebinder-java
- libjansi-java
- libjcodings-java
- libjffi-jni
- libjitescript-java
- libjoda-time-java
- libjnr-constants-java
- libjnr-enxio-java
- libjnr-ffi-java
- libjnr-netdb-java
- libjnr-posix-java
- libjnr-unixsocket-java
- libjnr-x86asm-java
- libjruby-joni-java
- libjzlib-java
- libmodulator-java
- libosgi-core-java
- libpsych-java
- libunsafe-fences-java
- libunsafe-mock-java
- libyaml-snake-java
- nailgun
- ruby-jar-dependencies
- ruby-psych
References
Summary
In this tutorial we learn how to install jruby
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.