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

/etc/yum.repos.d/percona* files still use http on RHEL8 and RHEL9 #673

Open
prime-minister-of-fun opened this issue Sep 18, 2024 · 2 comments

Comments

@prime-minister-of-fun
Copy link

Following these instructions: https://docs.percona.com/postgresql/15/yum.html#procedure
After this step, sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm
The percona repos are installed to /etc/yum.repos.d/percona*
All of the repos use http urls. Dnf/yum/whatever doesn't support http.

I do this to keep going: sed -i "s/http\:/https\:/g" /etc/yum.repos.d/percona*

@prime-minister-of-fun
Copy link
Author

prime-minister-of-fun commented Sep 18, 2024

steps to reproduce:
curl https://repo.percona.com/yum/percona-release-latest.noarch.rpm -o /root/yum-percona-release-latest-noarch.rpm

rpm -i /root/yum-percona-release-latest-noarch.rpm

Successful: "The percona-release package now contains a percona-release script that can enable additional repositories ..."

grep -r http\: /etc/yum.repos.d
/etc/yum.repos.d/percona-prel-release.repo:baseurl = http://repo.percona.com/prel/yum/release/$releasever/RPMS/noarch
/etc/yum.repos.d/percona-telemetry-release.repo:baseurl = http://repo.percona.com/telemetry/yum/release/$releasever/RPMS/x86_64
/etc/yum.repos.d/percona-telemetry-release.repo:baseurl = http://repo.percona.com/telemetry/yum/release/$releasever/SRPMS
/etc/yum.repos.d/percona-pmm2-client-release.repo.bak:baseurl = http://repo.percona.com/pmm2-client/yum/release/$releasever/RPMS/x86_64
/etc/yum.repos.d/percona-pmm2-client-release.repo.bak:baseurl = http://repo.percona.com/pmm2-client/yum/release/$releasever/SRPMS
/etc/yum.repos.d/percona-ppg-15.8-release.repo:baseurl = http://repo.percona.com/ppg-15.8/yum/release/$releasever/RPMS/x86_64
/etc/yum.repos.d/percona-ppg-15.8-release.repo:baseurl = http://repo.percona.com/ppg-15.8/yum/release/$releasever/SRPMS

Let's keep going...
percona-release setup ppg15.8
Error: Failed to download metadata for repo 'prel-release-noarch': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Errors during downloading metadata for repository 'prel-release-noarch':

  • Enabling the Percona Distribution for PostgreSQL 158 repository

Sed command from first post fixes it.
re-run percona-release setup ppg15.8
Success.
I have to run this again because the newly enabled repo is still http.
sed -i "s/http\:/https\:/g" /etc/yum.repos.d/percona*

@prime-minister-of-fun
Copy link
Author

[ppg-15.8-release-x86_64]
name = Percona Distribution for PostgreSQL 158 release/x86_64 YUM repository
baseurl = http://repo.percona.com/ppg-15.8/yum/release/$releasever/RPMS/x86_64
enabled = 1
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY

[ppg-15.8-release-sources]
name = Percona Distribution for PostgreSQL 158 release/sources YUM repository
baseurl = http://repo.percona.com/ppg-15.8/yum/release/$releasever/SRPMS
enabled = 0
gpgcheck = 1
gpgkey = file:///etc/pki/rpm-gpg/PERCONA-PACKAGING-KEY

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

1 participant