Skip to content

fix(installer): use version-agnostic /rpm path for yum/dnf repo#65

Merged
miguelsanchez-upsun merged 2 commits into
mainfrom
cli-140-installer-rpm-path
May 20, 2026
Merged

fix(installer): use version-agnostic /rpm path for yum/dnf repo#65
miguelsanchez-upsun merged 2 commits into
mainfrom
cli-140-installer-rpm-path

Conversation

@pjcdawkins
Copy link
Copy Markdown
Contributor

Summary

  • installer.sh wrote a yum repo URL using $releasever, which works on Fedora but breaks on AlmaLinux/RHEL/Rocky/CentOS Stream (where $releasever is the RHEL major version, e.g. 10, with no published /fedora/10/... path). Customers report a 403 during dnf metadata download.
  • repogen.sh now also publishes a version-agnostic /rpm/$arch/ repo. installer.sh and the README point at /rpm/$basearch. The per-Fedora-version /fedora/$ver/$arch/ paths are kept for backwards compatibility.
  • apt (/debian) and apk (/alpine) were already version-agnostic and need no change.

The yum repo URL written by installer.sh used $releasever, which on
Fedora resolves to a published path (40/41/42/43) but on
AlmaLinux/RHEL/Rocky/CentOS Stream resolves to the RHEL major version
(8/9/10) and points at a non-existent path, causing a 403 during
metadata download.

repogen.sh now also publishes a version-agnostic /rpm/$arch/ repo
alongside the per-Fedora-version paths. installer.sh and the README
point at /rpm/$basearch. The per-Fedora paths are kept for users
who already configured them.

apt (/debian) and apk (/alpine) were already version-agnostic and
need no change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 4, 2026 09:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates RPM repository publishing and installation instructions to use a version-agnostic /rpm/$basearch path, avoiding failures on RHEL-like distros where $releasever doesn’t map to a Fedora path.

Changes:

  • Add generation + S3 publishing of a universal RPM repo under /rpm/$arch/ while keeping per-Fedora-version repos for backward compatibility.
  • Update installer.sh yum/dnf repo configuration to use https://repositories.upsun.com/rpm/$basearch.
  • Update README RPM installation instructions to reference the new /rpm/$basearch URL.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
repogen.sh Publishes a new version-agnostic RPM repo at /rpm/ in addition to existing per-Fedora-version repos.
README.md Updates RPM installation docs to use the /rpm/$basearch repo URL.
installer.sh Switches yum/dnf repo configuration to use the version-agnostic /rpm/$basearch path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread installer.sh
@miguelsanchez-upsun miguelsanchez-upsun merged commit 501ebe7 into main May 20, 2026
11 of 12 checks passed
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

Successfully merging this pull request may close these issues.

3 participants