How To Install python-cddb on Debian 9

In this tutorial we learn how to install python-cddb on Debian 9. python-cddb is Python interface to CD-IDs and FreeDB

Introduction

In this tutorial we learn how to install python-cddb on Debian 9.

What is python-cddb

python-cddb is:

The dynamic duo of CDDB.py and DiscID.py, along with their side-kick C module cdrommodule.so, provide an easy way for Python programs to fetch information on audio CDs from CDDB (http://www.cddb.com/) – a very large online database of track listings and other information on audio CDs. The default CDDB server is FreeDB (http://www.freedb.org)

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

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

sudo apt-get update

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

sudo apt-get -y install python-cddb

Install python-cddb Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-cddb

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

sudo aptitude -y install python-cddb

How To Uninstall python-cddb on Debian 9

To uninstall only the python-cddb package we can use the following command:

sudo apt-get remove python-cddb

Uninstall python-cddb And Its Dependencies

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

sudo apt-get -y autoremove python-cddb

Remove python-cddb Configurations and Data

To remove python-cddb configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-cddb

Remove python-cddb configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-cddb

Dependencies

python-cddb have the following dependencies:

References

Summary

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