How To Install gitlint on Fedora 36

In this tutorial we learn how to install gitlint in Fedora 36. gitlint is Git commit message linting tool

Introduction

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

What is gitlint

gitlint checks git commit messages for style, using validations based on well-known community standards or on checks which have proved useful maximum title length, trailing white-space checks, punctuation, tabs, minimum body length, valid email addresses…

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

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

sudo dnf -y install gitlint

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

sudo yum -y install gitlint

How To Uninstall gitlint on Fedora 36

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

sudo dnf remove gitlint

gitlint Package Contents on Fedora 36

/usr/bin/gitlint
/usr/lib/python3.10/site-packages/gitlint
/usr/lib/python3.10/site-packages/gitlint-0.15.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/gitlint-0.15.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/gitlint-0.15.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/gitlint-0.15.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/gitlint-0.15.0-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/gitlint-0.15.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/gitlint-0.15.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/gitlint/__init__.py
/usr/lib/python3.10/site-packages/gitlint/__pycache__
/usr/lib/python3.10/site-packages/gitlint/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/cache.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/cache.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/display.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/display.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/exception.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/exception.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/git.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/git.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/hooks.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/hooks.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/lint.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/lint.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/options.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/options.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/rule_finder.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/rule_finder.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/rules.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/rules.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/shell.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/shell.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/cache.py
/usr/lib/python3.10/site-packages/gitlint/cli.py
/usr/lib/python3.10/site-packages/gitlint/config.py
/usr/lib/python3.10/site-packages/gitlint/contrib
/usr/lib/python3.10/site-packages/gitlint/contrib/__init__.py
/usr/lib/python3.10/site-packages/gitlint/contrib/__pycache__
/usr/lib/python3.10/site-packages/gitlint/contrib/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/contrib/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/contrib/rules
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/__init__.py
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/__pycache__
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/__pycache__/conventional_commit.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/__pycache__/conventional_commit.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/__pycache__/signedoff_by.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/__pycache__/signedoff_by.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/conventional_commit.py
/usr/lib/python3.10/site-packages/gitlint/contrib/rules/signedoff_by.py
/usr/lib/python3.10/site-packages/gitlint/display.py
/usr/lib/python3.10/site-packages/gitlint/exception.py
/usr/lib/python3.10/site-packages/gitlint/files
/usr/lib/python3.10/site-packages/gitlint/files/commit-msg
/usr/lib/python3.10/site-packages/gitlint/files/gitlint
/usr/lib/python3.10/site-packages/gitlint/git.py
/usr/lib/python3.10/site-packages/gitlint/hooks.py
/usr/lib/python3.10/site-packages/gitlint/lint.py
/usr/lib/python3.10/site-packages/gitlint/options.py
/usr/lib/python3.10/site-packages/gitlint/rule_finder.py
/usr/lib/python3.10/site-packages/gitlint/rules.py
/usr/lib/python3.10/site-packages/gitlint/shell.py
/usr/lib/python3.10/site-packages/gitlint/tests
/usr/lib/python3.10/site-packages/gitlint/tests/__init__.py
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_cache.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_cache.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_display.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_display.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_hooks.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_hooks.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_lint.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_lint.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_options.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_options.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/__pycache__/test_utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/base.py
/usr/lib/python3.10/site-packages/gitlint/tests/contrib
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/__init__.py
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/__pycache__
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/__pycache__/test_contrib_rules.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/__pycache__/test_contrib_rules.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/__init__.py
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/__pycache__
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/__pycache__/test_conventional_commit.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/__pycache__/test_conventional_commit.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/__pycache__/test_signedoff_by.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/__pycache__/test_signedoff_by.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/test_conventional_commit.py
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/rules/test_signedoff_by.py
/usr/lib/python3.10/site-packages/gitlint/tests/contrib/test_contrib_rules.py
/usr/lib/python3.10/site-packages/gitlint/tests/rules
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__init__.py
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_body_rules.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_body_rules.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_configuration_rules.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_configuration_rules.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_meta_rules.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_meta_rules.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_rules.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_rules.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_title_rules.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_title_rules.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_user_rules.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/__pycache__/test_user_rules.cpython-310.pyc
/usr/lib/python3.10/site-packages/gitlint/tests/rules/test_body_rules.py
/usr/lib/python3.10/site-packages/gitlint/tests/rules/test_configuration_rules.py
/usr/lib/python3.10/site-packages/gitlint/tests/rules/test_meta_rules.py
/usr/lib/python3.10/site-packages/gitlint/tests/rules/test_rules.py
/usr/lib/python3.10/site-packages/gitlint/tests/rules/test_title_rules.py
/usr/lib/python3.10/site-packages/gitlint/tests/rules/test_user_rules.py
/usr/lib/python3.10/site-packages/gitlint/tests/test_cache.py
/usr/lib/python3.10/site-packages/gitlint/tests/test_display.py
/usr/lib/python3.10/site-packages/gitlint/tests/test_hooks.py
/usr/lib/python3.10/site-packages/gitlint/tests/test_lint.py
/usr/lib/python3.10/site-packages/gitlint/tests/test_options.py
/usr/lib/python3.10/site-packages/gitlint/tests/test_utils.py
/usr/lib/python3.10/site-packages/gitlint/utils.py
/usr/share/doc/gitlint
/usr/share/doc/gitlint/README.md
/usr/share/licenses/gitlint
/usr/share/licenses/gitlint/LICENSE

References

Summary

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