How To Install ttyrec on Debian 9

In this tutorial we learn how to install ttyrec on Debian 9. ttyrec is Terminal interaction recorder and player (for tty)

Introduction

In this tutorial we learn how to install ttyrec on Debian 9.

What is ttyrec

ttyrec is:

This package includes “ttyrec”, a tty recorder which records terminal interaction, and “ttyplay”, the player to see that intereaction.

Ttyrec records your terminal input and output, like the “script” command, but additionally records timing information to allow playback at the original speed. It can record any console program, including screen-oriented programs such as those using curses.

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

Install ttyrec Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install ttyrec

Install ttyrec Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ttyrec

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

sudo aptitude -y install ttyrec

How To Uninstall ttyrec on Debian 9

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

sudo apt-get remove ttyrec

Uninstall ttyrec And Its Dependencies

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

sudo apt-get -y autoremove ttyrec

Remove ttyrec Configurations and Data

To remove ttyrec configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge ttyrec

Remove ttyrec configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ttyrec

Dependencies

ttyrec have the following dependencies:

References

Summary

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