How To Install tkcon on Ubuntu 18.04

In this tutorial we learn how to install tkcon on Ubuntu 18.04. tkcon is Enhanced interactive console for developing in Tcl

Introduction

In this tutorial we learn how to install tkcon on Ubuntu 18.04.

What is tkcon

tkcon is:

TkCon is a Tcl shell and console, making it ideal for experimenting with Tcl and Tk programs interactively.

Features: Command history Path (Unix style) / Proc / Variable name expansion Multiple consoles, each with its own state (via multiple interpreters) Captures stdout and stderr to console window (puts overridden) Hot errors (click on error result to see stack trace) Electric character matching (a la emacs) Electric proc highlighting Communication between consoles and other Tk interpreters (including non-Tcl ones)

There are three methods to install tkcon on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install tkcon Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install tkcon

Install tkcon Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install tkcon using apt by running the following command:

sudo apt -y install tkcon

Install tkcon 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install tkcon using aptitude by running the following command:

sudo aptitude -y install tkcon

How To Uninstall tkcon on Ubuntu 18.04

To uninstall only the tkcon package we can use the following command:

sudo apt-get remove tkcon

Uninstall tkcon And Its Dependencies

To uninstall tkcon and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove tkcon

Remove tkcon Configurations and Data

To remove tkcon configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge tkcon

Remove tkcon configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge tkcon

References

Summary

In this tutorial we learn how to install tkcon package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.