How to install Shellcheck in CentOS

Source: Internet
Author: User

Tags: Install home LLC Ubuntu installation Ubunt TTY pre tool


Shellcheck is a tool for checking shell scripts.
Developed using Haskell language.
In Ubuntu, the installation can be done directly using apt install Shellcheck
However, there is no Shellcheck package in Centos,yum, so another way to install

CentOS Installation Shellcheck

Since Shellcheck was developed in the Haskell language,

Therefore, you will think of using Haskell's package management tool cabal to install.

yum install cabal-install

This way, you can use the Cabal install to mount things.

There is still some work to do before cabal install Shellcheck.

Note that the following instructions will be installed in the ~/.cabal/bin directory

cabal updatecabal install cabalcabal install shellcheck

Cabal Install cabal means the installation of the necessary cabal library, or the installation of Shellcheck will be error, necessary.

Interestingly, in a the user installed the above things,
Su to B user, the above steps also get once, hehe

Jenkins using Shellcheck

The Jenkins user of the CI server has installed Shellcheck, and only needs to add path/home/jenkins/.cabal/bin to use Shellcheck

How to install Shellcheck in CentOS

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: