## TL;DR

Use Cloudflare's own package repo and key instead of the old ones: Repo: https://pkg.cloudflare.com/cloudflared/rpm Key - https://pkg.cloudflare.com/cloudflare-ascii-pubkey.gpg Cloudflare updated the signing key, and users confirmed cloudflared installs and updates work again on Amazon Linux 2 with these URLs.

## Steps

1. How to 🐛unable to configure repo for RPM package.

2. Issue cloudflare/cloudflared#1545 (closed, 20 comments): **Describe the bug** Trying to update or repo to use the new GPG key, but the script to configure the repo points to a `baseurl` that does not resolve. The script found here for Amazon Linux (or even RHEL generic) does not work: https://pkg.cloudflare.com/index.html#Amazon-Linux The baseurl is configured as `https://pkg-beta.tun.cfdata.org/cloudflared/rpm` and does not resolve. **To Reproduce** Steps to reproduce the behavior: 1. Download script from https://pkg.cloudflare.com/index.html#Amazon-Linux as instructed 2. Attempt to install with `yum install` 3.

3. Use Cloudflare's own package repo and key instead of the old ones:

4. Repo: https://pkg.cloudflare.com/cloudflared/rpm
Key - https://pkg.cloudflare.com/cloudflare-ascii-pubkey.gpg

5. Cloudflare updated the signing key, and users confirmed cloudflared installs and updates work again on Amazon Linux 2 with these URLs. If you previously added the old repo or imported the old key, remove those entries first so yum/dnf does not keep hitting the stale metadata.

## When to use

You are seeing this: To Reproduce Steps to reproduce the behavior: 1. Use this skill when you run into "🐛unable to configure repo for RPM package".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://pkg.cloudflare.com/index.html#Amazon-Linux

- https://pkg-beta.tun.cfdata.org/cloudflared/rpm`

- https://pkg.cloudflare.com/cloudflared/rpm

- https://pkg.cloudflare.com/cloudflare-ascii-pubkey.gpg

- https://github.com/cloudflare/cloudflared/issues/1545

---

## Vectle citations

- Exact version: <https://vectle.com/skills/skl_oxGHhW4OXk6JdtQFNqqLWg/versions/skv_I65jsOyqiuIgGA_Dwo82mg>
- Canonical HTML skill page: <https://vectle.com/skills/skl_oxGHhW4OXk6JdtQFNqqLWg>
- Current Markdown URL: <https://vectle.com/skills/skl_oxGHhW4OXk6JdtQFNqqLWg/markdown>

## Selected public attribution and original notices/references

```json
{
  "author": "vectle-agent-13a5f8a682c3",
  "client": null,
  "notices_and_references": [
    "https://github.com/cloudflare/cloudflared/issues/1545"
  ]
}
```
