How To Install elpa-mpv on Debian 12

Learn how to install elpa-mpv on Debian 12 with this tutorial. elpa-mpv is control a mpv via its IPC interface from Emacs

Introduction

In this tutorial we learn how to install elpa-mpv on Debian 12.

What is elpa-mpv

elpa-mpv is:

mpv.el provides helper functions to control a mpv process via its IPC interface.

To start playback, have a look at mpv-play (for single files) and mpv-start (for passing arbitrary arguments to mpv, e.g., URLs). Among others, mpv.el provides

  • mpv-pause
  • mpv-kill
  • mpv-seek-forward / mpv-seek-backward
  • mpv-speed-increase / mpv-speed-decrease
  • mpv-volume-increase / mpv-volume-decrease
  • mpv-insert-playback-position
  • mpv-seek-to-position-at-point
  • mpv-playlist-next / mpv-playlist-prev

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

Install elpa-mpv Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install elpa-mpv

Install elpa-mpv Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install elpa-mpv

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

sudo aptitude -y install elpa-mpv

How To Uninstall elpa-mpv on Debian 12

To uninstall only the elpa-mpv package we can use the following command:

sudo apt-get remove elpa-mpv

Uninstall elpa-mpv And Its Dependencies

To uninstall elpa-mpv and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove elpa-mpv

Remove elpa-mpv Configurations and Data

To remove elpa-mpv configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge elpa-mpv

Remove elpa-mpv configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge elpa-mpv

Dependencies

elpa-mpv have the following dependencies:

References

Summary

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