{"id":1637,"date":"2016-04-07T21:09:00","date_gmt":"2016-04-08T02:09:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/instalar-postgresql-9-5-y-pgadmin3-en-fedora-23\/"},"modified":"2016-04-07T21:09:00","modified_gmt":"2016-04-08T02:09:00","slug":"instalar-postgresql-9-5-y-pgadmin3-en-fedora-23","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-postgresql-9-5-y-pgadmin3-en-fedora-23\/","title":{"rendered":"Instalar Postgresql 9.5 y pgAdmin3 en Fedora 23"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-nVlHzyL-Psc\/VwcMILaW5AI\/AAAAAAAABxI\/vqyKbt0klg8fu0Ux9Ge8P59Su_FSNPoSQ\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-04-07%2B20-40-21.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"358\" src=\"https:\/\/1.bp.blogspot.com\/-nVlHzyL-Psc\/VwcMILaW5AI\/AAAAAAAABxI\/vqyKbt0klg8fu0Ux9Ge8P59Su_FSNPoSQ\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-04-07%2B20-40-21.png\" width=\"640\" \/><\/a><\/div>\n<p>Instalaci\u00f3n de Postgresql 9.5 y pgAdmin en Fedora 23.<\/p>\n<p>1.- Es la m\u00e1s reciente actualizaci\u00f3n del gestor de base de datos postgresql. Si ya tienes instalado postgresql, es necesario desinstalarlo:<\/p>\n<p>En caso de tener instalado la versi\u00f3n 9.4, se desinstala as\u00ed, <\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">sudo dnf remove postgresql-server pgadmin3<\/span><\/span><\/pre>\n<p>Al desinstarlo, quedaran las configuraciones anteriores, pero no hay problema con eso.<\/p>\n<p>2.- Abrir la terminal con root:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">su -<\/span><\/span><\/pre>\n<p>3.-&nbsp; Instalar el respositorio oficial para la nueva versi\u00f3n:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">#Fedora 23:<br \/>rpm -Uvh http:\/\/yum.postgresql.org\/9.5\/fedora\/fedora-23-x86_64\/pgdg-fedora95-9.5-3.noarch.rpm<br \/><br \/>#Fedora 22<br \/>rpm -Uvh http:\/\/yum.postgresql.org\/9.5\/fedora\/fedora-22-x86_64\/pgdg-fedora95-9.5-3.noarch.rpm<br \/><br \/>#Fedora 21<br \/>rpm -Uvh http:\/\/yum.postgresql.org\/9.5\/fedora\/fedora-21-x86_64\/pgdg-fedora95-9.5-2.noarch.rpm<\/span><\/span><\/pre>\n<p>4.-&nbsp; Instalar los paquetes:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">sudo  dnf install postgresql95-server postgresql95 pgadmin3<\/span><\/span><\/pre>\n<p>5.- Iniciar initdb.<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">\/usr\/pgsql-9.5\/bin\/postgresql95-setup initdb<\/span><\/span><\/pre>\n<p>6.- Iniciar postgresql<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">#Iniciar postgresql<br \/>systemctl start postgresql-9.5<\/span><\/pre>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">#Indicar que inicie postgresql con el SO<\/span><span style=\"color: white;\">systemctl enable postgresql-9.5<\/span><\/pre>\n<p>7.- Una vez terminado ingresamos:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">su - postgres<\/span><\/span><\/pre>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: transparent;\"><span style=\"color: white;\">#Teclear lo siguiente:<br \/>$ psql<br \/><\/span><\/span><span style=\"color: white;\">psql (9.5.0)<br \/>Type \"help\" for help.<br \/>#Y mostrar\u00e1 la siguiente l\u00ednea<br \/>postgres=#<\/span><\/pre>\n<p>8.- Crear una contrase\u00f1a para el usuario de postgresql:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">postgres=# password postgres<\/span><\/pre>\n<p>9.- Configurar archivo:<br \/>a) en caso de ser una instalaci\u00f3n l\u00edmpia utilizar: <\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">gedit  \/var\/lib\/pgsql\/data\/postgresql.conf<br \/><br \/>#Descomentar las siguiente l\u00edneas, tienen que quedar as\u00ed.<br \/>listen_addresses = '*'  # what IP address(es) to listen on;<br \/>port = 5432    # (change requires restart)<\/span><\/pre>\n<p>b) en caso de que sea una actualizaci\u00f3n de cualquier otra versi\u00f3n la versi\u00f3n 9.5:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\"><span style=\"color: white;\">gedit \/var\/lib\/pgsql\/9.5\/data\/<\/span>postgresql.conf<br \/><br \/>#Descomentar las siguiente l\u00edneas, tienen que quedar as\u00ed.<br \/>listen_addresses = '*'  # what IP address(es) to listen on;<br \/>port = 5432    # (change requires restart)<\/span><\/pre>\n<p>10.- Agregar la siguiente l\u00ednea en este archivo:, para la modificaci\u00f3n de estos archivos, hay dos opciones.<br \/>a) en caso de ser una instalaci\u00f3n l\u00edmpia utilizar:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">gedit  \/var\/lib\/pgsql\/data\/pg_hba.conf<br \/><br \/>#AGregar la siguiente l\u00ednea debajo de las que se parezcan a esta:<br \/>host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.0\/24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5<\/span><\/pre>\n<p>b) En caso de que ya hayamos instalado la versi\u00f3n anterior y la desinstalamos:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">gedit \/var\/lib\/pgsql\/9.5\/data\/pg_hba.conf<br \/><br \/>#AGregar la siguiente l\u00ednea debajo de las que se parezcan a esta:<br \/>host&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.0\/24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; md5<\/span><\/pre>\n<p>11.- Ahora ejecutamos:<\/p>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(0, 0, 0); font-size: 13px; line-height: 20px; margin: 8px 15px; opacity: 0.85; padding: 9.5px; text-shadow: none; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: white;\">#Iniciar postgresql<br \/>systemctl start postgresql-9.5<\/span><\/pre>\n<p>Y listo, tienes instalado postgresql 9.5.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Instalaci\u00f3n de Postgresql 9.5 y pgAdmin en Fedora 23. 1.- Es la m\u00e1s reciente actualizaci\u00f3n del gestor de base de datos postgresql. Si ya tienes instalado postgresql, es necesario desinstalarlo: En caso de tener instalado la versi\u00f3n 9.4, se desinstala as\u00ed, sudo dnf remove postgresql-server pgadmin3 Al desinstarlo, quedaran las configuraciones anteriores, pero no hay [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[631,7,751,754,357,752,457,122,732,753],"tags":[],"class_list":["post-1637","post","type-post","status-publish","format-standard","hentry","category-631","category-fedora","category-fedora-23","category-instalar-postgresql","category-install","category-pgadmin3","category-post","category-postgresql","category-postgresql-9-5","category-postgresql95"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1637"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1637\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}