How To Install tktreectrl on Ubuntu 18.04

In this tutorial we learn how to install tktreectrl on Ubuntu 18.04. tktreectrl is flexible listbox widget for Tcl/Tk

Introduction

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

What is tktreectrl

tktreectrl is:

TkTreeCtrl is a multi-column hierarchical listbox widget for the Tk GUI toolkit. It can display items that have a parent-child relationship with other itemsin a one- or two-dimensional arrangement. Items do also have a set of states, which are boolean properties.

Items may be spread about one or more columns. For each column of an item there is a style associated, which determines how to display the item’s column taking into account the item’s current state set. One column can be defined to display the data in a hierarchical structure.

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

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

sudo apt-get update

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

sudo apt-get -y install tktreectrl

Install tktreectrl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install tktreectrl

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

sudo aptitude -y install tktreectrl

How To Uninstall tktreectrl on Ubuntu 18.04

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

sudo apt-get remove tktreectrl

Uninstall tktreectrl And Its Dependencies

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

sudo apt-get -y autoremove tktreectrl

Remove tktreectrl Configurations and Data

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

sudo apt-get -y purge tktreectrl

Remove tktreectrl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge tktreectrl

References

Summary

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