Skip to content

Instantly share code, notes, and snippets.

@tamsanh
Last active November 14, 2023 06:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamsanh/2560afbd70781433038f86af020c6401 to your computer and use it in GitHub Desktop.
Save tamsanh/2560afbd70781433038f86af020c6401 to your computer and use it in GitHub Desktop.
Install Postgres Dependencies on EC2 Amazon Linux 2023
sudo yum groupinstall -y "Development Tools"
sudo yum install -y readline-devel zlib-devel openssl-devel libuuid-devel
# To install postgres, use asdf
## Setup ASDF
sudo yum install -y git
if [ ! -e ~/.asdf ]; then
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1
fi
. "$HOME/.asdf/asdf.sh"
## Install Postgres
POSTGRES_VERSION=14.7
asdf plugin add postgres
asdf install postgres ${POSTGRES_VERSION}
asdf global postgres ${POSTGRES_VERSION}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment