Open radu-gheorghe opened 9 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.
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
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 :(