Skip to content
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

CentOS 8 RPMs #1789

Open
jhmartin opened this issue Jan 9, 2020 · 1 comment
Open

CentOS 8 RPMs #1789

jhmartin opened this issue Jan 9, 2020 · 1 comment

Comments

@jhmartin
Copy link

jhmartin commented Jan 9, 2020

It looks like CentOS 8 EPEL does not yet have a ShellCheck RPM:

FROM centos:8

RUN yum install -y epel-release && \
yum install -y ShellCheck
Step 1/2 : FROM centos:8
8: Pulling from library/centos
Digest: sha256:f94c1d992c193b3dc09e297ffd54d8a4f1dc946c37cbeceb26d35ce1647f88d9
Status: Downloaded newer image for centos:8
 ---> 0f3e07c0138f
Step 2/2 : RUN yum install -y epel-release && yum install -y ShellCheck
 ---> Running in eeae32e65c15
CentOS-8 - AppStream                            690 kB/s | 6.3 MB     00:09
CentOS-8 - Base                                 535 kB/s | 7.9 MB     00:15
CentOS-8 - Extras                               591  B/s | 2.1 kB     00:03
Dependencies resolved.
================================================================================
 Package               Arch            Version            Repository       Size
================================================================================
Installing:
 epel-release          noarch          8-5.el8            extras           22 k

Transaction Summary
================================================================================
Install  1 Package

Total download size: 22 k
Installed size: 30 k
Downloading Packages:
epel-release-8-5.el8.noarch.rpm                  19 kB/s |  22 kB     00:01
--------------------------------------------------------------------------------
Total                                           8.6 kB/s |  22 kB     00:02
warning: /var/cache/dnf/extras-cbfb2f07b0021b7e/packages/epel-release-8-5.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS-8 - Extras                               1.2 MB/s | 1.6 kB     00:00
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) <security@centos.org>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Installing       : epel-release-8-5.el8.noarch                            1/1
  Running scriptlet: epel-release-8-5.el8.noarch                            1/1
  Verifying        : epel-release-8-5.el8.noarch                            1/1

Installed:
  epel-release-8-5.el8.noarch

Complete!
Extra Packages for Enterprise Linux 8 - x86_64  665 kB/s | 5.2 MB     00:08
Last metadata expiration check: 0:00:04 ago on Thu Jan  9 17:47:09 2020.
No match for argument: ShellCheck
Error: Unable to find a match
The command '/bin/sh -c yum install -y epel-release && yum install -y ShellCheck' returned a non-zero code: 1
@David-Else
Copy link

David-Else commented Jan 16, 2020

It is a shame! Afraid I don't know how to build it myself, but apparently if you ask nicely someone might do it. Maybe on Bugzilla?

In the mean time I made this script to securely install it on Centos, let me know if you find any problems:

curl -Of https://shellcheck.storage.googleapis.com/shellcheck-v0.7.0.linux.x86_64.tar.xz
echo "84e06bee3c8b8c25f46906350fb32708f4b661636c04e55bd19cdd1071265112d84906055372149678d37f09a1667019488c62a0561b81fe6a6b45ad4fae4ac0 ./shellcheck-v0.7.0.linux.x86_64.tar.xz" |
    sha512sum --check
tar -C /usr/local/bin/ -xf shellcheck-v0.7.0.linux.x86_64.tar.xz --no-anchored 'shellcheck' --strip=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants