Install Shellcheck On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS

Install Shellcheck On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS

shellcheck

Shell script static analysis tool.
Homepage: .

Install shellcheck

  • Debian apt-get install ShellCheck Click to copy
  • Ubuntu apt-get install ShellCheck Click to copy
  • Arch Linux pacman -S ShellCheck Click to copy
  • Kali Linux apt-get install ShellCheck Click to copy
  • Fedora dnf install ShellCheck Click to copy
  • Raspbian apt-get install ShellCheck Click to copy
  • macOS brew install ShellCheck Click to copy

Shell script static analysis tool. Homepage: .

How to use shellcheck?

Below are few example commands for shellcheck that you can use in the terminal.

Check a shell script:
shellcheck file.shClick to copy
Override script's shebang:
shellcheck --shell sh|bash|ksh file.shClick to copy
Ignore certain errors:
shellcheck --exclude SC1009 file.shClick to copy
Ignore multiple errors:
shellcheck --exclude SC1009,SC1073 file.shClick to copy
Installing shellcheck command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of shellcheck 2026 package in your OS.