Last active
November 14, 2023 06:25
-
-
Save tamsanh/2560afbd70781433038f86af020c6401 to your computer and use it in GitHub Desktop.
Install Postgres Dependencies on EC2 Amazon Linux 2023
This file contains hidden or 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 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