How To Install yamllint on Fedora 34
Introduction
In this tutorial we learn how to install yamllint
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install yamllint.
Install yamllint on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install yamllint
using dnf
by running the following command:
sudo dnf -y install yamllint
Install yamllint on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the yamllint
package we can use the following command:
sudo dnf remove yamllint
yamllint Package Contents on Fedora 34
/usr/bin/yamllint
/usr/lib/python3.9/site-packages/yamllint
/usr/lib/python3.9/site-packages/yamllint-1.26.0-py3.9.egg-info
/usr/lib/python3.9/site-packages/yamllint-1.26.0-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/yamllint-1.26.0-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/yamllint-1.26.0-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/yamllint-1.26.0-py3.9.egg-info/entry_points.txt
/usr/lib/python3.9/site-packages/yamllint-1.26.0-py3.9.egg-info/requires.txt
/usr/lib/python3.9/site-packages/yamllint-1.26.0-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/yamllint/__init__.py
/usr/lib/python3.9/site-packages/yamllint/__main__.py
/usr/lib/python3.9/site-packages/yamllint/__pycache__
/usr/lib/python3.9/site-packages/yamllint/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/__main__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/__main__.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/cli.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/cli.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/config.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/config.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/linter.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/linter.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/parser.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/__pycache__/parser.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/cli.py
/usr/lib/python3.9/site-packages/yamllint/conf
/usr/lib/python3.9/site-packages/yamllint/conf/default.yaml
/usr/lib/python3.9/site-packages/yamllint/conf/relaxed.yaml
/usr/lib/python3.9/site-packages/yamllint/config.py
/usr/lib/python3.9/site-packages/yamllint/linter.py
/usr/lib/python3.9/site-packages/yamllint/parser.py
/usr/lib/python3.9/site-packages/yamllint/rules
/usr/lib/python3.9/site-packages/yamllint/rules/__init__.py
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/braces.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/braces.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/brackets.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/brackets.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/colons.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/colons.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/commas.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/commas.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/comments.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/comments.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/comments_indentation.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/comments_indentation.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/common.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/common.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/document_end.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/document_end.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/document_start.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/document_start.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/empty_lines.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/empty_lines.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/empty_values.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/empty_values.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/hyphens.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/hyphens.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/indentation.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/indentation.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/key_duplicates.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/key_duplicates.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/key_ordering.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/key_ordering.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/line_length.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/line_length.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/new_line_at_end_of_file.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/new_line_at_end_of_file.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/new_lines.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/new_lines.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/octal_values.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/octal_values.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/quoted_strings.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/quoted_strings.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/trailing_spaces.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/trailing_spaces.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/truthy.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/__pycache__/truthy.cpython-39.pyc
/usr/lib/python3.9/site-packages/yamllint/rules/braces.py
/usr/lib/python3.9/site-packages/yamllint/rules/brackets.py
/usr/lib/python3.9/site-packages/yamllint/rules/colons.py
/usr/lib/python3.9/site-packages/yamllint/rules/commas.py
/usr/lib/python3.9/site-packages/yamllint/rules/comments.py
/usr/lib/python3.9/site-packages/yamllint/rules/comments_indentation.py
/usr/lib/python3.9/site-packages/yamllint/rules/common.py
/usr/lib/python3.9/site-packages/yamllint/rules/document_end.py
/usr/lib/python3.9/site-packages/yamllint/rules/document_start.py
/usr/lib/python3.9/site-packages/yamllint/rules/empty_lines.py
/usr/lib/python3.9/site-packages/yamllint/rules/empty_values.py
/usr/lib/python3.9/site-packages/yamllint/rules/hyphens.py
/usr/lib/python3.9/site-packages/yamllint/rules/indentation.py
/usr/lib/python3.9/site-packages/yamllint/rules/key_duplicates.py
/usr/lib/python3.9/site-packages/yamllint/rules/key_ordering.py
/usr/lib/python3.9/site-packages/yamllint/rules/line_length.py
/usr/lib/python3.9/site-packages/yamllint/rules/new_line_at_end_of_file.py
/usr/lib/python3.9/site-packages/yamllint/rules/new_lines.py
/usr/lib/python3.9/site-packages/yamllint/rules/octal_values.py
/usr/lib/python3.9/site-packages/yamllint/rules/quoted_strings.py
/usr/lib/python3.9/site-packages/yamllint/rules/trailing_spaces.py
/usr/lib/python3.9/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 34 using yum and dnf.