How To Install python-tk-dbg on Kali Linux

In this tutorial we learn how to install python-tk-dbg on Kali Linux. python-tk-dbg is Tkinter - Writing Tk applications with Python2 (debug extension)

Introduction

In this tutorial we learn how to install python-tk-dbg on Kali Linux.

What is python-tk-dbg

python-tk-dbg is:

A module for writing portable GUI applications with Python2 using Tk. Also known as Tkinter.

This package contains the extensions built for the Python2 debug interpreter.

There are three methods to install python-tk-dbg on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-tk-dbg Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python-tk-dbg

Install python-tk-dbg Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-tk-dbg using apt by running the following command:

sudo apt -y install python-tk-dbg

Install python-tk-dbg Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-tk-dbg using aptitude by running the following command:

sudo aptitude -y install python-tk-dbg

How To Uninstall python-tk-dbg on Kali Linux

To uninstall only the python-tk-dbg package we can use the following command:

sudo apt-get remove python-tk-dbg

Uninstall python-tk-dbg And Its Dependencies

To uninstall python-tk-dbg and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove python-tk-dbg

Remove python-tk-dbg Configurations and Data

To remove python-tk-dbg configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge python-tk-dbg

Remove python-tk-dbg configuration, data, and all of its dependencies

We can use the following command to remove python-tk-dbg configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-tk-dbg

Dependencies

python-tk-dbg have the following dependencies:

References

Summary

In this tutorial we learn how to install python-tk-dbg package on Kali Linux using different package management tools: apt, apt-get and aptitude.