akopytov / sysbench

Scriptable database and system performance benchmark
GNU General Public License v2.0
6.08k stars 1.08k forks source link

amzn/2 should use epel 7 #327

Open henrikingo opened 4 years ago

henrikingo commented 4 years ago

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
...
akopytov commented 4 years ago

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?

henrikingo commented 4 years ago

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

(And also "works for me" :-)

akopytov commented 4 years ago

The issue has been forwarded to packagecloud support.

akopytov commented 4 years ago

@henrikingo I got this advice from packagecloud:

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