How To Install libtsm3 on Ubuntu 18.04

In this tutorial we learn how to install libtsm3 on Ubuntu 18.04. libtsm3 is Terminal-emulator State Machine - runtime

Introduction

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

What is libtsm3

libtsm3 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 libtsm3 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 libtsm3 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libtsm3

Install libtsm3 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtsm3

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

sudo aptitude -y install libtsm3

How To Uninstall libtsm3 on Ubuntu 18.04

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

sudo apt-get remove libtsm3

Uninstall libtsm3 And Its Dependencies

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

sudo apt-get -y autoremove libtsm3

Remove libtsm3 Configurations and Data

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

sudo apt-get -y purge libtsm3

Remove libtsm3 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtsm3

References

Summary

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