Skip to content

Installation instructions fail on Fedora - rpm --eval '%{rhel}' returns empty #8916

@agoel41

Description

@agoel41

Where is the problem?

https://developer.konghq.com/gateway/install/#linux

What happened?

Problem
The Linux installation instructions at https://developer.konghq.com/gateway/install/#linux fail on Fedora.

The repo setup command uses:
$(rpm --eval '%{rhel}')
This returns an empty value on Fedora, causing the yum repo to be misconfigured.

Error

No match for argument: kong-enterprise-edition-3.13.0.0
Error: Unable to find a match: kong-enterprise-edition-3.13.0.0

Solution

Manually specifying codename=9 in the URL works:
curl -1sLf "https://packages.konghq.com/public/gateway-313/config.rpm.txt?distro=el&codename=9" | sudo tee /etc/yum.repos.d/kong-gateway-313.repo

What did you expect to happen?

Add a note for Fedora users to use codename=9 instead of $(rpm --eval '%{rhel}').

Code of Conduct and Community Expectations

  • I agree to follow this project's Code of Conduct
  • I agree to abide by the Community Expectations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions