How To Install dh-ada-library on Debian 12

Learn how to install dh-ada-library on Debian 12 with this tutorial. dh-ada-library is tools for packaging software written in the Ada programming language

Introduction

In this tutorial we learn how to install dh-ada-library on Debian 12.

What is dh-ada-library

dh-ada-library is:

/usr/share/ada/packaging.mk is intended for inclusion from debian/rules. It provides build flags for gnatmake and gprbuild, and may be useful for executables as well as libraries despite the name of this package. The only documentation for now is in the comments.

If the package builds a library following the Debian Policy for Ada (http://people.debian.org/~lbrenta/debian-ada-policy.html), the dh_ada_library(1) debhelper tool will dispatch files from debian/tmp to package directories.

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

Install dh-ada-library Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install dh-ada-library

Install dh-ada-library Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dh-ada-library using apt by running the following command:

sudo apt -y install dh-ada-library

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

sudo aptitude -y install dh-ada-library

How To Uninstall dh-ada-library on Debian 12

To uninstall only the dh-ada-library package we can use the following command:

sudo apt-get remove dh-ada-library

Uninstall dh-ada-library And Its Dependencies

To uninstall dh-ada-library and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove dh-ada-library

Remove dh-ada-library Configurations and Data

To remove dh-ada-library configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge dh-ada-library

Remove dh-ada-library configuration, data, and all of its dependencies

We can use the following command to remove dh-ada-library configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dh-ada-library

Dependencies

dh-ada-library have the following dependencies:

References

Summary

In this tutorial we learn how to install dh-ada-library package on Debian 12 using different package management tools: apt, apt-get and aptitude.