How To Install hackage-tracker on Debian 12

Learn how to install hackage-tracker on Debian 12 with this tutorial. hackage-tracker is Haskell package version tracker

Introduction

In this tutorial we learn how to install hackage-tracker on Debian 12.

What is hackage-tracker

hackage-tracker is:

Generates a file with information that can be used to update the Debian versions on Hackage for each package available there. Those versions appear in the Distribution field on Hackage.

Furthermore produces an HTML page that compares the Haskell package versions available in Debian with those available on Hackage and elsewhere.

The data is currently displayed at https://hackage-tracker.debian.net.

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

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

sudo apt-get update

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

sudo apt-get -y install hackage-tracker

Install hackage-tracker Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install hackage-tracker

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

sudo aptitude -y install hackage-tracker

How To Uninstall hackage-tracker on Debian 12

To uninstall only the hackage-tracker package we can use the following command:

sudo apt-get remove hackage-tracker

Uninstall hackage-tracker And Its Dependencies

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

sudo apt-get -y autoremove hackage-tracker

Remove hackage-tracker Configurations and Data

To remove hackage-tracker configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge hackage-tracker

Remove hackage-tracker configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge hackage-tracker

Dependencies

hackage-tracker have the following dependencies:

References

Summary

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