How To Install alire on Debian 12

Learn how to install alire on Debian 12 with this tutorial. alire is Ada package manager.

Introduction

In this tutorial we learn how to install alire on Debian 12.

What is alire

alire is:

A catalog of ready-to-use Ada libraries plus a command-line tool (alr) to obtain, build, and incorporate them into your own projects. It aims to fulfill a similar role to Rust’s cargo or OCaml’s opam.

This is a source package manager, in contrast to apt which is a binary package manager.

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

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

sudo apt-get update

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

sudo apt-get -y install alire

Install alire Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install alire

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

sudo aptitude -y install alire

How To Uninstall alire on Debian 12

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

sudo apt-get remove alire

Uninstall alire And Its Dependencies

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

sudo apt-get -y autoremove alire

Remove alire Configurations and Data

To remove alire configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge alire

Remove alire configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge alire

Dependencies

alire have the following dependencies:

References

Summary

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