How To Install libdbusmenu-gtk-dev on Debian 9

In this tutorial we learn how to install libdbusmenu-gtk-dev on Debian 9. libdbusmenu-gtk-dev is library for passing menus over DBus - GTK+ version development files

Introduction

In this tutorial we learn how to install libdbusmenu-gtk-dev on Debian 9.

What is libdbusmenu-gtk-dev

libdbusmenu-gtk-dev is:

libdbusmenu passes a menu structure across DBus so that a program can create a menu simply without worrying about how it is displayed on the other side of the bus.

This package contains files that are needed to build GTK+ applications.

There are three methods to install libdbusmenu-gtk-dev 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 libdbusmenu-gtk-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 libdbusmenu-gtk-dev using apt-get by running the following command:

sudo apt-get -y install libdbusmenu-gtk-dev

Install libdbusmenu-gtk-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libdbusmenu-gtk-dev

Install libdbusmenu-gtk-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libdbusmenu-gtk-dev

How To Uninstall libdbusmenu-gtk-dev on Debian 9

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

sudo apt-get remove libdbusmenu-gtk-dev

Uninstall libdbusmenu-gtk-dev And Its Dependencies

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

sudo apt-get -y autoremove libdbusmenu-gtk-dev

Remove libdbusmenu-gtk-dev Configurations and Data

To remove libdbusmenu-gtk-dev configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libdbusmenu-gtk-dev

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

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

sudo apt-get -y autoremove --purge libdbusmenu-gtk-dev

Dependencies

libdbusmenu-gtk-dev have the following dependencies:

References

Summary

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