Initial Settings : Use Moduler Repository2021/07/16 |
This is how to use Moduler Repository.
|
|
[1] | Display available modules. |
[root@dlp ~]# dnf module list Rocky Linux 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 Rocky Linux 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 -y install postgresql:10 Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Installing group/module packages: postgresql-server x86_64 10.17-1.module+el8.4.0+548+9eccbe3f appstream 5.1 M Installing dependencies: libpq x86_64 13.3-1.el8_4 appstream 196 k postgresql x86_64 10.17-1.module+el8.4.0+548+9eccbe3f 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 Rocky Linux 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.17 |
[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 Rocky Linux 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 # install PostgreSQL 13 [root@dlp ~]# dnf module -y install postgresql:13
Dependencies resolved. ================================================================================ Package Arch Version Repo Size ================================================================================ Upgrading: postgresql x86_64 13.3-1.module+el8.4.0+546+3620623e appstream 1.5 M postgresql-server x86_64 13.3-1.module+el8.4.0+546+3620623e 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 Rocky Linux 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.3 |
Sponsored Link |