How To Install libtsm-dev on Kali Linux

In this tutorial we learn how to install libtsm-dev on Kali Linux. libtsm-dev is Terminal-emulator State Machine - development

Introduction

In this tutorial we learn how to install libtsm-dev on Kali Linux.

What is libtsm-dev

libtsm-dev is:

TSM is a state machine for DEC VT100-VT520 compatible terminal emulators. It tries to support all common standards while keeping compatibility to existing emulators like xterm, gnome-terminal, konsole, ..

TSM itself does not provide any rendering nor window management. It is a simple plain state machine without any external dependencies. It can be used to implement terminal emulators, but also to implement other applications that need to interpret terminal escape sequences.

This library is very similar to libvte of the gnome project. However, libvte is highly bound to GTK+, which makes it unsuitable for non-graphics projects that need to parse escape sequences. Instead, TSM tries to restrict its API to terminal emulation only. Furthermore, TSM does not try to establish a new terminal emulation standard, but instead keeps compatibility as close to xterm as possible. This is why the TERM variable can be set to xterm-color256 with any TSM based terminal emulator.

This package contains the header files and static library needed to compile applications that use libtsm.

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

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

sudo apt-get update

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

sudo apt-get -y install libtsm-dev

Install libtsm-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtsm-dev

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

sudo aptitude -y install libtsm-dev

How To Uninstall libtsm-dev on Kali Linux

To uninstall only the libtsm-dev package we can use the following command:

sudo apt-get remove libtsm-dev

Uninstall libtsm-dev And Its Dependencies

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

sudo apt-get -y autoremove libtsm-dev

Remove libtsm-dev Configurations and Data

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

sudo apt-get -y purge libtsm-dev

Remove libtsm-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtsm-dev

Dependencies

libtsm-dev have the following dependencies:

References

Summary

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