How To Install mpeg2dec on Debian 11

In this tutorial we learn how to install mpeg2dec on Debian 11. mpeg2dec is Simple libmpeg2 video decoder application

Introduction

In this tutorial we learn how to install mpeg2dec on Debian 11.

What is mpeg2dec

mpeg2dec is:

Simple libmpeg2 application which can decode and play ES, PS, and TS video streams. Includes extract_mpeg2 demuxer and various output drivers.

This package provides the mpeg2dec and extract_mpeg2 tools.

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

Install mpeg2dec Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mpeg2dec

Install mpeg2dec Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mpeg2dec

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

sudo aptitude -y install mpeg2dec

How To Uninstall mpeg2dec on Debian 11

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

sudo apt-get remove mpeg2dec

Uninstall mpeg2dec And Its Dependencies

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

sudo apt-get -y autoremove mpeg2dec

Remove mpeg2dec Configurations and Data

To remove mpeg2dec configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge mpeg2dec

Remove mpeg2dec configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mpeg2dec

Dependencies

mpeg2dec have the following dependencies:

References

Summary

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