How To Install libtcl-perl on Debian 9

In this tutorial we learn how to install libtcl-perl on Debian 9. libtcl-perl is Tcl extension module for Perl

Introduction

In this tutorial we learn how to install libtcl-perl on Debian 9.

What is libtcl-perl

libtcl-perl is:

The Tcl extension module gives access to the Tcl library with functionality and interface similar to the C functions of Tcl.

  • creating Tcl interpreters
  • executing Tcl code in an interpreter
  • binding in new Tcl procedures
  • manipulating the result field of a Tcl interpreter
  • setting and getting values of variables in a Tcl interpreter
  • tying perl variables to variables in a Tcl interpreter

Tcl is a powerful, easy to use, embeddable, cross-platform interpreted scripting language.

There are three methods to install libtcl-perl 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 libtcl-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libtcl-perl using apt-get by running the following command:

sudo apt-get -y install libtcl-perl

Install libtcl-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtcl-perl using apt by running the following command:

sudo apt -y install libtcl-perl

Install libtcl-perl 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 libtcl-perl using aptitude by running the following command:

sudo aptitude -y install libtcl-perl

How To Uninstall libtcl-perl on Debian 9

To uninstall only the libtcl-perl package we can use the following command:

sudo apt-get remove libtcl-perl

Uninstall libtcl-perl And Its Dependencies

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

sudo apt-get -y autoremove libtcl-perl

Remove libtcl-perl Configurations and Data

To remove libtcl-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libtcl-perl

Remove libtcl-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtcl-perl

Dependencies

libtcl-perl have the following dependencies:

References

Summary

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