sysbench icon indicating copy to clipboard operation
sysbench copied to clipboard

amzn/2 should use epel 7

Open henrikingo opened this issue 5 years ago • 4 comments

Hi Aleksey

I just noticed there's a problem in the packagecloud.io scripts to install a repo for sysbench. I use Amazon Linux 2, and it is correctly detected as amzn/2, but it tries to use el/6 repo. I think this error was previously masked, because I also install EPEL 7 and it seems to provide sysbench-1.0.17-2.el7. It is only now that you released 1.0.18 that install fails.

The first script is correct:

Detected operating system as amzn/2.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/akopytov/sysbench/config_file.repo?os=amzn&dist=2&source=script
done.

However, contents of repository file from above url is wrong:

[akopytov_sysbench]
name=akopytov_sysbench
baseurl=https://packagecloud.io/akopytov/sysbench/el/6/$basearch
...

henrikingo avatar Nov 03 '19 16:11 henrikingo

Hi Henrik,

The best thing I can do here is to forward this request to packagecloud. However, before doing so I wanted to find a link proving that Amazon Linux 2 is indeed based on RHEL7 and I've been unable to find such a link.

Is it really based RHEL7? What happens when you try to install sysbench from a RHEL6 repository?

akopytov avatar Nov 04 '19 18:11 akopytov

At least this documentation says EPEL 7: https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/

(And also "works for me" :-)

henrikingo avatar Nov 06 '19 13:11 henrikingo

The issue has been forwarded to packagecloud support.

akopytov avatar Nov 06 '19 16:11 akopytov

@henrikingo I got this advice from packagecloud:

You can override the install scripts by settings os=el dist=7 ./script.sh

akopytov avatar Nov 07 '19 04:11 akopytov