How To Install tsdecrypt on Ubuntu 18.04

In this tutorial we learn how to install tsdecrypt on Ubuntu 18.04. tsdecrypt is decrypt MPEG transport stream

Introduction

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

What is tsdecrypt

tsdecrypt is:

tsdecrypt reads incoming MPEG transport stream over UDP/RTP and then decrypts it using libdvbcsa and keys obtained from OSCAM or similar cam server. tsdecrypt communicates with CAM server using cs378x (camd35 over tcp) protocol or newcamd protocol.

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

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

sudo apt-get update

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

sudo apt-get -y install tsdecrypt

Install tsdecrypt Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install tsdecrypt

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

sudo aptitude -y install tsdecrypt

How To Uninstall tsdecrypt on Ubuntu 18.04

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

sudo apt-get remove tsdecrypt

Uninstall tsdecrypt And Its Dependencies

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

sudo apt-get -y autoremove tsdecrypt

Remove tsdecrypt Configurations and Data

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

sudo apt-get -y purge tsdecrypt

Remove tsdecrypt configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge tsdecrypt

References

Summary

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