How To Install yamllint on Fedora 36
Introduction
In this tutorial we learn how to install yamllint
on Fedora 36.
What is yamllint
A linter for YAML files. yamllint does not only check for syntax validity, but for weirdnesses like key repetition and cosmetic problems such as lines length, trailing spaces, indentation, etc.
We can use yum
or dnf
to install yamllint
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install yamllint.
Install yamllint 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 yamllint
using dnf
by running the following command:
sudo dnf -y install yamllint
Install yamllint 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 yamllint
using yum
by running the following command:
sudo yum -y install yamllint
How To Uninstall yamllint on Fedora 36
To uninstall only the yamllint
package we can use the following command:
sudo dnf remove yamllint
yamllint Package Contents on Fedora 36
/usr/bin/yamllint
/usr/lib/python3.10/site-packages/yamllint
/usr/lib/python3.10/site-packages/yamllint-1.26.3-py3.10.egg-info
/usr/lib/python3.10/site-packages/yamllint-1.26.3-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/yamllint-1.26.3-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/yamllint-1.26.3-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/yamllint-1.26.3-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/yamllint-1.26.3-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/yamllint-1.26.3-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/yamllint/__init__.py
/usr/lib/python3.10/site-packages/yamllint/__main__.py
/usr/lib/python3.10/site-packages/yamllint/__pycache__
/usr/lib/python3.10/site-packages/yamllint/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/linter.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/linter.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/parser.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/__pycache__/parser.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/cli.py
/usr/lib/python3.10/site-packages/yamllint/conf
/usr/lib/python3.10/site-packages/yamllint/conf/default.yaml
/usr/lib/python3.10/site-packages/yamllint/conf/relaxed.yaml
/usr/lib/python3.10/site-packages/yamllint/config.py
/usr/lib/python3.10/site-packages/yamllint/linter.py
/usr/lib/python3.10/site-packages/yamllint/parser.py
/usr/lib/python3.10/site-packages/yamllint/rules
/usr/lib/python3.10/site-packages/yamllint/rules/__init__.py
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/braces.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/braces.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/brackets.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/brackets.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/colons.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/colons.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/commas.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/commas.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/comments.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/comments.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/comments_indentation.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/comments_indentation.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/common.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/common.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/document_end.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/document_end.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/document_start.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/document_start.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/empty_lines.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/empty_lines.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/empty_values.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/empty_values.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/hyphens.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/hyphens.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/indentation.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/indentation.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/key_duplicates.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/key_duplicates.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/key_ordering.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/key_ordering.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/line_length.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/line_length.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/new_line_at_end_of_file.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/new_line_at_end_of_file.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/new_lines.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/new_lines.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/octal_values.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/octal_values.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/quoted_strings.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/quoted_strings.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/trailing_spaces.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/trailing_spaces.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/truthy.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/__pycache__/truthy.cpython-310.pyc
/usr/lib/python3.10/site-packages/yamllint/rules/braces.py
/usr/lib/python3.10/site-packages/yamllint/rules/brackets.py
/usr/lib/python3.10/site-packages/yamllint/rules/colons.py
/usr/lib/python3.10/site-packages/yamllint/rules/commas.py
/usr/lib/python3.10/site-packages/yamllint/rules/comments.py
/usr/lib/python3.10/site-packages/yamllint/rules/comments_indentation.py
/usr/lib/python3.10/site-packages/yamllint/rules/common.py
/usr/lib/python3.10/site-packages/yamllint/rules/document_end.py
/usr/lib/python3.10/site-packages/yamllint/rules/document_start.py
/usr/lib/python3.10/site-packages/yamllint/rules/empty_lines.py
/usr/lib/python3.10/site-packages/yamllint/rules/empty_values.py
/usr/lib/python3.10/site-packages/yamllint/rules/hyphens.py
/usr/lib/python3.10/site-packages/yamllint/rules/indentation.py
/usr/lib/python3.10/site-packages/yamllint/rules/key_duplicates.py
/usr/lib/python3.10/site-packages/yamllint/rules/key_ordering.py
/usr/lib/python3.10/site-packages/yamllint/rules/line_length.py
/usr/lib/python3.10/site-packages/yamllint/rules/new_line_at_end_of_file.py
/usr/lib/python3.10/site-packages/yamllint/rules/new_lines.py
/usr/lib/python3.10/site-packages/yamllint/rules/octal_values.py
/usr/lib/python3.10/site-packages/yamllint/rules/quoted_strings.py
/usr/lib/python3.10/site-packages/yamllint/rules/trailing_spaces.py
/usr/lib/python3.10/site-packages/yamllint/rules/truthy.py
/usr/share/doc/yamllint
/usr/share/doc/yamllint/README.rst
/usr/share/licenses/yamllint
/usr/share/licenses/yamllint/LICENSE
/usr/share/man/man1/yamllint.1.gz
References
Summary
In this tutorial we learn how to install yamllint
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).