How To Install salt-lint on Fedora 36

In this tutorial we learn how to install salt-lint in Fedora 36. salt-lint is Salt State file (SLS) lint tool

Introduction

In this tutorial we learn how to install salt-lint on Fedora 36.

What is salt-lint

salt-lint checks Salt State files (SLS) for best practices and behavior that could potentially be improved.

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

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

sudo dnf -y install salt-lint

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

sudo yum -y install salt-lint

How To Uninstall salt-lint on Fedora 36

To uninstall only the salt-lint package we can use the following command:

sudo dnf remove salt-lint

salt-lint Package Contents on Fedora 36

/usr/bin/salt-lint
/usr/lib/python3.10/site-packages/salt_lint-0.8.0.dist-info
/usr/lib/python3.10/site-packages/salt_lint-0.8.0.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/salt_lint-0.8.0.dist-info/LICENSE
/usr/lib/python3.10/site-packages/salt_lint-0.8.0.dist-info/LICENSE.ansible-lint
/usr/lib/python3.10/site-packages/salt_lint-0.8.0.dist-info/METADATA
/usr/lib/python3.10/site-packages/salt_lint-0.8.0.dist-info/WHEEL
/usr/lib/python3.10/site-packages/salt_lint-0.8.0.dist-info/entry_points.txt
/usr/lib/python3.10/site-packages/salt_lint-0.8.0.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/saltlint
/usr/lib/python3.10/site-packages/saltlint/__init__.py
/usr/lib/python3.10/site-packages/saltlint/__main__.py
/usr/lib/python3.10/site-packages/saltlint/__pycache__
/usr/lib/python3.10/site-packages/saltlint/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/cli.py
/usr/lib/python3.10/site-packages/saltlint/config.py
/usr/lib/python3.10/site-packages/saltlint/formatters
/usr/lib/python3.10/site-packages/saltlint/formatters/__init__.py
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/default.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/default.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/json.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/json.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/severity.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/__pycache__/severity.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/formatters/base.py
/usr/lib/python3.10/site-packages/saltlint/formatters/default.py
/usr/lib/python3.10/site-packages/saltlint/formatters/json.py
/usr/lib/python3.10/site-packages/saltlint/formatters/severity.py
/usr/lib/python3.10/site-packages/saltlint/linter
/usr/lib/python3.10/site-packages/saltlint/linter/__init__.py
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/collection.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/collection.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/match.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/match.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/rule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/rule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/runner.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/__pycache__/runner.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/linter/collection.py
/usr/lib/python3.10/site-packages/saltlint/linter/match.py
/usr/lib/python3.10/site-packages/saltlint/linter/rule.py
/usr/lib/python3.10/site-packages/saltlint/linter/runner.py
/usr/lib/python3.10/site-packages/saltlint/rules
/usr/lib/python3.10/site-packages/saltlint/rules/CmdRunQuietRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/CmdWaitRecommendRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/FileExtensionRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/FileModeLeadingZeroRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/FileModeQuotationRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/JinjaCommentHasSpacesRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/JinjaPillarGrainsGetFormatRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/JinjaStatementHasSpacesRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/JinjaVariableHasSpacesRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/LineTooLongRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/NoIrregularSpacesRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/NoTabsRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/SLSFileNameRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerAbsent.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerImageAbsent.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerImagePresent.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerModWatch.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerNetworkAbsent.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerNetworkPresent.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerRunning.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerStopped.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerVolumeAbsent.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationDockerVolumePresent.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationElasticsearchIndexRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationVirtRevertedRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationVirtSavedRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/StateDeprecationVirtUnpoweredRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/TrailingWhitespaceRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/TypoOnchangesRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/TypoRequireRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/YamlHasOctalValueRule.py
/usr/lib/python3.10/site-packages/saltlint/rules/__init__.py
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/CmdRunQuietRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/CmdRunQuietRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/CmdWaitRecommendRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/CmdWaitRecommendRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/FileExtensionRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/FileExtensionRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/FileModeLeadingZeroRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/FileModeLeadingZeroRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/FileModeQuotationRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/FileModeQuotationRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/JinjaCommentHasSpacesRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/JinjaCommentHasSpacesRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/JinjaPillarGrainsGetFormatRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/JinjaPillarGrainsGetFormatRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/JinjaStatementHasSpacesRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/JinjaStatementHasSpacesRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/JinjaVariableHasSpacesRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/JinjaVariableHasSpacesRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/LineTooLongRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/LineTooLongRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/NoIrregularSpacesRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/NoIrregularSpacesRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/NoTabsRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/NoTabsRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/SLSFileNameRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/SLSFileNameRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerAbsent.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerAbsent.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerImageAbsent.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerImageAbsent.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerImagePresent.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerImagePresent.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerModWatch.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerModWatch.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerNetworkAbsent.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerNetworkAbsent.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerNetworkPresent.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerNetworkPresent.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerRunning.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerRunning.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerStopped.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerStopped.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerVolumeAbsent.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerVolumeAbsent.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerVolumePresent.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationDockerVolumePresent.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationElasticsearchIndexRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationElasticsearchIndexRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationVirtRevertedRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationVirtRevertedRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationVirtSavedRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationVirtSavedRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationVirtUnpoweredRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/StateDeprecationVirtUnpoweredRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/TrailingWhitespaceRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/TrailingWhitespaceRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/TypoOnchangesRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/TypoOnchangesRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/TypoRequireRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/TypoRequireRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/YamlHasOctalValueRule.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/YamlHasOctalValueRule.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/saltlint/rules/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/saltlint/utils.py
/usr/share/doc/salt-lint
/usr/share/doc/salt-lint/README.md
/usr/share/licenses/salt-lint
/usr/share/licenses/salt-lint/LICENSE
/usr/share/licenses/salt-lint/LICENSE.ansible-lint
/usr/share/man/man1/salt-lint.1.gz

References

Summary

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