初期設定 : モジュラーリポジトリ使用する2018/11/01 |
モジュラーリポジトリ使用する場合の使用方法です。
|
|
[1] | 利用可能なモジュールのリストを表示します。 |
[root@dlp ~]# dnf module list Last metadata expiration check: 0:06:35 ago on Thu 01 Nov 2018 10:25:55 AM JST. Fedora Modular 29 - x86_64 Name Stream Profiles Summary ant 1.10 default [d] Java build tool avocado latest minimal, defaul Framework with tools and librari t es for Automated Testing avocado stable minimal, defaul Framework with tools and librari t es for Automated Testing container-tools 2017.0 default Common tools and dependencies fo r container runtimes container-tools 2018.0 default Common tools and dependencies fo r container runtimes cri-o 1.11 default Kubernetes Container Runtime Int erface for OCI-based containers cri-o 2017.0 default Kubernetes Container Runtime Int erface for OCI-based containers cri-o 2018.0 default Kubernetes Container Runtime Int erface for OCI-based containers django 1.6 python2_develop A high-level Python Web framewor ment, default [ k d] docker 2017.0 default Module for docker runtime and do ..... ..... Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
[2] | 利用可能なモジュールをインストールするには以下のように設定します。 |
# 例として Node.js のモジュールリストを表示 [root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:00:38 ago on Thu 01 Nov 2018 19:40:19 AM JST. Fedora Modular 29 - x86_64 Name Stream Profiles Summary nodejs 10 development, minimal, default Javascript runtime nodejs 8 development, minimal, default [d] Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled # Node.js 8 をインストール [root@dlp ~]# dnf module install nodejs:8/default Last metadata expiration check: 0:03:21 ago on Thu 01 Nov 2018 19:12:06 AM JST. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing group/module packages: nodejs x86_64 1:8.11.4-1.module_2030+42747d40 fedora-modular 7.3 M npm x86_64 1:5.6.0-1.8.11.4.1.module_2030+42747d40 fedora-modular 4.0 M Installing dependencies: libuv x86_64 1:1.23.2-1.fc29 updates 122 k compat-openssl10 x86_64 1:1.0.2o-3.fc29 fedora 1.1 M http-parser x86_64 2.8.1-2.fc29 fedora 37 k make x86_64 1:4.2.1-10.fc29 fedora 487 k Installing module profiles: nodejs/default Enabling module streams: nodejs 8 Transaction Summary ================================================================================ Install 6 Packages ..... ..... # Node.js 8 が [e]nabled, [i]nstalled 状態となる [root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:01:49 ago on Thu 01 Nov 2018 11:40:19 AM JST. Fedora Modular 29 - x86_64 Name Stream Profiles Summary nodejs 10 development, minimal, default Javascript runtime nodejs 8 [e] development, minimal, default [d] [i] Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled[root@dlp ~]# dnf module provides nodejs Last metadata expiration check: 0:02:07 ago on Thu 01 Nov 2018 11:40:19 AM JST. nodejs-1:8.11.4-1.module_2030+42747d40.x86_64 Module : nodejs:8:20180816123422:6c81f848:x86_64 Profiles : development minimal default Repo : fedora-modular Summary : Javascript runtime
[root@dlp ~]#
node -v v8.11.4 # Node.js 10 が [e]nabled 状態になる [root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:03:22 ago on Thu 01 Nov 2018 19:40:19 AM JST. Fedora Modular 29 - x86_64 Name Stream Profiles Summary nodejs 10 [e] development, minimal, default [i] Javascript runtime nodejs 8 development, minimal, default [d] Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled[root@dlp ~]# dnf module provides nodejs Last metadata expiration check: 0:03:38 ago on Thu 01 Nov 2018 19:40:19 AM JST. nodejs-1:10.11.0-1.module_2200+adbac02b.x86_64 Module : nodejs:10:20180920144631:6c81f848:x86_64 Profiles : development minimal default Repo : fedora-modular Summary : Javascript runtime
[root@dlp ~]#
node -v v10.11.0 # 再び Node.js 8 に戻したい場合は一旦現在の nodejs を削除して nodejs:8 を有効化 [root@dlp ~]# dnf remove nodejs [root@dlp ~]# dnf module enable nodejs:8 Last metadata expiration check: 0:02:15 ago on Thu 01 Nov 2018 19:19:06 AM JST. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Switching module streams: nodejs 10 -> 8 Transaction Summary ================================================================================ Is this ok [y/N]: y Complete! Switching module streams does not alter installed packages (see 'module enable' in dnf(8) for details)[root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:02:28 ago on Thu 01 Nov 2018 19:19:06 AM JST. Fedora Modular 29 - x86_64 Name Stream Profiles Summary nodejs 10 development, minimal, default Javascript runtime nodejs 8 [e] development, minimal, default [d] [i] Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
Sponsored Link |
|