在RockyLinux 9上安装PostgreSQL 15(通过AppStream)
首先
使用 Application Stream (AppStream) 在 RockyLinux OS 9 上安装 PostgreSQL 15。
支持
如果使用这种方法引入的话,根据《Red Hat企业版Linux应用流生命周期 – Red Hat客户门户》的信息,2028年5月被认为是终止支持的时间。
此后可能不会对报告的漏洞和问题进行响应和修复。
日志
安装
# cat /etc/redhat-release
Rocky Linux release 9.2 (Blue Onyx)
# yum module list postgresql
Last metadata expiration check: 0:00:03 ago on Fri Jul 7 03:52:22 2023.
Rocky Linux 9 - AppStream
Name Stream Profiles Summary
postgresql 15 client, server [d] PostgreSQL server and client module
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
# yum install -y @postgresql:15
amlaとコマンドをそろえるなら
# yum install -y @postgresql:15/server
... 略
不同的确认方式
# which postgres
/usr/bin/postgres
# which psql
/usr/bin/psql
# psql --version
psql (PostgreSQL) 15.2