Support shellcheck 0.4.4+ on Ubuntu 16.04 xenial

Asked by Conor Sheehan

Could you add ubuntu 16.04 xenial support to one of the 0.4.4+ builds of shellcheck?
I'd really appreciate it because I'd like to use the disable per file feature added in 0.4.4
https://github.com/koalaman/shellcheck/wiki/Ignore#ignoring-all-instances-in-a-file-044

The latest release that supports ubuntu 16.04 xenial is shellcheck 0.3.7-5
https://launchpad.net/ubuntu/+source/shellcheck/0.3.7-5
The next shellcheck version (0.4.6-1) lowest supported ubuntu version is 17.10 artful.
https://launchpad.net/ubuntu/+source/shellcheck/0.4.6-1

I installed the precompiled binary (currently 0.6.0) from here for now:
https://storage.googleapis.com/shellcheck/shellcheck-stable.linux.x86_64.tar.xz
but I'd rather let apt manage the package than adding it to my path and manually updating it.

Thanks in advance :)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shellcheck Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Manfred Hampl suggests this article as an answer to your question:
FAQ #3037: “no rolling release”.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

There are PPAs available with higher versions of shellcheck for Ubuntu xenial.
Maybe one of these can be used to solve your problem.

Revision history for this message
Conor Sheehan (conorsheehan1) said :
#3

All I'm seeing is this one, got any links to alternative PPAs?
https://launchpad.net/ubuntu/+search?text=shellcheck

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#4

The search page that you opened shows the packages named "shellsheck" in the official Ubuntu repositories.
For a listing os PPAs with shellcheck proceed as follows:

Open the package page for shellcheck from the search page that you already opened, this leads to
https://launchpad.net/ubuntu/+source/shellcheck
And on that page scroll to the very end, to the text "Other versions of 'shellcheck' in untrusted archives."
There you see a sample of three links to PPAs, and another link to the PPA search page for shellcheck ("other untrusted versions of 'shellcheck'.")
Select one of these four links to proceed.

Or:
open the main page for Ubuntu on Launchpad https://launchpad.net/ubuntu and use the link on the top right part "Personal Package Archives", leading to
https://launchpad.net/ubuntu/+ppas

Fill in the search text and you get
https://launchpad.net/ubuntu/+ppas?name_filter=shellcheck

There are 8 PPAs shown which match the search criteria.
E.g. GHC 8.0.2 https://launchpad.net/~jonathonf/+archive/ubuntu/ghc-8.0.2 offers shellcheck 0.4.6-1 for xenial.
Open the link to that PPA for instructions how to activate it.

Remark: The standard disclaimer for the reduced trustworthiness of PPAs (compared to the standard Ubuntu repositories) applies of course.

Revision history for this message
Conor Sheehan (conorsheehan1) said :
#5

Thanks Manfred Hampl, that solved my question.