Fedora 31
Sponsored Link

Initial Settings : Use Moduler Repository2019/11/04

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

Last metadata expiration check: 0:07:59 ago on Mon 04 Nov 2019 01:41:00 PM JST.
Fedora Modular 31 - x86_64
Name                 Stream               Profiles                                          Summary
afterburn            rolling [d]          default [d]                                       Simple cloud provider agent
ant                  1.10 [d]             default [d]                                       Java build tool
askalono-cli         rolling [d]          default [d]                                       Tool to detect the contents of license files
avocado              latest               default [d], minimal                              Framework with tools and libraries for Automated Testing
avocado              69lts [d]            default [d], minimal                              Framework with tools and libraries for Automated Testing
bat                  latest [d]           default [d]                                       cat(1) clone with wings
cbindgen             rolling [d]          default [d]                                       Tool for generating C bindings to Rust code
cri-o                1.11                 default                                           Kubernetes Container Runtime Interface for OCI-based containers
cri-o                1.12                 default                                           Kubernetes Container Runtime Interface for OCI-based containers
cri-o                1.14                 default                                           Kubernetes Container Runtime Interface for OCI-based containers
django               1.6                  default [d], python2_development                  A high-level Python Web framework
.....
.....

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

Last metadata expiration check: 0:09:23 ago on Mon 04 Nov 2019 01:41:00 PM JST.
Fedora Modular 31 - x86_64
Name       Stream     Profiles                             Summary
nodejs     10         development, default [d], minimal    Javascript runtime
nodejs     11         development, default, minimal        Javascript runtime
nodejs     12         development, default [d], minimal    Javascript runtime

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

# install Node.js 12

[root@dlp ~]#
dnf module install nodejs:12

Last metadata expiration check: 0:10:29 ago on Mon 04 Nov 2019 01:41:00 PM JST.
Dependencies resolved.
================================================================================
 Package     Arch   Version                                Repository      Size
================================================================================
Installing group/module packages:
 nodejs      x86_64 1:12.10.0-1.module_f31+6288+9325cde9   fedora-modular 407 k
 npm         x86_64 1:6.10.3-1.12.10.0.1.module_f31+6288+9325cde9
                                                           fedora-modular 3.4 M
Installing dependencies:
 libuv       x86_64 1:1.31.0-0.module_f31+5977+411d1fa5    fedora-modular 142 k
 nodejs-libs x86_64 1:12.10.0-1.module_f31+6288+9325cde9   fedora-modular  13 M
 http-parser x86_64 2.9.2-2.fc31                           fedora          39 k
Installing module profiles:
 nodejs/default

Enabling module streams:
 nodejs             12

Transaction Summary
================================================================================
Install  5 Packages
.....
.....

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

[root@dlp ~]#
dnf module list nodejs

Last metadata expiration check: 0:11:32 ago on Mon 04 Nov 2019 01:41:00 PM JST.
Fedora Modular 31 - x86_64
Name      Stream    Profiles                                Summary
nodejs    10        development, default [d], minimal       Javascript runtime
nodejs    11        development, default, minimal           Javascript runtime
nodejs    12 [e]    development, default [d] [i], minimal   Javascript runtime

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

[root@dlp ~]#
dnf module provides nodejs

Last metadata expiration check: 0:12:07 ago on Mon 04 Nov 2019 01:41:00 PM JST.
nodejs-1:12.10.0-1.module_f31+6288+9325cde9.x86_64
Module   : nodejs:12:3120190905142236:f636be4b:x86_64
Profiles : development default minimal
Repo     : fedora-modular
Summary  : Javascript runtime
[root@dlp ~]#
node -v

v12.10.0
# if you'd like to switch to another version, reset first

[root@dlp ~]#
dnf module reset nodejs

# install [Node.js 10]

[root@dlp ~]#
dnf module install nodejs:10
# state of [Node.js 10] turns to [e]nabled

[root@dlp ~]#
dnf module list nodejs

Last metadata expiration check: 0:13:34 ago on Mon 04 Nov 2019 01:41:00 PM JST.
Fedora Modular 31 - x86_64
Name      Stream    Profiles                                Summary
nodejs    10 [e]    development, default [d] [i], minimal   Javascript runtime
nodejs    11        development, default, minimal           Javascript runtime
nodejs    12        development, default [d], minimal       Javascript runtime

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

[root@dlp ~]#
dnf module provides nodejs

Last metadata expiration check: 0:13:55 ago on Mon 04 Nov 2019 01:41:00 PM JST.
nodejs-1:10.16.3-1.module_f31+5955+08aea14a.x86_64
Module   : nodejs:10:3120190816104510:f636be4b:x86_64
Profiles : development default minimal
Repo     : fedora-modular
Summary  : Javascript runtime
[root@dlp ~]#
node -v

v10.16.3
Matched Content