Fedora 32
Sponsored Link

初期設定 : モジュラーリポジトリを利用する2020/04/29

 
モジュラーリポジトリを利用する場合の基本操作です。
[1] 利用可能なモジュールのリストを表示します。
[root@dlp ~]#
dnf module list

Last metadata expiration check: 0:36:28 ago on Wed 29 Apr 2020 01:07:04 AM EDT.
Fedora Modular 32 - x86_64
Name                 Stream      Profiles  Summary
ant                  1.10        default [d] Java build tool
avocado              latest      default [d], minim r Automated Testingal Framework with tools and libraries fo
avocado              69lts       default [d], minim r Automated Testingal Framework with tools and libraries fo
cobbler              3           default   Versatile Linux deployment server
cri-o                1.11        default   Kubernetes Container Runtime Interface for OCI-based containers
.....
.....
tomcat               master      default   Apache Servlet/JSP Engine, RI for Ser
                                           vlet 4.0/JSP 2.3 API
varnish              6.0         default   Varnish HTTP cache

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[2] 利用可能なモジュールをインストールするには以下のように設定します。
# 例として Node.js のモジュールリストを表示

[root@dlp ~]#
dnf module list nodejs

Last metadata expiration check: 0:38:15 ago on Wed 29 Apr 2020 01:07:04 AM EDT.
Fedora Modular 32 - x86_64
Name       Stream     Profiles                             Summary
nodejs     10         default [d], development, minimal    Javascript runtime
nodejs     12         default [d], development, minimal    Javascript runtime
nodejs     13         default, development, minimal        Javascript runtime

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

# Node.js 12 をインストール

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

Last metadata expiration check: 0:38:47 ago on Wed 29 Apr 2020 01:07:04 AM EDT.
Dependencies resolved.
===============================================================================================
 Package            Arch    Version                                       Repository       Size
===============================================================================================
Installing group/module packages:
 nodejs             x86_64  1:12.16.1-1.module_f32+8191+04fa579c          fedora-modular  102 k
 npm                x86_64  1:6.13.4-1.12.16.1.1.module_f32+8191+04fa579c fedora-modular  3.4 M
Installing dependencies:
 libuv              x86_64  1:1.34.2-1.module_f32+7522+981ba268           fedora-modular  148 k
 nodejs-libs        x86_64  1:12.16.1-1.module_f32+8191+04fa579c          fedora-modular   12 M
Installing weak dependencies:
 nodejs-docs        noarch  1:12.16.1-1.module_f32+8191+04fa579c          fedora-modular  2.8 M
 nodejs-full-i18n   x86_64  1:12.16.1-1.module_f32+8191+04fa579c          fedora-modular  7.6 M
Installing module profiles:
 nodejs/default
Enabling module streams:
 nodejs                     12

Transaction Summary
===============================================================================================
Install  6 Packages
.....
.....

# Node.js 12 が [e]nabled, [i]nstalled 状態となる

[root@dlp ~]#
dnf module list nodejs

Last metadata expiration check: 0:43:23 ago on Wed 29 Apr 2020 01:07:04 AM EDT.
Fedora Modular 32 - 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    13        default, development, minimal           Javascript runtime

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

[root@dlp ~]#
dnf module provides nodejs

Last metadata expiration check: 0:43:46 ago on Wed 29 Apr 2020 01:07:04 AM EDT.
nodejs-1:10.19.0-1.module_f32+7691+71be9bd6.x86_64
Module   : nodejs:10:3220200213182243:43bbeeef:x86_64
Profiles : default development minimal
Repo     : fedora-modular
Summary  : Javascript runtime
.....
.....
[root@dlp ~]#
node -v

v12.16.1
# 他バージョンの Node.js に切り替えたい場合は一旦リセットする

[root@dlp ~]#
dnf module reset nodejs

# Node.js 10 をインストール

[root@dlp ~]#
dnf module install nodejs:10
# Node.js 10 が [e]nabled 状態になる

[root@dlp ~]#
dnf module list nodejs

Last metadata expiration check: 0:47:18 ago on Wed 29 Apr 2020 01:07:04 AM EDT.
Fedora Modular 32 - x86_64
Name      Stream    Profiles                                Summary
nodejs    10 [e]    default [d] [i], development, minimal   Javascript runtime
nodejs    12        default [d], development, minimal       Javascript runtime
nodejs    13        default, development, minimal           Javascript runtime

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

[root@dlp ~]#
dnf module provides nodejs

Last metadata expiration check: 0:47:39 ago on Wed 29 Apr 2020 01:07:04 AM EDT.
nodejs-1:10.19.0-1.module_f32+7691+71be9bd6.x86_64
Module   : nodejs:10:3220200213182243:43bbeeef:x86_64
Profiles : default development minimal
Repo     : fedora-modular
Summary  : Javascript runtime
[root@dlp ~]#
node -v

v10.19.0
関連コンテンツ