初期設定 : モジュラーリポジトリ使用する2019/11/04 |
モジュラーリポジトリ使用する場合の使用方法です。
|
|
[1] | 利用可能なモジュールのリストを表示します。 |
[root@dlp ~]# dnf module list Last metadata expiration check: 0:07:59 ago on Mon 04 Nov 2019 01:41:00 PM JST. Fedora Modular 31 - x86_64 Name Stream Profiles Summary afterburn rolling [d] default [d] Simple cloud provider agent ant 1.10 [d] default [d] Java build tool askalono-cli rolling [d] default [d] Tool to detect the contents of license files avocado latest default [d], minimal Framework with tools and libraries for Automated Testing avocado 69lts [d] default [d], minimal Framework with tools and libraries for Automated Testing bat latest [d] default [d] cat(1) clone with wings cbindgen rolling [d] default [d] Tool for generating C bindings to Rust code cri-o 1.11 default Kubernetes Container Runtime Interface for OCI-based containers cri-o 1.12 default Kubernetes Container Runtime Interface for OCI-based containers cri-o 1.14 default Kubernetes Container Runtime Interface for OCI-based containers django 1.6 default [d], python2_development A high-level Python Web framework ..... ..... Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
[2] | 利用可能なモジュールをインストールするには以下のように設定します。 |
# 例として Node.js のモジュールリストを表示 [root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:09:23 ago on Mon 04 Nov 2019 01:41:00 PM JST. Fedora Modular 31 - x86_64 Name Stream Profiles Summary nodejs 10 development, default [d], minimal Javascript runtime nodejs 11 development, default, minimal Javascript runtime nodejs 12 development, default [d], 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:10:29 ago on Mon 04 Nov 2019 01:41:00 PM JST. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing group/module packages: nodejs x86_64 1:12.10.0-1.module_f31+6288+9325cde9 fedora-modular 407 k npm x86_64 1:6.10.3-1.12.10.0.1.module_f31+6288+9325cde9 fedora-modular 3.4 M Installing dependencies: libuv x86_64 1:1.31.0-0.module_f31+5977+411d1fa5 fedora-modular 142 k nodejs-libs x86_64 1:12.10.0-1.module_f31+6288+9325cde9 fedora-modular 13 M http-parser x86_64 2.9.2-2.fc31 fedora 39 k Installing module profiles: nodejs/default Enabling module streams: nodejs 12 Transaction Summary ================================================================================ Install 5 Packages ..... ..... # Node.js 12 が [e]nabled, [i]nstalled 状態となる [root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:11:32 ago on Mon 04 Nov 2019 01:41:00 PM JST. Fedora Modular 31 - x86_64 Name Stream Profiles Summary nodejs 10 development, default [d], minimal Javascript runtime nodejs 11 development, default, minimal Javascript runtime nodejs 12 [e] development, default [d] [i], minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled[root@dlp ~]# dnf module provides nodejs Last metadata expiration check: 0:12:07 ago on Mon 04 Nov 2019 01:41:00 PM JST. nodejs-1:12.10.0-1.module_f31+6288+9325cde9.x86_64 Module : nodejs:12:3120190905142236:f636be4b:x86_64 Profiles : development default minimal Repo : fedora-modular Summary : Javascript runtime
[root@dlp ~]#
node -v v12.10.0 # Node.js 10 が [e]nabled 状態になる [root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:13:34 ago on Mon 04 Nov 2019 01:41:00 PM JST. Fedora Modular 31 - x86_64 Name Stream Profiles Summary nodejs 10 [e] development, default [d] [i], minimal Javascript runtime nodejs 11 development, default, minimal Javascript runtime nodejs 12 development, default [d], minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled[root@dlp ~]# dnf module provides nodejs Last metadata expiration check: 0:13:55 ago on Mon 04 Nov 2019 01:41:00 PM JST. nodejs-1:10.16.3-1.module_f31+5955+08aea14a.x86_64 Module : nodejs:10:3120190816104510:f636be4b:x86_64 Profiles : development default minimal Repo : fedora-modular Summary : Javascript runtime[root@dlp ~]# node -v v10.16.3 |
Sponsored Link |
|