Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
radu-gheorghe opened this issue Aug 17, 2015 · 4 comments
Open

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

radu-gheorghe opened this issue Aug 17, 2015 · 4 comments

Comments

@radu-gheorghe
Copy link

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:

  • 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 :(

@aturetta
Copy link
Contributor

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
Copy link

This has still not been fixed to far.

@aradyuk
Copy link

aradyuk commented Apr 29, 2018

The same problem

@mschuett
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants