How To Install mkchromecast on Debian 11

In this tutorial we learn how to install mkchromecast on Debian 11. mkchromecast is Cast your Linux audio or video to your Google Cast devices

Introduction

In this tutorial we learn how to install mkchromecast on Debian 11.

What is mkchromecast

mkchromecast is:

It is written in Python, and it streams via node.js or ffmpeg. mkchromecast is capable of using lossy and lossless audio formats provided that ffmpeg is installed. It also supports Multi-room group playback, and 24-bits/96kHz high audio resolution. Additionally, a system tray menu is also available.

By default, mkchromecast streams with node.js (or parec in Linux) together with mp3 audio coding format at a sample rate of 44100Hz and average bitrate of 192k. These defaults can be changed using the –sample-rate and -b flags. It is useful to modify these parameters when your wireless router is not very powerful, or in the case you don’t want to degrade the sound quality. You can also cast videos using the –video flag.

mkchromecast can cast using either pulseaudio or ALSA. The respective dependencies can be pulled by mkchromecast-pulseaudio and mkchromecast-alsa dependency packages respectively. For more information, please read the README.Debian file shipped in this package.

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

Install mkchromecast Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mkchromecast

Install mkchromecast Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mkchromecast

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

sudo aptitude -y install mkchromecast

How To Uninstall mkchromecast on Debian 11

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

sudo apt-get remove mkchromecast

Uninstall mkchromecast And Its Dependencies

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

sudo apt-get -y autoremove mkchromecast

Remove mkchromecast Configurations and Data

To remove mkchromecast configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge mkchromecast

Remove mkchromecast configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mkchromecast

Dependencies

mkchromecast have the following dependencies:

References

Summary

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