How To Install mpd on Debian 10

Learn how to install mpd on Debian 10 with this tutorial. mpd is Music Player Daemon

Introduction

In this tutorial we learn how to install mpd on Debian 10.

What is mpd

mpd is:

Music Player Daemon (MPD) is a server that allows remote access for playing audio files (Ogg-Vorbis, FLAC, MP3, Wave, and AIFF), streams (Ogg-Vorbis, MP3) and managing playlists. Gapless playback, buffered output, and crossfading support is also included. The design focus is on integrating a computer into a stereo system that provides control for music playback over a TCP/IP network. The goals are to be easy to install and use, to have minimal resource requirements (it has been reported to run fine on a Pentium 75), and to remain stable and flexible.

The daemon is controlled through a client which need not run on the same computer mpd runs on. The separate client and server design allows users to choose a user interface that best suites their tastes independently of the underlying daemon (this package) which actually plays music.

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

Install mpd Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mpd

Install mpd Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mpd

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

sudo aptitude -y install mpd

How To Uninstall mpd on Debian 10

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

sudo apt-get remove mpd

Uninstall mpd And Its Dependencies

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

sudo apt-get -y autoremove mpd

Remove mpd Configurations and Data

To remove mpd configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge mpd

Remove mpd configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mpd

Dependencies

mpd have the following dependencies:

References

Summary

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