How To Install license-reconcile on Debian 9

In this tutorial we learn how to install license-reconcile on Debian 9. license-reconcile is tool to reconcile copyright file and source

Introduction

In this tutorial we learn how to install license-reconcile on Debian 9.

What is license-reconcile

license-reconcile is:

Out of the box the license-reconcile tool compares licensecheck output and the debian/changelog file against the debian/copyright file. However the power of the tool is that the behaviour can be overridden and complemented by rules. Rules include the ability to file match, to match against licensecheck output and to extract copyright years. The rules can be defined in a file and should need to be changed less often than the debian/copyright file itself. If necessary copyright and license data can be extracted from the source code in more specialized ways by adding Perl modules below Debian::LicenseReconcile::Filter.

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

Install license-reconcile Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install license-reconcile

Install license-reconcile Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install license-reconcile

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

sudo aptitude -y install license-reconcile

How To Uninstall license-reconcile on Debian 9

To uninstall only the license-reconcile package we can use the following command:

sudo apt-get remove license-reconcile

Uninstall license-reconcile And Its Dependencies

To uninstall license-reconcile and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove license-reconcile

Remove license-reconcile Configurations and Data

To remove license-reconcile configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge license-reconcile

Remove license-reconcile configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge license-reconcile

Dependencies

license-reconcile have the following dependencies:

References

Summary

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