How To Install ruby-all-dev on Debian 10

Learn how to install ruby-all-dev on Debian 10 with this tutorial. ruby-all-dev is Ruby development environment (all versions supported in Debian)

Introduction

In this tutorial we learn how to install ruby-all-dev on Debian 10.

What is ruby-all-dev

ruby-all-dev is:

Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in perl). It is simple, straight-forward, and extensible.

This package depends on the respective development packages for every Ruby version currently supported by Debian. This will usually be a single version (the default one), but during transitions multiple versions might be supported.

To programmatically list all the supported versions, install the gem2deb package and run dh_ruby --print-supported. To determine which is the default version, just dereference the /usr/bin/ruby symbolic link.

If you are not building Ruby packages for Debian, you probably do not need this package.

There are three methods to install ruby-all-dev 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 ruby-all-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install ruby-all-dev using apt-get by running the following command:

sudo apt-get -y install ruby-all-dev

Install ruby-all-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-all-dev using apt by running the following command:

sudo apt -y install ruby-all-dev

Install ruby-all-dev 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 ruby-all-dev using aptitude by running the following command:

sudo aptitude -y install ruby-all-dev

How To Uninstall ruby-all-dev on Debian 10

To uninstall only the ruby-all-dev package we can use the following command:

sudo apt-get remove ruby-all-dev

Uninstall ruby-all-dev And Its Dependencies

To uninstall ruby-all-dev and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove ruby-all-dev

Remove ruby-all-dev Configurations and Data

To remove ruby-all-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge ruby-all-dev

Remove ruby-all-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ruby-all-dev

Dependencies

ruby-all-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-all-dev package on Debian 10 using different package management tools: apt, apt-get and aptitude.