Re: install Postgres on RHED 7

From: Kris Deugau <kdeugau(at)vianet(dot)ca>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: install Postgres on RHED 7
Date: 2018-12-19 22:40:37
Message-ID: 16116df4-3ae8-688b-5794-440e47d61ba1@vianet.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Pepe TD Vo wrote:
> I have downloaded
> https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7server-x86_64/repodata/repo
> <https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7server-x86_64/repodata/repomd.exl:>md.xml,
> what location should I put it in?  Also, I saw drmp folder, do I need to
> download this folder too?

Unless you're maintaining the repository you shouldn't need to manually
download parts of it; that's what tools like yum are for. (I'm not
sure trying to hand-feed parts of a repository to yum is going to work
well anyway; parts of the local cache will end up mismatched and yum
may delete the whole set as corrupt. I haven't done much with RPM-based
systems in a while so I'm not sure what yum would do.)

If yum can't access a public repository like PGDG, you'll need to
investigate the network path and DNS results as suggested a couple of
times. Looking back up the messages you may also need to contact Red
Hat support for assistance adding a third-party repository to the yum
configuration. The error you reported doesn't seem to make sense to me
for a third-party repository, only for the primary official Red Hat one(s).

It's also sounding a little like you're behind a restrictive firewall
that's blocking access; in that case you should either work with your
network administrators to open access, or skip the regular repository
access entirely and manually download the .rpm package files you need
for the Postgres components you want to eg a USB stick. Or to another
server that you *can* access from the machine you want to do the install on.

At that point you're back to "try to install this package file, see what
dependencies it's missing, download the missing dependencies", and
repeat until you've got things installed. I don't recommend this; for
complex packages it can take hours. And you have to do it all over
again when a package update comes out.

-kgd

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message soumitra bhandary 2018-12-20 02:00:53 Re: Multi master implementation
Previous Message Jerry Sievers 2018-12-19 20:28:27 using pg_receivewal --drop-slot as recovery.conf:recovery_end_command