How To Install libcanberra-gtk-common-dev on Ubuntu 18.04

In this tutorial we learn how to install libcanberra-gtk-common-dev on Ubuntu 18.04. libcanberra-gtk-common-dev is simple interface for playing event sounds (GTK+ shared development files)

Introduction

In this tutorial we learn how to install libcanberra-gtk-common-dev on Ubuntu 18.04.

What is libcanberra-gtk-common-dev

libcanberra-gtk-common-dev is:

libcanberra-gtk provides a few functions that simplify libcanberra usage from GTK+.

Contextual information is needed to play event sound. This library can help to compile directly event sounds property lists based on active GtkWidget objects or GdkEvent events.

This package contains common headers for developing applications using libcanberra-gtk and libcanberra-gtk3

There are three methods to install libcanberra-gtk-common-dev on Ubuntu 18.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 libcanberra-gtk-common-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install libcanberra-gtk-common-dev using apt-get by running the following command:

sudo apt-get -y install libcanberra-gtk-common-dev

Install libcanberra-gtk-common-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcanberra-gtk-common-dev using apt by running the following command:

sudo apt -y install libcanberra-gtk-common-dev

Install libcanberra-gtk-common-dev 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 libcanberra-gtk-common-dev using aptitude by running the following command:

sudo aptitude -y install libcanberra-gtk-common-dev

How To Uninstall libcanberra-gtk-common-dev on Ubuntu 18.04

To uninstall only the libcanberra-gtk-common-dev package we can use the following command:

sudo apt-get remove libcanberra-gtk-common-dev

Uninstall libcanberra-gtk-common-dev And Its Dependencies

To uninstall libcanberra-gtk-common-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libcanberra-gtk-common-dev

Remove libcanberra-gtk-common-dev Configurations and Data

To remove libcanberra-gtk-common-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcanberra-gtk-common-dev

Remove libcanberra-gtk-common-dev configuration, data, and all of its dependencies

We can use the following command to remove libcanberra-gtk-common-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libcanberra-gtk-common-dev

References

Summary

In this tutorial we learn how to install libcanberra-gtk-common-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.