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

What is Random Access Memory (RAM)?
Random Access Memory (RAM) is one of the essential components in computer hardware. RAM is responsible for storing and retrieving data quickly, which is why it is often referred to as the "working memory" of a computer. This memory allows the computer to perform various tasks efficiently by providing temporary space for data and instructions that are being processed by the processor. In this article, we will take a closer look at what RAM is, how it works, and why it is important for the overall performance of a computer system.
What does a data analyst do?
Did you know that 2.5 quintillion bytes of data are created every day? That’s equivalent to 250,000 Libraries of Congress, or 5 million laptops! In this ocean of data, how do we make sense of it all? That’s where data analysts come in. Data analysts are the detectives of the digital world, using their skills and tools to uncover patterns, trends, and insights from data. They help businesses and organizations make informed decisions, solve problems, and seize opportunities. Whether it’s predicting customer behavior, optimizing marketing campaigns, improving healthcare outcomes, or enhancing educational experiences, data analysts play a crucial role in shaping our world.
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.
What is DOS?
Have you ever wondered how your computer knows what to do? The answer lies in the operating system, or OS. One of the oldest and most influential operating systems is DOS, or Disk Operating System. DOS is like a command center that tells the computer what to do and how to do it. Unlike modern operating systems, DOS uses text-based commands instead of graphical user interfaces. While it may seem simple and primitive, DOS is also fast, powerful, and flexible. However, it also has its drawbacks, such as its complexity and obsolescence. In this article, we will explore the fascinating world of DOS.
How To Get Started With No-Code and Low-Code
Imagine your boss asks you to develop custom software for your company. But you and your team don’t have the time or experience in coding. And there’s no developer available at the moment as well. Panicking? Well, don’t. With low code/no code programming, you don’t have to be a developer to do any programming-related task. In recent years, many platforms have made it possible for programmers with little to no development experience to deliver software while meeting the needs of professional developers under time pressure. Without worrying about the specifics of underlying operating systems or scalability needs,
What is Github?
GitHub is a powerful and widely-used web-based platform designed for version control and collaboration , especially for developers. Built upon Git, it allows users to store, manage, and track their code projects efficiently. Beyond its repository-hosting capabilities, GitHub fosters teamwork by enabling developers to work together seamlessly, review changes, and contribute to open-source projects from anywhere in the world. Whether you're a seasoned programmer or a beginner, GitHub provides essential tools to streamline coding and project management in one centralized platform. But what exactly is it? In this article, we’ll break down everything you need to know about this essential tool for collaborative coding.