{"id":10271,"date":"2021-09-07T14:04:15","date_gmt":"2021-09-07T11:04:15","guid":{"rendered":"https:\/\/kifarunix.com\/?p=10271"},"modified":"2024-03-18T14:10:40","modified_gmt":"2024-03-18T11:10:40","slug":"install-postgresql-on-rocky-linux-8","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-postgresql-on-rocky-linux-8\/","title":{"rendered":"Install PostgreSQL on Rocky Linux 8"},"content":{"rendered":"\n

In this tutorial, you will learn how to install PostgreSQL on Rocky Linux 8. <\/p>\n\n\n\n

 PostgreSQL<\/a> is a fully featured object-relational database management system. It supports a large part of the SQL standard and is designed to be extensible by users in many aspects.<\/p>\n\n\n\n

Some of the features are: ACID transactions, foreign keys, views, sequences, subqueries, triggers, user-defined types and functions, outer joins, multiversion concurrency control. Graphical user interfaces and bindings for many programming languages are available as well.<\/p>\n\n\n\n

PostgreSQL is a powerful, open source object-relational database system that uses and extends the SQL language combined with many features that safely store and scale the most complicated data workloads.<\/p>\n\n\n\n

Installing PostgreSQL on Rocky Linux 8<\/h2>\n\n\n\n

Rocky Linux ships with AppStream repository modules for various versions of PostgreSQL.<\/p>\n\n\n\n

dnf module list postgresql<\/code><\/pre>\n\n\n\n
Rocky Linux 8 - AppStream\nName                                Stream                          Profiles                                    Summary                                                     \npostgresql                          9.6                             client, server [d]                          PostgreSQL server and client module                         \npostgresql                          10 [d]                          client, server [d]                          PostgreSQL server and client module                         \npostgresql                          12                              client, server [d]                          PostgreSQL server and client module                         \npostgresql                          13                              client, server [d]                          PostgreSQL server and client module                         \n\nHint: [d]efault, [e]nabled, [x]disabled, [i]nstalled\n<\/code><\/pre>\n\n\n\n

From the output above, you can can we that there are streams of various versions of PostgreSQL including v9.6, 10, 12, 13.<\/p>\n\n\n\n

The AppStream modules for PostgreSQL is enabled by default.<\/p>\n\n\n\n

For various reasons, you might want to install various versions of PostgreSQL on your Rocky Linux 8 box.<\/p>\n\n\n\n

Install PostgreSQL 13 on Rocky Linux 8<\/a><\/h3>\n\n\n\n

As of this writing, PostgreSQL 13 is the current stable release<\/a>.<\/p>\n\n\n\n

By default, the AppStream modules for PostgreSQL 10 are enabled by default.<\/p>\n\n\n\n

To install PostgreSQL 13 on Rocky Linux 8;<\/p>\n\n\n\n