How To Install licensecheck on Fedora 36

In this tutorial we learn how to install licensecheck in Fedora 36. licensecheck is Simple license checker for source files

Introduction

In this tutorial we learn how to install licensecheck on Fedora 36.

What is licensecheck

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.

We can use yum or dnf to install licensecheck on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install licensecheck.

Install licensecheck on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install licensecheck using dnf by running the following command:

sudo dnf -y install licensecheck

Install licensecheck on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install licensecheck using yum by running the following command:

sudo yum -y install licensecheck

How To Uninstall licensecheck on Fedora 36

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

sudo dnf remove licensecheck

licensecheck Package Contents on Fedora 36

/usr/bin/licensecheck
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/licensecheck
/usr/share/doc/licensecheck
/usr/share/doc/licensecheck/Changes
/usr/share/doc/licensecheck/README
/usr/share/licenses/licensecheck
/usr/share/licenses/licensecheck/LICENSE
/usr/share/man/man1/licensecheck.1.gz
/usr/share/man/man3/App::Licensecheck.3pm.gz
/usr/share/perl5/vendor_perl/App
/usr/share/perl5/vendor_perl/App/Licensecheck.pm

References

Summary

In this tutorial we learn how to install licensecheck on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).