在AlmaLinux 8上安装PostgreSQL 15(通过AppStream)
首先
使用应用流(AppStream)在AlmaLinux8上安装PostgreSQL 15。
原文:该文章将会在不久后创建。
参考资料:RHEL8包结构 – BaseOS和应用流 – Red Hat工程师博客
支援
如果采用本方法进行引入,根据Red Hat Enterprise Linux 8 Application Streams Life Cycle – Red Hat Customer Portal,预计2028年5月将终止支持(EOL)。
之后可能不会对报告的漏洞或问题进行修复。
日志
安装
# cat /etc/redhat-release
AlmaLinux release 8.8 (Sapphire Caracal)
# yum module list postgresql
Last metadata expiration check: 0:00:09 ago on Fri Jul 7 03:39:01 2023.
AlmaLinux 8 - AppStream
Name Stream Profiles Summary
postgresql 9.6 client, server [d] PostgreSQL server and client module
postgresql 10 [d] client, server [d] PostgreSQL server and client module
postgresql 12 client, server [d] PostgreSQL server and client module
postgresql 13 client, server [d] PostgreSQL server and client module
postgresql 15 client, server [d] PostgreSQL server and client module
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
# yum install -y @postgresql:15
... 略
不同的确认方式
# which postgres
/usr/bin/postgres
# which psql
/usr/bin/psql
# psql --version
psql (PostgreSQL) 15.2