How To Install libmp3spi-java on Ubuntu 18.04

In this tutorial we learn how to install libmp3spi-java on Ubuntu 18.04. libmp3spi-java is interface to support MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format

Introduction

In this tutorial we learn how to install libmp3spi-java on Ubuntu 18.04.

What is libmp3spi-java

libmp3spi-java is:

MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format support for Java Platform. It supports streaming, ID3v2 frames and Equalizer.

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

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

sudo apt-get update

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

sudo apt-get -y install libmp3spi-java

Install libmp3spi-java Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmp3spi-java

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

sudo aptitude -y install libmp3spi-java

How To Uninstall libmp3spi-java on Ubuntu 18.04

To uninstall only the libmp3spi-java package we can use the following command:

sudo apt-get remove libmp3spi-java

Uninstall libmp3spi-java And Its Dependencies

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

sudo apt-get -y autoremove libmp3spi-java

Remove libmp3spi-java Configurations and Data

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

sudo apt-get -y purge libmp3spi-java

Remove libmp3spi-java configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmp3spi-java

References

Summary

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