• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How To Install PostgreSQL 10 on Linux Mint 18.3

2627

To Install PostgreSQL 10 on Linux Mint 18.3 

The PostgreSQL Development Team has announced the latest version PostgreSQL 10. PostgreSQL is an open source object-relational database system. It is one of leading database server used for production servers. PostgreSQL allows us to execute stored procedures in various programming languages, like C/C++, Python, Java, Perl, Ruby and its own PL/pgSQL, which is similar to Oracle’ s PL/SQL. The method to install PostgreSQL on Linux Mint 18.3 is covered in this tutorial. 

Installing  PostgreSQL

First create a file at source list /etc/apt/sources.list.d/postgresql.list. 

linuxhelp ~ # sh -c ' echo " deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main"  >  /etc/apt/sources.list.d/pgdg.list' 
Import repository key:
linuxhelp ~ # wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
OK

And then update the system repository.

linuxhelp ~ # apt-get update 
Hit:1 http://archive.canonical.com/ubuntu xenial InRelease
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease                                                              
Ign:3 http://packages.linuxmint.com sylvia InRelease                                                                 
Get:4 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]                
Get:5 http://packages.linuxmint.com sylvia Release [24.2 kB]                                  
Get:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:7 http://apt.postgresql.org/pub/repos/apt xenial-pgdg InRelease [46.4 kB
.
.
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [592 kB]                                                          
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [547 kB]                                                           
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [239 kB]                                                          
Fetched 5,464 kB in 11s (464 kB/s)                                                                                                               
Reading package lists... Done

Now we have to Install PostgreSQL 10

linuxhelp ~ # apt-get install postgresql-10
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libpq5 pgdg-keyring postgresql-client-10 postgresql-client-common postgresql-common
Suggested packages:
  locales-all postgresql-doc-10 libjson-perl
Recommended packages:
  sysstat
The following NEW packages will be installed:
  libpq5 pgdg-keyring postgresql-10 postgresql-client-10 postgresql-client-common postgresql-common
.
.
Ver Cluster Port Status Owner    Data directory              Log file
10  main    5432 down   postgres /var/lib/postgresql/10/main /var/log/postgresql/postgresql-10-main.log
update-alternatives: using /usr/share/postgresql/10/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu21) ...
Processing triggers for ureadahead (0.100.0-19) ...

Next, we have to change postgres user password by login to postgres user.

linuxhelp ~ # su &ndash  postgres

Now get into psql database using the following command.

postgres@linuxhelp ~ $ psql
psql (10.2 (Ubuntu 10.2-1.pgdg16.04+1))
Type " help"  for help.

postgres=#
Run the following command to alter password
postgres=# ALTER USER postgres WITH PASSWORD ' somepassword'  
ALTER ROLE
replace the ‘ somepassword’  with your preferred password and then exit
postgres=# q
postgres@linuxhelp ~ $ exit
logout

Now let' s try installing postgresql GUI client &ndash pgadmin3 by running the following command. 

linuxhelp ~ # apt-get install pgadmin3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libjs-jquery libjs-underscore libwxbase3.0-0v5 libwxgtk3.0-0v5 pgadmin3-data
Suggested packages:
  javascript-common postgresql-contrib
Recommended packages:
  javascript-common pgagent
The following NEW packages will be installed:
.
.
Setting up libjs-underscore (1.7.0~dfsg-1ubuntu1) ...
Setting up libwxbase3.0-0v5:amd64 (3.0.2+dfsg-1.3ubuntu0.1) ...
Setting up libwxgtk3.0-0v5:amd64 (3.0.2+dfsg-1.3ubuntu0.1) ...
Setting up pgadmin3-data (1.22.2-4.pgdg16.04+1) ...
Setting up pgadmin3 (1.22.2-4.pgdg16.04+1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...

Now the PostgreSQL installation along with pgadmin3 has been completely installed. with this, the method  to install Postgresql 10 on Linux  Mint 18.3  comes to an end

Tags:
beulah
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

How is PostgreSQL licensed? How much does it cost?

A

PostgreSQL is released under the OSI-approved PostgreSQL Licence. There is no fee, even for use in commercial software products. Please refer the official link os follow "https://www.postgresql.org/about/licence/"

Q

Does PostgreSQL can run on the Cloud?

A

Yes. Like other open source databases, PostgreSQL is easy to run in both containers and virtual machines and is highly portable. Many companies have support for PostgreSQL in cloud hosting environments, including Heroku, Amazon, VMware, Compose.io, EnterpriseDB, Red Hat, Microsoft, and Google.

Q

How does PostgreSQL compare to MySQL?

A

This is a topic that can start several hours of discussion. As a quick summary, MySQL is the "easy-to-use, web developer" database, and PostgreSQL is the "feature-rich, standards-compliant" database. PostgreSQL is liberally licenced and owned by its community; MySQL is GPL-licenced and owned by Oracle. Beyond that, each database user should make his own evaluation; open source software makes doing comparisons very easy.

Q

When will PostgreSQL get database server clustering?

A

We already have it. Since no one type of clustering satisfies all needs, we have several different clustering tools which take various clustering approaches. The open source projects PostgresXC and Postgres-XL are available, as well as open source forks and proprietary tools such as Greenplum Database, Citus Data and several others. Also, PostgreSQL is supported by filesystem-based clustering systems for failover, including ones from Red Hat, Microsoft, Veritas and Oracle.

Q

How many PostgreSQL users are there worldwide?

A

Our wide distribution through the open source world and liberal licensing make that a difficult question to answer with any accuracy. 451Research estimates that around 30% of tech companies use PostgreSQL for core applications as of 2012, and around 11% of Debian users worldwide install PostgreSQL. A previous version, 8.0, had an estimated one million downloads within seven months of release. However, most users get PostgreSQL with a Linux distribution, or with some of the many other products, OSS software, and hardware devices that include PostgreSQL. SDMagazine in a survey in summer 2004 estimated us as the 5th most popular SQL database system in the US for new projects, we are the most popular database download on Freshmeat, and many people have called us the most popular major database system in Japan. We have approximately 35,000 people on our community mailing lists, but of course, many users do not subscribe to a list.

Related Tutorials in How To Install PostgreSQL 10 on Linux Mint 18.3

Related Tutorials in How To Install PostgreSQL 10 on Linux Mint 18.3

How to install WinRAR 5.11 on Linuxmint 18.03
How to install WinRAR 5.11 on Linuxmint 18.03
May 22, 2018
How to Setup VNC Server on Linux Mint 20
How to Setup VNC Server on Linux Mint 20
Dec 22, 2020
How to install and configure samba setup in Linux mint - 18.3
How to install and configure samba setup in Linux mint - 18.3
Mar 26, 2018
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to Install and Configure Samba on Linux Mint 20
How to Install and Configure Samba on Linux Mint 20
Nov 9, 2020
How to Install NextCloud on Linux Mint 18.3
How to Install NextCloud on Linux Mint 18.3
Feb 27, 2018
How To Install And Update OpenSSL On Linuxmint 18.3
How To Install And Update OpenSSL On Linuxmint 18.3
Jun 8, 2018
How To Install AnyDesk on Linux Mint 18.3
How To Install AnyDesk on Linux Mint 18.3
Apr 11, 2018

Related Forums in How To Install PostgreSQL 10 on Linux Mint 18.3

Related Forums in How To Install PostgreSQL 10 on Linux Mint 18.3

PostgreSQL
stalin class=
How to uninstall postgresql from ubuntu
Nov 2, 2017
PostgreSQL
tommyhilten class=
Phpmyadmin : Login disallowed for security reasons in postgresql
Nov 3, 2017
Linux
isaac class=
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/m/mysql-8.0/mysql-client-core-8.0_8.0.21-0ubuntu0.20.04.4_amd64.deb 404 Not Found
Dec 4, 2020
Linux Mint
AlxH class=
Complete beginner, install bluegriffon
Jul 1, 2020
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
Linux Mint
bz0 class=
How to change a function of a key
Jun 7, 2019
CentOS
jayce class=
Psql : could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.45432"?
May 30, 2019
Linux Mint
who class=
How to compare multiple files
Nov 10, 2019

Related News in How To Install PostgreSQL 10 on Linux Mint 18.3

Related News in How To Install PostgreSQL 10 on Linux Mint 18.3

A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
A Newer and a Faster Window Manager for Tina (Linux Mint 19.2)
Apr 9, 2019
Linux Mint 18.2 Ubuntu based Operating System is named Sonya
Linux Mint 18.2 Ubuntu based Operating System is named Sonya
May 2, 2017
Refreshed Linux Mint Debian Edition (LMDE) 2 'Betsy' ISO images now available
Refreshed Linux Mint Debian Edition (LMDE) 2 'Betsy' ISO images now available
Mar 14, 2017
The Best Linux Operating System is in the house: Mint 18.2
The Best Linux Operating System is in the house: Mint 18.2
Aug 12, 2017
Linux Mint 18.1 released with smooth features and offers long-term support
Linux Mint 18.1 released with smooth features and offers long-term support
Apr 11, 2017
Linux Mint 18.2 Sonya Beta version now available for download
Linux Mint 18.2 Sonya Beta version now available for download
Jun 7, 2017
Amazon Web Services offers Aurora Cloud DB accordant with PostgreSQL
Amazon Web Services offers Aurora Cloud DB accordant with PostgreSQL
Oct 27, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Owen ?
How to add SSH key to my Gitlab account

I need to add the SSH key in my gitlab account. How to do so ????

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.