
This will install the latest PostgreSQL version along with the newest extensions and additions that are not yet officially part of the PostgreSQL core.Īpt install postgresql postgresql-contrib #Check PostgreSQL statusĪfter the installation you may double-check that postgresql daemon is active. Now is the time to do the actual PostgreSQL installation. It is always a good idea to download information about all packages available for installation from your configured sources before the actual installation. Sudo sh -c 'echo "deb $(lsb_release -cs)-pgdg main" > /etc/apt//pgdg.list' #Install PostgreSQL


Then, get the certificate, add it to apt-key management utility and create a new configuration file with an official PostgreSQL repository address inside. You may want to install PostgreSQL from an official repository, since it is updated more frequently than official Ubuntu sources.įirst, you should install prerequisite software packages that will be used to download and install software certificates for a secure SSL connection.
#Postgres app or postgres how to#
Let‘s now go through a step-by-step guide of how to install and setup PostgreSQL on your Ubuntu 20.04 machine. PostgreSQL is one of the most popular databases in the industry that is used for various web, mobile and analytics applications. It is backed by 20 years of open-source development, and supports both SQL (relational) and JSON (non-relational) querying. PostgreSQL is a fully featured database management system (DBMS) with a strong emphasis on extensibility and SQL compliance.
