-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debian: apt-get install -y shellcheck installs older version #704
Comments
Having ancient versions in the Debian repositories should come to now surprise to any Debian user but mentioning it really can't do any harm. It would be great though if |
Pretty much true to most distributions with some sense of "stable" to them (debian seem to be very late on the releases even in testing for shellcheck though). https://github.com/koalaman/shellcheck/releases (0.4.4 is latest) Pointing fingers at anyone distribution is not very friendly. Describing that packaged versions from distributions will always be behind the git HEAD and so on is on the other hand a good idea. |
Since we can't wait for distributions to include the latest version, since it takes ages... I noticed there's a link to download a freshly built binary. Can anyone provide the commands to manually use that binary to do the installation? We could even add those steps to the readme, right @koalaman ? |
You just extract and run it. There's no installation. |
You're right. I've used these steps to make it globally available: # Download
wget -P tmp_install_folder/ https://storage.googleapis.com/shellcheck/shellcheck-latest.linux.x86_64.tar.xz
# Extract
tar xvf tmp_install_folder/shellcheck-latest.linux.x86_64.tar.xz -C tmp_install_folder
# Make it globally available
cp tmp_install_folder/shellcheck-latest/shellcheck /usr/bin/shellcheck
# Cleanup
rm -r tmp_install_folder I think you can close it now. |
The @dialex solution above still works, but there are some points that you should note. Change the download URLThe URL to
Otherwise, you'll get the below message. $ ./shellcheck --version
You are downloading ShellCheck from the wrong URL!
Please update to the latest one:
https://github.com/koalaman/shellcheck/releases/download/latest/shellcheck-latest.linux.x86_64.tar.xz
For more information, see:
https://github.com/koalaman/shellcheck/issues/1871 Don't forget to install
|
Perhaps we could specify in the README that apt-get install might install an earlier version; in my case apt-get install is installing version: 0.3.4
The text was updated successfully, but these errors were encountered: