How To Install gtk2hs-buildtools on Kali Linux

In this tutorial we learn how to install gtk2hs-buildtools on Kali Linux. gtk2hs-buildtools is Tools to build the Gtk2Hs suite of User Interface libraries

Introduction

In this tutorial we learn how to install gtk2hs-buildtools on Kali Linux.

What is gtk2hs-buildtools

gtk2hs-buildtools is:

This package provides a set of helper programs necessary to build the Gtk2Hs suite of libraries. These tools include a modified c2hs binding tool that is used to generate FFI declarations, a tool to build a type hierarchy that mirrors the C type hierarchy of GObjects found in glib, and a generator for signal declarations that are used to call back from C to Haskell. These tools are not needed to actually run Gtk2Hs programs.

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

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

sudo apt-get update

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

sudo apt-get -y install gtk2hs-buildtools

Install gtk2hs-buildtools Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gtk2hs-buildtools

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

sudo aptitude -y install gtk2hs-buildtools

How To Uninstall gtk2hs-buildtools on Kali Linux

To uninstall only the gtk2hs-buildtools package we can use the following command:

sudo apt-get remove gtk2hs-buildtools

Uninstall gtk2hs-buildtools And Its Dependencies

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

sudo apt-get -y autoremove gtk2hs-buildtools

Remove gtk2hs-buildtools Configurations and Data

To remove gtk2hs-buildtools configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge gtk2hs-buildtools

Remove gtk2hs-buildtools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gtk2hs-buildtools

Dependencies

gtk2hs-buildtools have the following dependencies:

References

Summary

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