Skip to content

Instantly share code, notes, and snippets.

@bpluly
Last active October 31, 2023 16:21
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 bpluly/7bbbc0520c98c8fcd731b54e9079a2f9 to your computer and use it in GitHub Desktop.
Save bpluly/7bbbc0520c98c8fcd731b54e9079a2f9 to your computer and use it in GitHub Desktop.
Installing Postgres15 on AWS 2

Whilst AWS Linux 2023 has an up to date package, AWS Linux 2 does not but the former isn't suitable for anything that requires EPEL or much in the way of customising.

sudo rpm -ivh --nodeps https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm sudo sed -i 's/\$releasever/7/g' /etc/yum.repos.d/pgdg-redhat-all.repo sudo yum install -y postgresql15 postgresql15-server PGSETUP_INITDB_OPTIONS='--encoding=UTF-8 --locale=C.UTF-8' sudo /usr/pgsql-15/bin/postgresql-15-setup initdb sudo systemctl enable --now postgresql-15 systemctl status postgresql-15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment