How To Install ncmpcpp on Ubuntu 22.04

In this tutorial we learn how to install ncmpcpp on Ubuntu 22.04. ncmpcpp is ncurses-based client for the Music Player Daemon (MPD)

Introduction

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

What is ncmpcpp

ncmpcpp is:

ncmpcpp is almost an exact clone of ncmpc which is a text-mode client for MPD, the Music Player Daemon. It provides a keyboard oriented and consistent interface to MPD and contains some new features ncmpc doesn’t have. It’s been also rewritten from scratch in C++.

New features include:

  • tag editor;
  • playlists editor;
  • easy to use search screen;
  • media library screen;
  • lyrics screen;
  • possibility of going to any position in currently playing track without rewinding/fastforwarding;
  • multi colored main window (if you want);
  • songs can be added to playlist more than once;
  • a lot of minor useful functions.

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

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

sudo apt-get update

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

sudo apt-get -y install ncmpcpp

Install ncmpcpp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ncmpcpp

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

sudo aptitude -y install ncmpcpp

How To Uninstall ncmpcpp on Ubuntu 22.04

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

sudo apt-get remove ncmpcpp

Uninstall ncmpcpp And Its Dependencies

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

sudo apt-get -y autoremove ncmpcpp

Remove ncmpcpp Configurations and Data

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

sudo apt-get -y purge ncmpcpp

Remove ncmpcpp configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ncmpcpp

References

Summary

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