How To Install yamllint on Rocky Linux 8
Introduction
In this tutorial we learn how to install yamllint
on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install yamllint.
Install yamllint on Rocky Linux 8 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 Rocky Linux 8 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 Rocky Linux 8
To uninstall only the yamllint
package we can use the following command:
sudo dnf remove yamllint
yamllint Package Contents on Rocky Linux 8
/usr/bin/yamllint
/usr/lib/python3.6/site-packages/yamllint
/usr/lib/python3.6/site-packages/yamllint-1.26.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/yamllint-1.26.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/yamllint-1.26.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/yamllint-1.26.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/yamllint-1.26.0-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/yamllint-1.26.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/yamllint-1.26.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/yamllint/__init__.py
/usr/lib/python3.6/site-packages/yamllint/__main__.py
/usr/lib/python3.6/site-packages/yamllint/__pycache__
/usr/lib/python3.6/site-packages/yamllint/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/__main__.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/cli.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/cli.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/config.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/config.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/linter.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/linter.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/parser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/__pycache__/parser.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/cli.py
/usr/lib/python3.6/site-packages/yamllint/conf
/usr/lib/python3.6/site-packages/yamllint/conf/default.yaml
/usr/lib/python3.6/site-packages/yamllint/conf/relaxed.yaml
/usr/lib/python3.6/site-packages/yamllint/config.py
/usr/lib/python3.6/site-packages/yamllint/linter.py
/usr/lib/python3.6/site-packages/yamllint/parser.py
/usr/lib/python3.6/site-packages/yamllint/rules
/usr/lib/python3.6/site-packages/yamllint/rules/__init__.py
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/braces.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/braces.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/brackets.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/brackets.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/colons.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/colons.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/commas.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/commas.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/comments.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/comments.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/comments_indentation.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/comments_indentation.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/common.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/common.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/document_end.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/document_end.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/document_start.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/document_start.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/empty_lines.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/empty_lines.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/empty_values.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/empty_values.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/hyphens.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/hyphens.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/indentation.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/indentation.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/key_duplicates.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/key_duplicates.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/key_ordering.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/key_ordering.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/line_length.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/line_length.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/new_line_at_end_of_file.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/new_line_at_end_of_file.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/new_lines.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/new_lines.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/octal_values.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/octal_values.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/quoted_strings.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/quoted_strings.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/trailing_spaces.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/trailing_spaces.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/truthy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/__pycache__/truthy.cpython-36.pyc
/usr/lib/python3.6/site-packages/yamllint/rules/braces.py
/usr/lib/python3.6/site-packages/yamllint/rules/brackets.py
/usr/lib/python3.6/site-packages/yamllint/rules/colons.py
/usr/lib/python3.6/site-packages/yamllint/rules/commas.py
/usr/lib/python3.6/site-packages/yamllint/rules/comments.py
/usr/lib/python3.6/site-packages/yamllint/rules/comments_indentation.py
/usr/lib/python3.6/site-packages/yamllint/rules/common.py
/usr/lib/python3.6/site-packages/yamllint/rules/document_end.py
/usr/lib/python3.6/site-packages/yamllint/rules/document_start.py
/usr/lib/python3.6/site-packages/yamllint/rules/empty_lines.py
/usr/lib/python3.6/site-packages/yamllint/rules/empty_values.py
/usr/lib/python3.6/site-packages/yamllint/rules/hyphens.py
/usr/lib/python3.6/site-packages/yamllint/rules/indentation.py
/usr/lib/python3.6/site-packages/yamllint/rules/key_duplicates.py
/usr/lib/python3.6/site-packages/yamllint/rules/key_ordering.py
/usr/lib/python3.6/site-packages/yamllint/rules/line_length.py
/usr/lib/python3.6/site-packages/yamllint/rules/new_line_at_end_of_file.py
/usr/lib/python3.6/site-packages/yamllint/rules/new_lines.py
/usr/lib/python3.6/site-packages/yamllint/rules/octal_values.py
/usr/lib/python3.6/site-packages/yamllint/rules/quoted_strings.py
/usr/lib/python3.6/site-packages/yamllint/rules/trailing_spaces.py
/usr/lib/python3.6/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
References
Summary
In this tutorial we learn how to install yamllint
on Rocky Linux 8 using yum and dnf.