From: | <Matthew(dot)S(dot)Smith(dot)ctr(at)nga(dot)mil> |
---|---|
To: | <devrim(at)gunduz(dot)org>, <pgsql-pkg-yum(at)lists(dot)postgresql(dot)org> |
Subject: | RE: [Non-DoD Source] Re: no /repodata/repomd.xml |
Date: | 2024-06-05 16:08:37 |
Message-ID: | 5d20a94d3b404a50830245414b75c7fc@nga.mil |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-pkg-yum |
Classification: UNCLASSIFIED
======================================================
On a Redhat 9 FIPS machine I copy pasted the instructions exactly as they appeared for postgres 16, redhat 9, x86-64
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo dnf -qy module disable postgresql
sudo dnf install -y postgresql16-server
Upon executing the third instruction I got the 404 error.
The only thing that fixed it was removing the file part of the url in /etc/yum.repos.d/postgres.repo
baseurl = https://download.postgresql.org/pub/repos/yum/common/redhat/rhel-9-x86_64/
believe me or not. It doesn't matter to me.
Matt
-----Original Message-----
From: Devrim Gündüz <devrim(at)gunduz(dot)org>
Sent: Wednesday, June 5, 2024 5:23 AM
To: Smith Matthew S NGA-TEID USA CTR <Matthew(dot)S(dot)Smith(dot)ctr(at)nga(dot)mil>; pgsql-pkg-yum(at)lists(dot)postgresql(dot)org
Subject: [Non-DoD Source] Re: no /repodata/repomd.xml
Hi,
On Tue, 2024-06-04 at 22:59 +0000, Matthew(dot)S(dot)Smith(dot)ctr(at)nga(dot)mil wrote:
> I've been wrestling with this for days. I believe that I've fixed it.
> Here's how. Web searches were virtually zero help.
This is not surprising as you created an impossible problem and tried to find a solution for that.
> Your "latest" repo rpm url has no repodata/repomd.xml
Yeah, because it is a repo *RPM*.
>
>
> The URL pointed at by PostgreSQL: Linux downloads (Red Hat family)
> <https://www.postgresql.org/download/linux/redhat/> does have
> repodata/repomd.xml
I believe you messed up everything badly. Both that site and https://yum.postgresql.org/howto/ has the same instructions:
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
sudo dnf install postgresql16-server
This is all you need to do. What went wrong on your case?
Regards,
--
Devrim Gündüz
Open Source Solution Architect, PostgreSQL Major Contributor
Twitter: @DevrimGunduz , @DevrimGunduzTR
======================================================
Classification: UNCLASSIFIED
From | Date | Subject | |
---|---|---|---|
Next Message | Devrim Gündüz | 2024-06-10 19:32:55 | Re: [Non-DoD Source] Re: no /repodata/repomd.xml |
Previous Message | Devrim Gündüz | 2024-06-05 09:22:44 | Re: no /repodata/repomd.xml |