1. Pre inštaláciu spustite:

    sudo yum install postgresql-server postgresql-contrib


  2. Pre inicializáciu databázy a naštartovanie PostgreSQL spustite:

    sudo postgresql-setup initdb
    sudo systemctl start postgresql


  3. Konfigurujte automatické štartovanie PostgreSQL po štarte OS:

    sudo systemctl enable postgresql