How To Install darkice on Debian 9

In this tutorial we learn how to install darkice on Debian 9. darkice is Live audio streamer

Introduction

In this tutorial we learn how to install darkice on Debian 9.

What is darkice

darkice is:

DarkIce is an IceCast, IceCast2 and ShoutCast live audio streamer. It takes audio input from a sound card, encodes it into mp3 and/or Ogg Vorbis, and sends the mp3 stream to one or more IceCast and/or ShoutCast servers, the Ogg Vorbis stream to one or more IceCast2 servers. DarkIce uses lame as a shared object as its mp3 encoder, and the Ogg Vorbis as its Ogg Vorbis encoder.

A legacy SYSV init script is provided for existing configurations. You have to set RUN=yes in /etc/default/darkice to run darkice as a daemon. With modern systems, this is not needed as realtime scheduling is available to normal users.

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

Install darkice Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install darkice

Install darkice Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install darkice

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

sudo aptitude -y install darkice

How To Uninstall darkice on Debian 9

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

sudo apt-get remove darkice

Uninstall darkice And Its Dependencies

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

sudo apt-get -y autoremove darkice

Remove darkice Configurations and Data

To remove darkice configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge darkice

Remove darkice configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge darkice

Dependencies

darkice have the following dependencies:

References

Summary

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