CentOS Stream 9: Moduler Repository

step-1

Initial Settings

Below are how to use the Moduler Repository of CentOS Stream 9.

Step [1] Display available modules.


[root@bizantum ~]# dnf module list
CentOS Stream 9 - AppStream
Name       Stream Profiles               Summary
maven      3.8    common [d]             Java project management and project com
                                         prehension tool
nginx      1.22   common [d]             nginx webserver

.....
.....

postgresql 15     client, server [d]     PostgreSQL server and client module
redis      7      common [d]             Redis persistent key-value database
ruby       3.1    common [d]             An interpreter of object-oriented scrip
                                         ting language

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

Step [2] For installing available modules, Configure like follows.


# for example, display [Node.js] modules
[root@bizantum ~]# dnf module list nodejs
CentOS Stream 9 - AppStream
Name      Stream    Profiles                                Summary
nodejs    18        common [d], development, minimal, s2i   Javascript runtime
nodejs    20        common [d], development, minimal, s2i   Javascript runtime

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

# install Node.js 18
[root@bizantum ~]# dnf module -y install nodejs:18
Dependencies resolved.
========================================================================================
 Package            Arch    Version                                     Repo        Size
========================================================================================
Installing group/module packages:
 nodejs             x86_64  1:18.14.2-2.module_el9+307+7e5e4074         appstream   12 M
 npm                x86_64  1:9.5.0-1.18.14.2.2.module_el9+307+7e5e4074 appstream  2.5 M
Installing weak dependencies:
 nodejs-docs        noarch  1:18.14.2-2.module_el9+307+7e5e4074         appstream  7.6 M
 nodejs-full-i18n   x86_64  1:18.14.2-2.module_el9+307+7e5e4074         appstream  8.4 M
Installing module profiles:
 nodejs/common
Enabling module streams:
 nodejs                     18

Transaction Summary
========================================================================================
Install  4 Packages
.....
.....

# state of [Node.js 18] turns to [e]nabled and [i]nstalled
[root@bizantum ~]# dnf module list nodejs
CentOS Stream 9 - AppStream
Name     Stream   Profiles                                   Summary
nodejs   18 [e]   common [d] [i], development, minimal, s2i  Javascript runtime
nodejs   20       common [d], development, minimal, s2i      Javascript runtime

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

[root@bizantum ~]# node -v
v18.14.2

Step [3] If you would like to change to another version of installed module, Configure like follows. For example, Switch to Node.js 20 from Node.js 18 that was installed on Step [2] above.


[root@bizantum ~]# dnf module list nodejs
CentOS Stream 9 - AppStream
Name     Stream   Profiles                                   Summary
nodejs   18 [e]   common [d] [i], development, minimal, s2i  Javascript runtime
nodejs   20       common [d], development, minimal, s2i      Javascript runtime

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

# reset first to switch
[root@bizantum ~]# dnf module -y reset nodejs
# install Node.js 20
[root@bizantum ~]# dnf module -y install nodejs:20
Dependencies resolved.
=======================================================================================
 Package            Arch    Version                                    Repo        Size
=======================================================================================
Upgrading:
 nodejs             x86_64  1:20.5.1-1.module_el9+642+c81e94f6         appstream   14 M
 nodejs-docs        noarch  1:20.5.1-1.module_el9+642+c81e94f6         appstream  8.0 M
 nodejs-full-i18n   x86_64  1:20.5.1-1.module_el9+642+c81e94f6         appstream  8.5 M
 npm                x86_64  1:9.8.0-1.20.5.1.1.module_el9+642+c81e94f6 appstream  2.6 M
Installing module profiles:
 nodejs/common
Enabling module streams:
 nodejs                     20

Transaction Summary
=======================================================================================
Upgrade  4 Packages
.....
.....

# state of [Node.js 20] turns to [e]nabled
[root@bizantum ~]# dnf module list nodejs
CentOS Stream 9 - AppStream
Name     Stream   Profiles                                   Summary
nodejs   18       common [d], development, minimal, s2i      Javascript runtime
nodejs   20 [e]   common [d] [i], development, minimal, s2i  Javascript runtime

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

[root@bizantum ~]# node -v
v20.5.1

Comments

Popular posts from this blog

Cyber Security: ISO 27001 Overview
Introduction ISO 27001 is an international standard for information security management systems (ISMS). It provides a framework for managing sensitive company information to ensure it remains secure. Understanding ISO 27001 is crucial for organizations aiming to protect their information assets.
Comprehensive Guide to Windows Subsystem for Linux (WSL): Benefits, Setup, and Usage
Introduction Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables natively on Windows 10, Windows 11, and Windows Server. It allows users to run a GNU/Linux environment directly on Windows, including most command-line tools, utilities, and applications.
Ultimate Guide to COBIT: Framework, Benefits, Implementation, and Impact
Introduction COBIT (Control Objectives for Information and Related Technologies) is a globally recognized framework for managing and governing enterprise IT. It provides comprehensive guidelines for organizations to achieve their objectives through the effective use of IT.
Understanding ISO/IEC 20000: A Comprehensive Guide to IT Service Management
Introduction ISO/IEC 20000 is an international standard for IT Service Management (ITSM). It provides a framework for managing and delivering IT services that meet business needs and customer requirements. The standard ensures consistent and high-quality IT service delivery through a set of processes and best practices.
Top SEO Tools for Digital Marketing: A Comprehensive Guide
Introduction In today's digital landscape, search engine optimization (SEO) is a critical component for any business looking to enhance its online presence and drive organic traffic. With the myriad of SEO tools available, navigating the digital marketing space can seem daunting. To streamline your efforts and achieve optimal results, it's essential to leverage the right tools that cater to your specific needs.
Debian 12 Bookworm: Install Kubeadm
Introduction In this article, we will explore the what, who, where, when, why, and how of Kubeadm functionality on the Debian 12 Bookworm platform, so let's get started.