More-Installation-Guides – ShellCheck Wiki

See this page on GitHub


Installing ShellCheck on CentOS 6 / RHEL6

Here are contributed instructions for installing ShellCheck on CentOS 6:

# Haskell Deps. Or read on and use that source in the wiki.
yum -y groupinstall "Development Tools"
yum -y install gmp-devel zlib # may need epel; zlib as shellcheck builddep reported in #519
sudo ln -s /usr/lib64/ # HACK

# Get haskell.
# Or follow
pushd "$(mktemp -d)" # prevent tarball from messing wherever you are up
tar xvzf haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz

# do the normal cabal thing
cabal update
cabal install shellcheck
cp ~/.cabal/bin/shellcheck /usr/local/bin

ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.