# How to install Postgres 13 in Linux Mint 20.2

Hey gang - here's how you can easily install Postgres 13 on your shiny new Linux Mint 20 computer.

# Add the deb url to your sources list

```
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main" > \      
/etc/apt/sources.list.d/postgresql.list'
```

# Add postgres' official key

```
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
```
# Update and upgrade apt

```
sudo apt update
sudo apt upgrade
```

# Install postgresql-13

```
sudo apt-get install postgresql-13 postgresql-client-13
```

# Run the postgres 13 service

```
sudo systemctl status postgresql
```

# Verify you have everything installed

```
psql --version                                                              
psql (PostgreSQL) 13.5 (Ubuntu 13.5-1.pgdg20.04+1)
```

You're done!
