Fedora 37
Sponsored Link

Initial Settings : Use Moduler Repository2022/11/16

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

Fedora Modular 37 - x86_64
Name               Stream           Profiles Summary
avocado            latest           default[d],minimal  Framework with tools and libraries for Automated Testing
avocado            82lts            default,minimal     Framework with tools and libraries for Automated Testing
avocado-vt         latest           default  Avocado Virt Test Plugin
avocado-vt         82lts            default  Avocado Virt Test Plugin
cri-o              1.20             default[d]  Kubernetes Container Runtime Interface for OCI-based containers
.....
.....

varnish            6.0              default  Varnish HTTP cache

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

[root@dlp ~]#
dnf module list nodejs

Fedora Modular 37 - x86_64
Name       Stream     Profiles                             Summary
nodejs     14         common [d], development, minimal     Javascript runtime
nodejs     16         common [d], development, minimal     Javascript runtime
nodejs     18         common, development, minimal         Javascript runtime

Fedora Modular 37 - x86_64 - Updates
Name       Stream     Profiles                             Summary
nodejs     14         common [d], development, minimal     Javascript runtime
nodejs     16         common [d], development, minimal     Javascript runtime
nodejs     18         common, development, minimal         Javascript runtime

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

# for example, install Node.js 14

[root@dlp ~]#
dnf module -y install nodejs:14

Dependencies resolved.
================================================================================
 Package     Arch   Version                                Repository      Size
================================================================================
Installing group/module packages:
 nodejs      x86_64 1:14.19.3-1.module_f37+14476+e95ad973  fedora-modular 200 k
 npm         x86_64 1:6.14.17-1.14.19.3.1.module_f37+14476+e95ad973
                                                           fedora-modular 3.3 M
Installing dependencies:
 nodejs-libs x86_64 1:14.19.3-1.module_f37+14476+e95ad973  fedora-modular  13 M
 openssl1.1  x86_64 1:1.1.1q-2.fc37                        fedora         1.5 M
Installing weak dependencies:
 nodejs-docs noarch 1:14.19.3-1.module_f37+14476+e95ad973  fedora-modular 6.2 M
 nodejs-full-i18n
             x86_64 1:14.19.3-1.module_f37+14476+e95ad973  fedora-modular 8.1 M
Installing module profiles:
 nodejs/common

Enabling module streams:
 nodejs             14

Transaction Summary
================================================================================
Install  6 Packages
.....
.....

# state of [Node.js 14] turns to [e]nabled and [i]nstalled

[root@dlp ~]#
dnf module list nodejs

Fedora Modular 37 - x86_64
Name      Stream    Profiles                                Summary
nodejs    14 [e]    common [d] [i], development, minimal    Javascript runtime
nodejs    16        common [d], development, minimal        Javascript runtime
nodejs    18        common, development, minimal            Javascript runtime

Fedora Modular 37 - x86_64 - Updates
Name      Stream    Profiles                                Summary
nodejs    14 [e]    common [d] [i], development, minimal    Javascript runtime
nodejs    16        common [d], development, minimal        Javascript runtime
nodejs    18        common, development, minimal            Javascript runtime

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

[root@dlp ~]#
node -v

v14.19.3
# if you'd like to switch to another version, reset first

[root@dlp ~]#
dnf module -y reset nodejs

# enable and install [Node.js 18]

[root@dlp ~]#
dnf module -y enable nodejs:18

[root@dlp ~]#
dnf module -y install nodejs:18/common
# state of [Node.js 18] turns to [e]nabled

[root@dlp ~]#
dnf module list nodejs

Fedora Modular 37 - x86_64
Name       Stream     Profiles                             Summary
nodejs     14         common [d], development, minimal     Javascript runtime
nodejs     16         common [d], development, minimal     Javascript runtime
nodejs     18 [e]     common [i], development, minimal     Javascript runtime

Fedora Modular 37 - x86_64 - Updates
Name       Stream     Profiles                             Summary
nodejs     14         common [d], development, minimal     Javascript runtime
nodejs     16         common [d], development, minimal     Javascript runtime
nodejs     18 [e]     common [i], development, minimal     Javascript runtime

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

[root@dlp ~]#
node -v

v18.7.0
Matched Content