How To Install libtsm4 on Debian 12

Learn how to install libtsm4 on Debian 12 with this tutorial. libtsm4 is Terminal-emulator State Machine - runtime

Introduction

In this tutorial we learn how to install libtsm4 on Debian 12.

What is libtsm4

libtsm4 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 libtsm runtime library.

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

Install libtsm4 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libtsm4

Install libtsm4 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtsm4

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

sudo aptitude update

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

sudo aptitude -y install libtsm4

How To Uninstall libtsm4 on Debian 12

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

sudo apt-get remove libtsm4

Uninstall libtsm4 And Its Dependencies

To uninstall libtsm4 and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libtsm4

Remove libtsm4 Configurations and Data

To remove libtsm4 configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libtsm4

Remove libtsm4 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtsm4

Dependencies

libtsm4 have the following dependencies:

References

Summary

In this tutorial we learn how to install libtsm4 package on Debian 12 using different package management tools: apt, apt-get and aptitude.