rsyslog-pkg-rhel-centos
rsyslog-pkg-rhel-centos copied to clipboard
repo doesn't work on Amazon Linux out of the box
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:
- Amazon Linux reports "latest" for $releasever, but that is fixed by following step 4 here: http://www.rsyslog.com/rhelcentos-rpms/
- 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:
- add priority=9, for example, to rsyslog.repo. Not sure how to make a PR that does this. Anyway, if we go this route, apparently it will only work if yum-plugin-priorities is installed: http://wiki.centos.org/PackageManagement/Yum/Priorities I'm not sure it is by default for RHEL/CentOS 6 and 7
- add a note at step 4 on the RPM page that for Amazon Linux one needs to add it manually (along with replacing $releaseserver with 7). Again, I don't see where I could do a PR on this (I assume it's not possible for now on the website project)
What do you think we should do? And how? I'd gladly help, but I don't know what the next step would be :(
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.
This has still not been fixed to far.
The same problem
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