echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
```
```bash
sudo apt-get update && sudo apt-get install yarn
```
### Install postgres
The database used in Chatwoot is PostgreSQL. Use the following commands to install postgres.
```bash
sudo apt install postgresql postgresql-contrib
```
The installation procedure created a user account called postgres that is associated with the default Postgres role. In order to use Postgres, you can log into that account.
```bash
sudo -u postgres psql
```
Install `libpg-dev` dependencies for ubuntu
```bash
sudo apt-get install libpq-dev
```
### Install redis-server
Chatwoot uses Redis server in agent assignments and reporting. To install `redis-server`