Skip to content

Instantly share code, notes, and snippets.

@hiimivantang
Created June 27, 2023 15:07
Show Gist options
  • Save hiimivantang/29433d263af4f4a2711a0f30739dad52 to your computer and use it in GitHub Desktop.
Save hiimivantang/29433d263af4f4a2711a0f30739dad52 to your computer and use it in GitHub Desktop.
How to install postgres 11.2 on Almalinux
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