How To Install ruby2.3-tcltk on Debian 9

In this tutorial we learn how to install ruby2.3-tcltk on Debian 9. ruby2.3-tcltk is Ruby/Tk for Ruby 2.3

Introduction

In this tutorial we learn how to install ruby2.3-tcltk on Debian 9.

What is ruby2.3-tcltk

ruby2.3-tcltk 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 provides Ruby/Tk, Ruby bindings for the Tk graphical user interface toolkit.

There are three methods to install ruby2.3-tcltk 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 ruby2.3-tcltk Using apt-get

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

sudo apt-get update

After updating apt database, We can install ruby2.3-tcltk using apt-get by running the following command:

sudo apt-get -y install ruby2.3-tcltk

Install ruby2.3-tcltk Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby2.3-tcltk using apt by running the following command:

sudo apt -y install ruby2.3-tcltk

Install ruby2.3-tcltk 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 ruby2.3-tcltk using aptitude by running the following command:

sudo aptitude -y install ruby2.3-tcltk

How To Uninstall ruby2.3-tcltk on Debian 9

To uninstall only the ruby2.3-tcltk package we can use the following command:

sudo apt-get remove ruby2.3-tcltk

Uninstall ruby2.3-tcltk And Its Dependencies

To uninstall ruby2.3-tcltk and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove ruby2.3-tcltk

Remove ruby2.3-tcltk Configurations and Data

To remove ruby2.3-tcltk configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge ruby2.3-tcltk

Remove ruby2.3-tcltk configuration, data, and all of its dependencies

We can use the following command to remove ruby2.3-tcltk configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby2.3-tcltk

Dependencies

ruby2.3-tcltk have the following dependencies:

References

Summary

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