Created
June 27, 2023 15:07
-
-
Save hiimivantang/29433d263af4f4a2711a0f30739dad52 to your computer and use it in GitHub Desktop.
How to install postgres 11.2 on Almalinux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dnf update -y | |
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm | |
sudo dnf -y module disable postgresql | |
sudo dnf -y install postgresql11-server postgresql11 | |
sudo /usr/pgsql-11/bin/postgresql-11-setup initdb | |
sudo systemctl enable postgresql-11 && sudo systemctl start postgresql-11 | |
sudo passwd postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment