AWS Amazon Linux EC2 安装 psql 客户端
AWS PostgreSQL Linux About 594 words查看历史版本
psql --version
卸载历史版本
dnf remove -y postgresql15
查询可用版本
postgresql1中的1是过滤了版本大于10的。
dnf search postgresql1
postgresql18
最新版本可能还不在AWS的仓库中,可手动安装。
dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/AL-2023-x86_64/pgdg-amazonlinux-repo-latest.noarch.rpm
注意:https://yum.postgresql.org/repopackages
网站上生产的地址可能不对(截止发文前生成的是有问题的)。
如果有问题可以查看上级目录:https://download.postgresql.org/pub/repos/yum/reporpms
安装 psql 18
查询
dnf search postgresql18
安装
dnf install -y postgresql18
Views: 5 · Posted: 2026-10-15
———         Thanks for Reading         ———
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...