How To Install smpeg-plaympeg on Ubuntu 18.04

In this tutorial we learn how to install smpeg-plaympeg on Ubuntu 18.04. smpeg-plaympeg is SMPEG command line MPEG audio/video player

Introduction

In this tutorial we learn how to install smpeg-plaympeg on Ubuntu 18.04.

What is smpeg-plaympeg

smpeg-plaympeg is:

SMPEG (SDL MPEG Player Library) is a free MPEG1 video player library with sound support. Video playback is based on the ubiquitous Berkeley MPEG player, mpeg_play v2.2. Audio is played through a slightly modified mpegsound library, part of splay v0.8.2. SMPEG supports MPEG audio (MP3), MPEG-1 video, and MPEG system streams.

This package contains a command line player called plaympeg.

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

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

sudo apt-get update

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

sudo apt-get -y install smpeg-plaympeg

Install smpeg-plaympeg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install smpeg-plaympeg

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

sudo aptitude -y install smpeg-plaympeg

How To Uninstall smpeg-plaympeg on Ubuntu 18.04

To uninstall only the smpeg-plaympeg package we can use the following command:

sudo apt-get remove smpeg-plaympeg

Uninstall smpeg-plaympeg And Its Dependencies

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

sudo apt-get -y autoremove smpeg-plaympeg

Remove smpeg-plaympeg Configurations and Data

To remove smpeg-plaympeg configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge smpeg-plaympeg

Remove smpeg-plaympeg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge smpeg-plaympeg

References

Summary

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