Installing PostgreSQL Yum Repository
Installing PostgreSQL Yum Repository
От:
Jonathan Pool <pool@utilika.org>
Дата:
I am trying to follow the instructions on http://www.postgresql.org/download/linux/redhat/ for installing the PostgreSQL Yum Repository (on RHEL 5). So I downloaded pgdg-redhat-9.1-4.noarch.rpm into a directory from http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm. Then I tried to install it with: rpm -i http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm Instead of an installation, I got: error: skipping http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm - transfer failed - Unknown or unexpected error I was surprised that the instructions told me to download a file and then issue a command that doesn't reference the downloaded file. So, as an experiment, I also executed: sudo rpm -i pgdg-redhat-9.1-4.noarch.rpm That produced this error message: warning: pgdg-redhat-9.1-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 442df0f8 But it did, apparently, install the package, since rpm -qi pgdg-redhat shows it installed. So, is it correct to instruct users to download the .rpm file and then issue a command that references the remote source URL of that file?
Re: Installing PostgreSQL Yum Repository
От:
Craig Ringer <ringerc@ringerc.id.au>
Дата:
On 08/19/2012 01:25 AM, Jonathan Pool wrote:
> I am trying to follow the instructions on http://www.postgresql.org/download/linux/redhat/ for installing the PostgreSQL Yum Repository (on RHEL 5).
>
> So I downloaded pgdg-redhat-9.1-4.noarch.rpm into a directory from http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm.
>
> Then I tried to install it with:
>
> rpm -i http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm
First, why download it, then run rpm on the remote URL instead of the
local file?
But anyway:
yum install pgdg-redhat-9.1-4.noarch.rpm
with the local file, or the URL; yum doesn't care.
--
Craig Ringer
Re: Installing PostgreSQL Yum Repository
От:
Jonathan Pool <pool@utilika.org>
Дата:
>> So I downloaded pgdg-redhat-9.1-4.noarch.rpm into a directory from http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm. >> >> Then I tried to install it with: >> >> rpm -i http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm > > First, why download it, then run rpm on the remote URL instead of the local file? > > Craig Ringer Only because that seems to be exactly what the instructions tell one to do. ˉ
Re: Installing PostgreSQL Yum Repository
Hi, On Sat, 2012-08-18 at 10:25 -0700, Jonathan Pool wrote: > I am trying to follow the instructions on > http://www.postgresql.org/download/linux/redhat/ for installing the > PostgreSQL Yum Repository (on RHEL 5). > > So I downloaded pgdg-redhat-9.1-4.noarch.rpm into a directory from > http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm. > > Then I tried to install it with: > > rpm -i > http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm > > Instead of an installation, I got: > > error: skipping > http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat-9.1-4.noarch.rpm - transfer failed - Unknown or unexpected error Could you please try: rpm -ivh http://yum.postgresql.org/9.1/redhat/rhel-5-x86_64/pgdg-redhat91-9.1-5.noarch.rpm > I was surprised that the instructions told me to download a file and then issue a command that doesn't reference the downloaded file. That is my mistake. I changed the filenames a few months before, but it seems I forgot to update website: http://yum.postgresql.org/repopackages.php This is now up2date. Regards, -- Devrim GÜNDÜZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz