Cannot install postgresql 9.4 on Centos 7

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am following https://www.postgresql.org/download/linux/redhat/ to install postgrsql 9.4 on Centos 7, using the command:



yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm


This gives output:



[root@localhost /]# 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: fastestmirror
pgdg-centos94-9.4-3.noarch.rpm | 5.4 kB 00:00
Examining /var/tmp/yum-root-6jRPAn/pgdg-centos94-9.4-3.noarch.rpm: pgdg-centos94-9.4-3.noarch
/var/tmp/yum-root-6jRPAn/pgdg-centos94-9.4-3.noarch.rpm: does not update installed package.
Error: Nothing to do


Then, I run yum install postgresql94, which gives:



Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: mirror.premi.st
* extras: ftp.jaist.ac.jp
* updates: ftp.jaist.ac.jp
No package postgresql94 available.
Error: Nothing to do


How can I install postgresql 9.4 on CentOS 7?







share|improve this question



















  • Looks like you a version of postgresql already installed. Run "yum info postgresql" to verify. Then remove the current version before running the initial yum install command with the http link. You will in effect downgrade your currently installed version.
    – Raman Sailopal
    May 29 at 12:47














up vote
1
down vote

favorite












I am following https://www.postgresql.org/download/linux/redhat/ to install postgrsql 9.4 on Centos 7, using the command:



yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm


This gives output:



[root@localhost /]# 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: fastestmirror
pgdg-centos94-9.4-3.noarch.rpm | 5.4 kB 00:00
Examining /var/tmp/yum-root-6jRPAn/pgdg-centos94-9.4-3.noarch.rpm: pgdg-centos94-9.4-3.noarch
/var/tmp/yum-root-6jRPAn/pgdg-centos94-9.4-3.noarch.rpm: does not update installed package.
Error: Nothing to do


Then, I run yum install postgresql94, which gives:



Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: mirror.premi.st
* extras: ftp.jaist.ac.jp
* updates: ftp.jaist.ac.jp
No package postgresql94 available.
Error: Nothing to do


How can I install postgresql 9.4 on CentOS 7?







share|improve this question



















  • Looks like you a version of postgresql already installed. Run "yum info postgresql" to verify. Then remove the current version before running the initial yum install command with the http link. You will in effect downgrade your currently installed version.
    – Raman Sailopal
    May 29 at 12:47












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am following https://www.postgresql.org/download/linux/redhat/ to install postgrsql 9.4 on Centos 7, using the command:



yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm


This gives output:



[root@localhost /]# 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: fastestmirror
pgdg-centos94-9.4-3.noarch.rpm | 5.4 kB 00:00
Examining /var/tmp/yum-root-6jRPAn/pgdg-centos94-9.4-3.noarch.rpm: pgdg-centos94-9.4-3.noarch
/var/tmp/yum-root-6jRPAn/pgdg-centos94-9.4-3.noarch.rpm: does not update installed package.
Error: Nothing to do


Then, I run yum install postgresql94, which gives:



Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: mirror.premi.st
* extras: ftp.jaist.ac.jp
* updates: ftp.jaist.ac.jp
No package postgresql94 available.
Error: Nothing to do


How can I install postgresql 9.4 on CentOS 7?







share|improve this question











I am following https://www.postgresql.org/download/linux/redhat/ to install postgrsql 9.4 on Centos 7, using the command:



yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm


This gives output:



[root@localhost /]# 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: fastestmirror
pgdg-centos94-9.4-3.noarch.rpm | 5.4 kB 00:00
Examining /var/tmp/yum-root-6jRPAn/pgdg-centos94-9.4-3.noarch.rpm: pgdg-centos94-9.4-3.noarch
/var/tmp/yum-root-6jRPAn/pgdg-centos94-9.4-3.noarch.rpm: does not update installed package.
Error: Nothing to do


Then, I run yum install postgresql94, which gives:



Loading mirror speeds from cached hostfile
* base: ftp.jaist.ac.jp
* epel: mirror.premi.st
* extras: ftp.jaist.ac.jp
* updates: ftp.jaist.ac.jp
No package postgresql94 available.
Error: Nothing to do


How can I install postgresql 9.4 on CentOS 7?









share|improve this question










share|improve this question




share|improve this question









asked May 29 at 12:41









JasonStack

17410




17410











  • Looks like you a version of postgresql already installed. Run "yum info postgresql" to verify. Then remove the current version before running the initial yum install command with the http link. You will in effect downgrade your currently installed version.
    – Raman Sailopal
    May 29 at 12:47
















  • Looks like you a version of postgresql already installed. Run "yum info postgresql" to verify. Then remove the current version before running the initial yum install command with the http link. You will in effect downgrade your currently installed version.
    – Raman Sailopal
    May 29 at 12:47















Looks like you a version of postgresql already installed. Run "yum info postgresql" to verify. Then remove the current version before running the initial yum install command with the http link. You will in effect downgrade your currently installed version.
– Raman Sailopal
May 29 at 12:47




Looks like you a version of postgresql already installed. Run "yum info postgresql" to verify. Then remove the current version before running the initial yum install command with the http link. You will in effect downgrade your currently installed version.
– Raman Sailopal
May 29 at 12:47










3 Answers
3






active

oldest

votes

















up vote
1
down vote













Did you update the cache with yum makecache fast ? Because on a clean system this makes postgres 9.4 available:



# yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm
# yum makecache fast
...
pgdg94 | 4.1 kB 00:00
...
# yum -y list | sort > yl
# grep -i postgresql yl | grep -v base
...
# yum info postgresql94
...


(I keep a yl file around for easy grepping.)






share|improve this answer





















  • After running these commands, still does cannot install postgresql 9.4.
    – JasonStack
    May 30 at 4:32










  • In fact, by running I was able to reinstall postgresql94 but again I cannot install postgresql94 even after running yum makecache fast.
    – JasonStack
    May 30 at 4:50

















up vote
1
down vote













First of all try to find what packages related to postgresql are installed. For this run below commands:



rpm -qa|grep postgres


Above command will give a list of installed packages.



Now remove each of the listed packages one by one by giving below command:



rpm -e <package-name>

OR

yum remove <package-name>


After removing all the listed packages, try installing postgresql-9.4 the same way you were trying to install as mentioned in question.






share|improve this answer




























    up vote
    0
    down vote













    Go to postgresql download site and select desired postgresql version and your distribution and architecture (In this case, 9.4, CentOS 7, and x86_64, respectively). Then a command appears you need to run to install postgresql94:



    yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm



    In the above statement, change install to reinstall and run it:



    yum reinstall https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm 


    You will then be able to successfully run:
    yum install postgresql94






    share|improve this answer





















      Your Answer







      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "106"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      convertImagesToLinks: false,
      noModals: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );








       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446685%2fcannot-install-postgresql-9-4-on-centos-7%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      Did you update the cache with yum makecache fast ? Because on a clean system this makes postgres 9.4 available:



      # yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm
      # yum makecache fast
      ...
      pgdg94 | 4.1 kB 00:00
      ...
      # yum -y list | sort > yl
      # grep -i postgresql yl | grep -v base
      ...
      # yum info postgresql94
      ...


      (I keep a yl file around for easy grepping.)






      share|improve this answer





















      • After running these commands, still does cannot install postgresql 9.4.
        – JasonStack
        May 30 at 4:32










      • In fact, by running I was able to reinstall postgresql94 but again I cannot install postgresql94 even after running yum makecache fast.
        – JasonStack
        May 30 at 4:50














      up vote
      1
      down vote













      Did you update the cache with yum makecache fast ? Because on a clean system this makes postgres 9.4 available:



      # yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm
      # yum makecache fast
      ...
      pgdg94 | 4.1 kB 00:00
      ...
      # yum -y list | sort > yl
      # grep -i postgresql yl | grep -v base
      ...
      # yum info postgresql94
      ...


      (I keep a yl file around for easy grepping.)






      share|improve this answer





















      • After running these commands, still does cannot install postgresql 9.4.
        – JasonStack
        May 30 at 4:32










      • In fact, by running I was able to reinstall postgresql94 but again I cannot install postgresql94 even after running yum makecache fast.
        – JasonStack
        May 30 at 4:50












      up vote
      1
      down vote










      up vote
      1
      down vote









      Did you update the cache with yum makecache fast ? Because on a clean system this makes postgres 9.4 available:



      # yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm
      # yum makecache fast
      ...
      pgdg94 | 4.1 kB 00:00
      ...
      # yum -y list | sort > yl
      # grep -i postgresql yl | grep -v base
      ...
      # yum info postgresql94
      ...


      (I keep a yl file around for easy grepping.)






      share|improve this answer













      Did you update the cache with yum makecache fast ? Because on a clean system this makes postgres 9.4 available:



      # yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm
      # yum makecache fast
      ...
      pgdg94 | 4.1 kB 00:00
      ...
      # yum -y list | sort > yl
      # grep -i postgresql yl | grep -v base
      ...
      # yum info postgresql94
      ...


      (I keep a yl file around for easy grepping.)







      share|improve this answer













      share|improve this answer



      share|improve this answer











      answered May 29 at 14:02









      thrig

      21.9k12751




      21.9k12751











      • After running these commands, still does cannot install postgresql 9.4.
        – JasonStack
        May 30 at 4:32










      • In fact, by running I was able to reinstall postgresql94 but again I cannot install postgresql94 even after running yum makecache fast.
        – JasonStack
        May 30 at 4:50
















      • After running these commands, still does cannot install postgresql 9.4.
        – JasonStack
        May 30 at 4:32










      • In fact, by running I was able to reinstall postgresql94 but again I cannot install postgresql94 even after running yum makecache fast.
        – JasonStack
        May 30 at 4:50















      After running these commands, still does cannot install postgresql 9.4.
      – JasonStack
      May 30 at 4:32




      After running these commands, still does cannot install postgresql 9.4.
      – JasonStack
      May 30 at 4:32












      In fact, by running I was able to reinstall postgresql94 but again I cannot install postgresql94 even after running yum makecache fast.
      – JasonStack
      May 30 at 4:50




      In fact, by running I was able to reinstall postgresql94 but again I cannot install postgresql94 even after running yum makecache fast.
      – JasonStack
      May 30 at 4:50












      up vote
      1
      down vote













      First of all try to find what packages related to postgresql are installed. For this run below commands:



      rpm -qa|grep postgres


      Above command will give a list of installed packages.



      Now remove each of the listed packages one by one by giving below command:



      rpm -e <package-name>

      OR

      yum remove <package-name>


      After removing all the listed packages, try installing postgresql-9.4 the same way you were trying to install as mentioned in question.






      share|improve this answer

























        up vote
        1
        down vote













        First of all try to find what packages related to postgresql are installed. For this run below commands:



        rpm -qa|grep postgres


        Above command will give a list of installed packages.



        Now remove each of the listed packages one by one by giving below command:



        rpm -e <package-name>

        OR

        yum remove <package-name>


        After removing all the listed packages, try installing postgresql-9.4 the same way you were trying to install as mentioned in question.






        share|improve this answer























          up vote
          1
          down vote










          up vote
          1
          down vote









          First of all try to find what packages related to postgresql are installed. For this run below commands:



          rpm -qa|grep postgres


          Above command will give a list of installed packages.



          Now remove each of the listed packages one by one by giving below command:



          rpm -e <package-name>

          OR

          yum remove <package-name>


          After removing all the listed packages, try installing postgresql-9.4 the same way you were trying to install as mentioned in question.






          share|improve this answer













          First of all try to find what packages related to postgresql are installed. For this run below commands:



          rpm -qa|grep postgres


          Above command will give a list of installed packages.



          Now remove each of the listed packages one by one by giving below command:



          rpm -e <package-name>

          OR

          yum remove <package-name>


          After removing all the listed packages, try installing postgresql-9.4 the same way you were trying to install as mentioned in question.







          share|improve this answer













          share|improve this answer



          share|improve this answer











          answered May 30 at 6:07









          Naushad Ahmad

          1409




          1409




















              up vote
              0
              down vote













              Go to postgresql download site and select desired postgresql version and your distribution and architecture (In this case, 9.4, CentOS 7, and x86_64, respectively). Then a command appears you need to run to install postgresql94:



              yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm



              In the above statement, change install to reinstall and run it:



              yum reinstall https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm 


              You will then be able to successfully run:
              yum install postgresql94






              share|improve this answer

























                up vote
                0
                down vote













                Go to postgresql download site and select desired postgresql version and your distribution and architecture (In this case, 9.4, CentOS 7, and x86_64, respectively). Then a command appears you need to run to install postgresql94:



                yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm



                In the above statement, change install to reinstall and run it:



                yum reinstall https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm 


                You will then be able to successfully run:
                yum install postgresql94






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Go to postgresql download site and select desired postgresql version and your distribution and architecture (In this case, 9.4, CentOS 7, and x86_64, respectively). Then a command appears you need to run to install postgresql94:



                  yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm



                  In the above statement, change install to reinstall and run it:



                  yum reinstall https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm 


                  You will then be able to successfully run:
                  yum install postgresql94






                  share|improve this answer













                  Go to postgresql download site and select desired postgresql version and your distribution and architecture (In this case, 9.4, CentOS 7, and x86_64, respectively). Then a command appears you need to run to install postgresql94:



                  yum install https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm



                  In the above statement, change install to reinstall and run it:



                  yum reinstall https://download.postgresql.org/pub/repos/yum/9.4/redhat/rhel-7-x86_64/pgdg-centos94-9.4-3.noarch.rpm 


                  You will then be able to successfully run:
                  yum install postgresql94







                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered May 30 at 5:50









                  JasonStack

                  17410




                  17410






















                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446685%2fcannot-install-postgresql-9-4-on-centos-7%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Popular posts from this blog

                      How to check contact read email or not when send email to Individual?

                      Displaying single band from multi-band raster using QGIS

                      How many registers does an x86_64 CPU actually have?