How To Install licensecheck on Debian 9
Introduction
In this tutorial we learn how to install licensecheck on Debian 9.
What is licensecheck
licensecheck is:
Licensecheck attempts to determine the license that applies to each file passed to it, by searching the start of the file for text belonging to various licenses.
There are three methods to install licensecheck 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 licensecheck Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install licensecheck using apt-get by running the following command:
sudo apt-get -y install licensecheck
Install licensecheck Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install licensecheck using apt by running the following command:
sudo apt -y install licensecheck
Install licensecheck 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 licensecheck using aptitude by running the following command:
sudo aptitude -y install licensecheck
How To Uninstall licensecheck on Debian 9
To uninstall only the licensecheck package we can use the following command:
sudo apt-get remove licensecheck
Uninstall licensecheck And Its Dependencies
To uninstall licensecheck and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove licensecheck
Remove licensecheck Configurations and Data
To remove licensecheck configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge licensecheck
Remove licensecheck configuration, data, and all of its dependencies
We can use the following command to remove licensecheck configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge licensecheck
Dependencies
licensecheck have the following dependencies:
- libgetopt-long-descriptive-perl
- libpod-constants-perl
- libsort-key-perl
- libstring-escape-perl
- libtry-tiny-perl
- libnamespace-clean-perl
- libpath-iterator-rule-perl
- libmoo-perl
- libpath-tiny-perl
- perl
- libscalar-list-utils-perl
References
Summary
In this tutorial we learn how to install licensecheck package on Debian 9 using different package management tools: apt, apt-get and aptitude.