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

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.
Fedora 40 : Mail Server
Introduction This guide covers the installation and configuration of a mail server on Fedora 40. It will help you understand the what, who, where, when, why, and how of setting up a mail server.
Cyber Security: NIST Overview
Overview The National Institute of Standards and Technology (NIST) is a pivotal entity in the United States that plays a crucial role in advancing measurement science, standards, and technology. Understanding NIST’s functions, importance, and impact is vital for various industries and sectors.
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.
AlmaLinux 9: How to Install
Introduction AlmaLinux 9 Server is a free and open-source Linux distribution that provides a stable and secure platform for server environments. It's a popular choice for both enterprise and personal use due to its reliability and robust features. This guide will walk you through the steps to install AlmaLinux 9 Server on your system.
AlmaLinux 9: Overview
Introduction AlmaLinux 9 is a robust, open-source enterprise operating system that serves as a community-driven alternative to CentOS. Designed to deliver stability, performance, and long-term support, AlmaLinux is an excellent choice for servers in diverse environments, from small businesses to large enterprises.