0

While i am intalling postgresql repo,i am facing the below.i tried with dowload and install but no luck.please give any suggestions.

yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm
Loaded plugins: langpacks, product-id
Cannot open: https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm. Skipping.
Error: Nothing to do


OS version:

      Chassis: desktop
        Machine ID: 7ccded75cb2544e8ad10a4232b335eeb
           Boot ID: b2f5934d56a54b728467bfd461cb0f90
    Virtualization: microsoft
  Operating System: Red Hat Enterprise Linux Server 7.0 (Maipo)
       CPE OS Name: cpe:/o:redhat:enterprise_linux:7.0:GA:server
            Kernel: Linux 3.10.0-123.el7.x86_64
      Architecture: x86_64
1
  • put the output of ' yum repolist all '
    – Reda Salih
    Nov 14 '20 at 15:06
0

You're not doing what the website suggests.

Here's what it says (RHEL 7, CentOS 9.6):

# Install the repository RPM:
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

# Install PostgreSQL:
sudo yum install -y postgresql96-server

# Optionally initialize the database and enable automatic start:
sudo /usr/pgsql-9.6/bin/postgresql96-setup initdb
sudo systemctl enable postgresql-9.6
sudo systemctl start postgresql-9.6
2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.