Initial Settings : Use Moduler Repository2021/04/28 |
This is how to use Moduler Repository.
|
|
[1] | Display available modules. |
[root@dlp ~]# dnf module list Fedora Modular 34 - x86_64 Name Stream Profiles Summary ant 1.10 default [d] Java build tool 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 nightly default Kubernetes Container Runtime Interface for OCI-based containers ..... ..... tomcat master default Apache Servlet/JSP Engine, RI for Servlet 4.0/JSP 2.3 API 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 34 - x86_64 Name Stream Profiles Summary nodejs 10 default [d], development, minimal Javascript runtime nodejs 12 default [d], development, minimal Javascript runtime nodejs 14 default, development, minimal Javascript runtime nodejs 15 default, development, minimal Javascript runtime Fedora Modular 34 - x86_64 - Updates Name Stream Profiles Summary nodejs 10 default [d], development, minimal Javascript runtime nodejs 12 default [d], development, minimal Javascript runtime nodejs 14 default, development, minimal Javascript runtime nodejs 15 default, development, minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled # for example, install Node.js 12 [root@dlp ~]# dnf module -y install nodejs:12 Dependencies resolved. ================================================================================================== Package Arch Version Repository Size ================================================================================================== Installing group/module packages: nodejs x86_64 1:12.22.1-1.module_f34+11844+d10d89b4 updates-modular 98 k npm x86_64 1:6.14.12-1.12.22.1.1.module_f34+11844+d10d89b4 updates-modular 3.3 M Installing dependencies: nodejs-libs x86_64 1:12.22.1-1.module_f34+11844+d10d89b4 updates-modular 12 M Installing weak dependencies: nodejs-docs noarch 1:12.22.1-1.module_f34+11844+d10d89b4 updates-modular 3.0 M nodejs-full-i18n x86_64 1:12.22.1-1.module_f34+11844+d10d89b4 updates-modular 7.8 M 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 Fedora Modular 34 - x86_64 Name Stream Profiles Summary nodejs 10 default [d], development, minimal Javascript runtime nodejs 12 [e] default [d] [i], development, minimal Javascript runtime nodejs 14 default, development, minimal Javascript runtime nodejs 15 default, development, minimal Javascript runtime Fedora Modular 34 - x86_64 - Updates Name Stream Profiles Summary nodejs 10 default [d], development, minimal Javascript runtime nodejs 12 [e] default [d] [i], development, minimal Javascript runtime nodejs 14 default, development, minimal Javascript runtime nodejs 15 default, development, minimal Javascript runtime
[root@dlp ~]#
node -v v12.22.1 # enable and install [Node.js 15] [root@dlp ~]# dnf module enable nodejs:15 [root@dlp ~]# dnf module -y install nodejs:15/default
# state of [Node.js 15] turns to [e]nabled [root@dlp ~]# dnf module list nodejs Fedora Modular 34 - x86_64 Name Stream Profiles Summary nodejs 10 default [d], development, minimal Javascript runtime nodejs 12 default [d], development, minimal Javascript runtime nodejs 14 default, development, minimal Javascript runtime nodejs 15 [e] default [i], development, minimal Javascript runtime Fedora Modular 34 - x86_64 - Updates Name Stream Profiles Summary nodejs 10 default [d], development, minimal Javascript runtime nodejs 12 default [d], development, minimal Javascript runtime nodejs 14 default, development, minimal Javascript runtime nodejs 15 [e] default [i], development, minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled[root@dlp ~]# node -v v15.11.0 |
Sponsored Link |