You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Installing PostgreSQL on Ubuntu 20.04 x86_64
4
+
---
5
+
6
+
## Prerequisites
7
+
8
+
Before you begin the installation process:
9
+
10
+
- Set up the EDB repository.
11
+
12
+
!!! Note
13
+
Rather than use the EDB repository, you can obtain PostgreSQL installers and installation packages from the [PostgreSQL community downloads page](https://www.postgresql.org/download/).
14
+
!!!
15
+
16
+
Setting up the repository is a one-time task. If you have already set up your repository, you don't need to perform this step.
17
+
18
+
To determine if your repository exists, enter this command:
19
+
20
+
`apt-cache search enterprisedb`
21
+
22
+
If no output is generated, the repository isn't installed.
23
+
24
+
To set up the EDB repository:
25
+
26
+
1. Go to [EDB repositories](https://www.enterprisedb.com/repos-downloads).
27
+
28
+
1. Select the button that provides access to the EDB repository.
29
+
30
+
1. Select the platform and software that you want to download.
31
+
32
+
1. Follow the instructions for setting up the EDB repository.
33
+
34
+
## Install the package
35
+
36
+
```shell
37
+
sudo apt-get -y install postgresql-<xx>
38
+
```
39
+
40
+
Where `<xx>` is the version of PostgreSQL you are installing. For example, if you are installing version 16, the package name would be `postgresql-16`.
0 commit comments