How To Install ShellCheck on Fedora 36
Introduction
In this tutorial we learn how to install ShellCheck
on Fedora 36.
What is ShellCheck
The goals of ShellCheck are * To point out and clarify typical beginner’s syntax issues, that causes a shell to give cryptic error messages. * To point out and clarify typical intermediate level semantic problems, that causes a shell to behave strangely and counter-intuitively. * To point out subtle caveats, corner cases and pitfalls, that may cause an advanced user’s otherwise working script to fail under future circumstances.
We can use yum
or dnf
to install ShellCheck
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install ShellCheck.
Install ShellCheck 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 ShellCheck
using dnf
by running the following command:
sudo dnf -y install ShellCheck
Install ShellCheck 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 ShellCheck
using yum
by running the following command:
sudo yum -y install ShellCheck
How To Uninstall ShellCheck on Fedora 36
To uninstall only the ShellCheck
package we can use the following command:
sudo dnf remove ShellCheck
ShellCheck Package Contents on Fedora 36
/usr/bin/shellcheck
/usr/lib/.build-id
/usr/lib/.build-id/52
/usr/lib/.build-id/52/0642150b22d1c4596f47a2a565a996b8de156e
/usr/share/doc/ShellCheck
/usr/share/doc/ShellCheck/README.md
/usr/share/licenses/ShellCheck
/usr/share/licenses/ShellCheck/LICENSE
/usr/share/man/man1/shellcheck.1.gz
References
Summary
In this tutorial we learn how to install ShellCheck
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).