How To Install libgnatcoll-db-bin on Debian 12

Learn how to install libgnatcoll-db-bin on Debian 12 with this tutorial. libgnatcoll-db-bin is Ada library accessing SQL databases (tools)

Introduction

In this tutorial we learn how to install libgnatcoll-db-bin on Debian 12.

What is libgnatcoll-db-bin

libgnatcoll-db-bin is:

The gnatcoll-db library allows Ada programs to send SQL queries to SQLite or PostGreSQL databases.

This package contains command-line tools.

  • gnatcoll_db2ada generates Ada sources depending on libngatcoll-sqlite or libgnatcoll-postgres.
  • gnatinspect runs in a source tree and generate a database of cross-references.

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

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

sudo apt-get update

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

sudo apt-get -y install libgnatcoll-db-bin

Install libgnatcoll-db-bin Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libgnatcoll-db-bin using apt by running the following command:

sudo apt -y install libgnatcoll-db-bin

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

sudo aptitude -y install libgnatcoll-db-bin

How To Uninstall libgnatcoll-db-bin on Debian 12

To uninstall only the libgnatcoll-db-bin package we can use the following command:

sudo apt-get remove libgnatcoll-db-bin

Uninstall libgnatcoll-db-bin And Its Dependencies

To uninstall libgnatcoll-db-bin and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libgnatcoll-db-bin

Remove libgnatcoll-db-bin Configurations and Data

To remove libgnatcoll-db-bin configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libgnatcoll-db-bin

Remove libgnatcoll-db-bin configuration, data, and all of its dependencies

We can use the following command to remove libgnatcoll-db-bin configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libgnatcoll-db-bin

Dependencies

libgnatcoll-db-bin have the following dependencies:

References

Summary

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