Quick Answer: How to Install Postgresql in Ubuntu?

Quick Answer: How to Install Postgresql in Ubuntu?
Contents

To use the PostgreSQL Yum Repository, follow these steps:

  • Select version:
  • Select platform:
  • Select architecture:
  • Install the repository RPM: Select version and platform above.
  • Install the client packages: Select version and platform above.
  • Optionally install the server packages: Select version and platform above.

How do I log into PostgreSQL on Ubuntu?

Change default PostgreSQL passwords

  1. Connect as ubuntu to the instance where PostgreSQL is installed.
  2. Switch to the root user.
  3. Log in to psql using the postgres database login role, connecting to the postgres database.
  4. Issue the \password command to alter the passwords of the three login roles.
  5. To exit psql, type \q.

How install PostgreSQL Linux?

For 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. rpm -ivh pgdg-centos92-9.2-6.noarch.rpm.
  • Do a quick search which will show you available packages for postgres. yum list postgres*
Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.