I’ve to install shellcheck on a CentOS 7 box, this is the latest CentOS version. The tool is a great linter for bash scripts, which I want to integrate into our CI pipeline. shellcheck isn’t packaged so I will build it from source. From their installguide:
yum -y install cabal-install su jenkins cd ~ cabal update cabal install shellcheck
This will fail because the cabal lib is outdated. Remember that this is the latest CentOS….
Lucky me, I can build a new cabal version with cabal:
cabal install cabal
After that step we can successfully build shellcheck:
cabal install shellcheck
The shellcheck binary is now available in