---
title: Install PostgreSQL on Pop!_OS using the Snap Store | Snapcraft
description: Get the latest version of PostgreSQL for on Pop!_OS - The world's most
  advanced open-source relational database.
url: https://snapcraft.io/install/postgresql/pop
---

[Canonical Snapcraft](https://snapcraft.io/)

# Install PostgreSQL on **Pop!\_OS**

# PostgreSQL

[Canonical](https://snapcraft.io/publisher/canonical "View all snaps from Canonical")

* [Canonical](https://snapcraft.io/publisher/canonical "View all snaps from Canonical")
* [Server and Cloud](https://snapcraft.io/search?categories=server-and-cloud)

[Install](https://snapcraft.io/install/postgresql/pop#install)

#### The world's most advanced open-source relational database.

PostgreSQL is a powerful, open source object-relational database system. It has more than 20 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.

**Install the snap**

If you are an Ubuntu user, snapd is pre-installed and ready to go on all recent Ubuntu releases. Simply click on the drop-down menu at the upper right-hand corner of this page, select your channel of choice (e.g. 16/stable), and paste the command in your terminal, e.g.:

`sudo snap install postgresql`

If you are not using Ubuntu, scroll further down this page to find installation instructions for other distributions.

**Use the snap**

Once installed, PostgreSQL will start automatically. To log in, run:

`postgresql.psql -U postgres -h /tmp`

It is highly recommended to set a new password in the `postgres` console:

`\password postgres`

For convenience, the snap alias psql is pre-created:

`psql -U postgres -h /tmp`

**Documentation**

See more PostgreSQL snap documentation on GitHub: <https://github.com/canonical/postgresql-snap/blob/18/edge/docs>

**License and trademark**

The PostgreSQL Snap is free software, distributed under the Apache Software License, version 2.0. It installs, operates and depends on PostgreSQL, which is licensed under the PostgreSQL License, a liberal Open Source license similar to the BSD or MIT licenses.

Postgres, PostgreSQL, Slonik Logo are trademarks or registered trademarks of PGCA. Other trademarks are property of their respective owners. Canonical's PostgreSQL offerings are not sponsored, endorsed, or affiliated with PGCA.

### Package name

* postgresql

---

### License

* Apache-2.0 OR PostgreSQL

---

### Last updated

* 5 October 2026 - 16/stable
* 9 October 2026 - 16/edge

---

### Websites

* [canonical.com](https://canonical.com/data/postgresql "https://canonical.com/data/postgresql")
* [postgresql.org](https://postgresql.org "https://postgresql.org")

---

### Contact

* [matrix.to](https://matrix.to/#/#charmhub-data-platform:ubuntu.com "https://matrix.to/#/#charmhub-data-platform:ubuntu.com")

---

### Source code

* [github.com/canonical/postgresql-snap](https://github.com/canonical/postgresql-snap "https://github.com/canonical/postgresql-snap")
* [github.com/postgres/postgres](https://github.com/postgres/postgres "https://github.com/postgres/postgres")

---

### Report a bug

* [github.com/canonical/postgresql-snap/issues](https://github.com/canonical/postgresql-snap/issues "https://github.com/canonical/postgresql-snap/issues")

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/install/postgresql/pop#report-snap-modal)

---

## Enable snaps on Pop!\_OS and install PostgreSQL

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the [Snap Store](https://snapcraft.io/store), an app store with an audience of millions.

### Enable snapd

Snap can be installed on Pop!\_OS from the command line. Open Terminal from the Applications launcher and type the following:

```
sudo apt update
sudo apt install snapd
```

Either log out and back in again, or restart your system, to ensure snap’s paths are updated correctly.

### Install PostgreSQL

To install PostgreSQL, simply use the following command:

```
sudo snap install postgresql
```

### Other popular snaps…

[See more...](https://snapcraft.io/search?categories=featured)

[See more in Featured](https://snapcraft.io/search?categories=featured)

### More things to do…

#### [Get the snap store](https://snapcraft.io/snap-store)

Browse and find snaps from the convenience of your desktop using the snap store snap.

#### [Learn more about snaps](https://snapcraft.io/docs)

Interested to find out more about snaps? Want to publish your own application? Visit [snapcraft.io](https://snapcraft.io/) now.

[Back to top](https://snapcraft.io/install/postgresql/pop)

© 2026 Canonical Ltd.
Ubuntu and Canonical are registered trademarks of Canonical Ltd.

Powered by [Charmed Kubernetes](https://www.ubuntu.com/kubernetes)

[Join the forum](https://forum.snapcraft.io/), contribute to or report problems with,
[snapd](https://bugs.launchpad.net/snapd),
[Snapcraft](https://bugs.launchpad.net/snapcraft),
or [this site](https://github.com/canonical/snapcraft.io/issues/new).

* [Share on Twitter](https://twitter.com/snapcraftio)
* [Share on Facebook](https://www.facebook.com/snapcraftio)
* [Share on YouTube](https://www.youtube.com/snapcraftio)

* [Terms of Service](https://ubuntu.com/legal/terms-and-policies/snap-store-terms)
* [Data privacy](https://www.ubuntu.com/legal/data-privacy)
* [Manage your tracker settings](https://snapcraft.io/install/postgresql/pop)
* [Service status](https://status.snapcraft.io/)
* [Other functions](https://dashboard.snapcraft.io/)
* [Contact us](https://snapcraft.io/about/contact-us)
