How To Install playmidi on Ubuntu 22.04

In this tutorial we learn how to install playmidi on Ubuntu 22.04. playmidi is MIDI player

Introduction

In this tutorial we learn how to install playmidi on Ubuntu 22.04.

What is playmidi

playmidi is:

Playmidi is a MIDI file player that will play back using FM, GUS, SoundBlaster or external MIDI. It also supports Creative Music Files (CMF), Microsoft RIFF (RMI) files and large MIDI archives from games such as Ultima 7.

The player may be used with a text interface or a graphical interface.

There are three methods to install playmidi on Ubuntu 22.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 playmidi Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install playmidi

Install playmidi Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install playmidi

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

sudo aptitude -y install playmidi

How To Uninstall playmidi on Ubuntu 22.04

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

sudo apt-get remove playmidi

Uninstall playmidi And Its Dependencies

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

sudo apt-get -y autoremove playmidi

Remove playmidi Configurations and Data

To remove playmidi configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge playmidi

Remove playmidi configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge playmidi

References

Summary

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