Run the following commands on your rocky Linux to just get simple installation of postgres
dnf module list PostgreSQL # to check the modules of postgres available in the operating system.
sudo dnf module enable postgresql:15 #to enable the default stream of postgress Hint : change the version you want to use as default like 12,13 or 14
sudo dnf install postgresql-server #it will install the dependencies and packages of postgres
sudo postgresql-setup --initdb #to initialize db using the script ( postgresql-setup) downloaded with all the packages in previous commands
sudo -i -u postgres #To go to postgres default user created when the packages installed.
psql #after
create user repuser replication; #To create user
Top comments (0)