CentOS Stream 8
Sponsored Link

Initial Settings : Use Moduler Repository2021/02/19

 
This is how to use Moduler Repository.
[1] Display available modules.
[root@dlp ~]#
dnf module list

CentOS Stream 8 - AppStream
Name                 Stream       Profiles    Summary
389-ds               1.4                      389 Directory Server (base)
ant                  1.10 [d]     common [d] Java build tool

.....
.....

varnish              6 [d]        common [d] Varnish HTTP cache
virt                 rhel [d][e]  common [d] Virtualization module

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[2] For installing available modules, Configure like follows.
# for example, display [PostgreSQL] modules

[root@dlp ~]#
dnf module list postgresql

CentOS Stream 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

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

# install PostgreSQL 10

[root@dlp ~]#
dnf module install postgresql:10

Dependencies resolved.
================================================================================
 Package           Arch   Version                               Repo       Size
================================================================================
Installing group/module packages:
 postgresql-server x86_64 10.15-1.module_el8.4.0+579+22c56897   appstream 5.0 M
Installing dependencies:
 libpq             x86_64 13.1-1.el8                            appstream 197 k
 postgresql        x86_64 10.15-1.module_el8.4.0+579+22c56897   appstream 1.5 M
Installing module profiles:
 postgresql/server
Enabling module streams:
 postgresql               10

Transaction Summary
================================================================================
Install  3 Packages
.....
.....

# state of [PostgreSQL 10] turns to [e]nabled and [i]nstalled

[root@dlp ~]#
dnf module list postgresql

CentOS Stream 8 - AppStream
Name        Stream    Profiles               Summary
postgresql  9.6       client, server [d]     PostgreSQL server and client module
postgresql  10 [d][e] client, server [d] [i] 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

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

[root@dlp ~]#
postgres -V

postgres (PostgreSQL) 10.15
[3] If you would like to change to another version of installed module, Configure like follows.
For example, Switch to PostgreSQL 13 from PostgreSQL 10 installed on [2] above.
[root@dlp ~]#
dnf module list postgresql

CentOS Stream 8 - AppStream
Name        Stream    Profiles               Summary
postgresql  9.6       client, server [d]     PostgreSQL server and client module
postgresql  10 [d][e] client, server [d] [i] 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

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

# reset first to switch

[root@dlp ~]#
dnf module reset postgresql

# install PostgreSQL 13

[root@dlp ~]#
dnf module install postgresql:13
Dependencies resolved.
================================================================================
 Package           Arch   Version                               Repo       Size
================================================================================
Upgrading:
 postgresql        x86_64 13.1-1.module_el8.4.0+598+6a753823    appstream 1.5 M
 postgresql-server x86_64 13.1-1.module_el8.4.0+598+6a753823    appstream 5.6 M
Installing module profiles:
 postgresql/server
Enabling module streams:
 postgresql               13

Transaction Summary
================================================================================
Upgrade  2 Packages
.....
.....

# state of [PostgreSQL 13] turns to [e]nabled

[root@dlp ~]#
dnf module list postgresql

CentOS Stream 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 [e]  client, server [d] [i]  PostgreSQL server and client module

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

[root@dlp ~]#
postgres -V

postgres (PostgreSQL) 13.1
Matched Content