Created
February 2, 2021 15:37
-
-
Save yolabingo/c04cf7bbf7f0e9038c6ae0c00dad555a to your computer and use it in GitHub Desktop.
amazon linux install postgres 12
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
yum remove -y libpq.x86_64 postgresql.x86_64 postgresql-server.x86_64 | |
cat <<EOF > /etc/yum.repos.d/pgdg.repo | |
[pgdg12] | |
name=PostgreSQL 12 for RHEL/CentOS 7 - x86_64 | |
baseurl=https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-7-x86_64 | |
enabled=1 | |
gpgcheck=0 | |
EOF | |
yum makecache | |
yum install postgresql12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment