Quick Answer: How to Install Postgresql in Linux?
Contents

For YUM installations (Fedora / Red Hat / CentOS / Scientific Linux)

  • Head over to PostgreSQL Yum Repository.
  • Select the version of PostgreSQL that you want to install and then your OS, version and architecture.
  • Install the RPM.
  • Do a quick search which will show you available packages for postgres.

How do I start PostgreSQL on Ubuntu?

Installing PostgreSQL using APT

  1. Log into your server via SSH.
  2. Access root by running the following command: sudo su –
  3. To install PostgreSQL, as well as the necessary server software, run the following command:
  4. Configure PostgreSQL to start up upon server boot.
  5. Start PostgreSQL.

How do I install PostgreSQL?

To Install PostgreSQL via Graphical Mode

  • Download PGInstaller here.
  • Click on the executable file to run the installer.
  • Select your preferred language.
  • Specify directory where you want to install PostgreSQL.
  • Specify PostgreSQL server port.
  • Specify data directory to initialize PostgreSQL database.
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest