rsyslog / rsyslog-pkg-rhel-centos

Package build sources for building RHEL/CentOS packages
17 stars 27 forks source link

repo doesn't work on Amazon Linux out of the box #13

Open radu-gheorghe opened 9 years ago

radu-gheorghe commented 9 years ago

I wanted to submit a PR but I'm not sure what's the best option here. But first, the problem:

Amazon Linux is RPM-based, so most YUM repos out there work. Not the one for rsyslog, for two reasons: 1) Amazon Linux reports "latest" for $releasever, but that is fixed by following step 4 here: http://www.rsyslog.com/rhelcentos-rpms/ 2) Amazon Linux has "priority=10" to its own repos, which include an rsyslog package (version 5, of course :p). Because the rsyslog repo file has no "priority" set, the v5 package takes precedence. So YUM doesn't "see" v8, and even if you want to install a package that isn't in the Amazon repos (like rsyslog-elasticsearch) YUM will fail to find the needed dependency (rsyslog v8)

This can be fixed by setting a "priority" value lower than 10 on the rsyslog.repo file.

Now for the options:

What do you think we should do? And how? I'd gladly help, but I don't know what the next step would be :(

aturetta commented 8 years ago

It's actually based on Centos 6, so I fixed it by replacing $releaseserver with 6. trying to install 7 you get missing dependency on libsystemd-journal.

Pirabarlen-Cheenaramen commented 7 years ago

This has still not been fixed to far.

aradyuk commented 6 years ago

The same problem

mschuett commented 5 years ago

I just tested this with the current Amazon Linux 2. This one uses $releasever 2 and has the same high priority on its own repository (with rsyslog 8.24.0 as its default version).

To install a current rsyslog version I had to edit the repo file and set the epel version and a priority:

[rsyslog_v8]
name=Adiscon CentOS-7 - local packages for $basearch
baseurl=http://rpms.adiscon.com/v8-stable/epel-7/$basearch
enabled=1
gpgcheck=0
gpgkey=http://rpms.adiscon.com/RPM-GPG-KEY-Adiscon
protect=1
priority=9