How To Install gdmd on Debian 11

In this tutorial we learn how to install gdmd on Debian 11. gdmd is DMD-like wrapper for GDC

Introduction

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

What is gdmd

gdmd is:

This package provides gdmd, an interface to the GNU D compiler (GDC), which recognizes flags normally used with the DMD D compiler and translates them to flags GDC can understand. This makes gdmd a drop-in replacement to the dmd compiler invocation.

The GNU D compiler compiles D sources using the gcc backend to generate highly optimized binaries.

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

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

sudo apt-get update

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

sudo apt-get -y install gdmd

Install gdmd Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gdmd

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

sudo aptitude -y install gdmd

How To Uninstall gdmd on Debian 11

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

sudo apt-get remove gdmd

Uninstall gdmd And Its Dependencies

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

sudo apt-get -y autoremove gdmd

Remove gdmd Configurations and Data

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

sudo apt-get -y purge gdmd

Remove gdmd configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gdmd

Dependencies

gdmd have the following dependencies:

References

Summary

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