初期設定 : モジュラーリポジトリ使用する2019/05/06 |
モジュラーリポジトリ使用する場合の使用方法です。
|
|
[1] | 利用可能なモジュールのリストを表示します。 |
[root@dlp ~]# dnf module list Last metadata expiration check: 0:39:30 ago on Sun 05 May 2019 02:25:26 AM JST. Fedora Modular 30 - x86_64 Name Stream Profiles Summary ant 1.10 [d] default [d] Java build tool avocado latest default [d], minimal Framework with tools and libraries for Automated Testing avocado stable [d] default [d], minimal Framework with tools and libraries for Automated Testing avocado 52lts default, minimal Framework with tools and libraries for Automated Testing avocado 69lts default, minimal Framework with tools and libraries for Automated Testing bat latest [d] default [d] cat(1) clone with wings 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.13 default Kubernetes Container Runtime Interface for OCI-based containers django 1.6 default [d], python2_development A high-level Python Web framework dwm latest user, default [d] Dynamic window manager for X dwm 6.0 user, default [d] Dynamic window manager for X dwm 6.1 [d] user, default [d] Dynamic window manager for X dwm 6.2 user, default Dynamic window manager for X exa latest [d] default [d] Modern replacement for ls ffsend latest [d] default [d] Easily and securely share files from the command line fish master default Friendly interactive shell ..... ..... Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
[2] | 利用可能なモジュールをインストールするには以下のように設定します。 |
# 例として Node.js のモジュールリストを表示 [root@dlp ~]# dnf module list nodejs Fedora Modular 30 - x86_64 Name Stream Profiles Summary nodejs 8 development, default [d], minimal Javascript runtime nodejs 10 development, default [d], minimal Javascript runtime nodejs 11 development, default [d], minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled # Node.js 10 をインストール [root@dlp ~]# dnf module install nodejs:10/default Last metadata expiration check: 0:41:25 ago on Sun 05 May 2019 02:25:26 AM JST. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing group/module packages: nodejs x86_64 1:10.15.3-1.module_f30+3886+b87f20f4 updates-modular 102 k npm x86_64 1:6.4.1-1.10.15.3.1.module_f30+3886+b87f20f4 updates-modular 3.6 M Installing dependencies: http-parser x86_64 2.9.0-2.module_f30+2981+f33cac8c fedora-modular 36 k libuv x86_64 1:1.27.0-1.module_f30+3886+b87f20f4 updates-modular 127 k nodejs-libs x86_64 1:10.15.3-1.module_f30+3886+b87f20f4 updates-modular 6.3 M Installing module profiles: nodejs/default Enabling module streams: nodejs 10 Transaction Summary ================================================================================ Install 5 Packages ..... ..... # Node.js 10 が [e]nabled, [i]nstalled 状態となる [root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:42:09 ago on Sun 05 May 2019 02:25:26 AM JST. Fedora Modular 30 - x86_64 Name Stream Profiles Summary nodejs 8 development, default [d], minimal Javascript runtime nodejs 10 [e] development, default [d] [i], minimal Javascript runtime nodejs 11 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:42:37 ago on Sun 05 May 2019 02:25:26 AM JST. nodejs-1:10.15.2-1.module_f30+3181+3be24b3a.x86_64 Module : nodejs:10:3020190304180959:a5b0195c:x86_64 Profiles : development default minimal Repo : fedora-modular Summary : Javascript runtime
[root@dlp ~]#
node -v v10.15.3 # Node.js 11 が [e]nabled 状態になる [root@dlp ~]# dnf module list nodejs Last metadata expiration check: 0:03:12 ago on Sun 05 May 2019 08:20:34 PM JST. Fedora Modular 30 - x86_64 Name Stream Profiles Summary nodejs 8 development, default [d], minimal Javascript runtime nodejs 10 development, default [d], minimal Javascript runtime nodejs 11 [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:03:49 ago on Sun 05 May 2019 08:20:34 PM JST. nodejs-1:11.14.0-1.module_f30+3903+cd71f01a.x86_64 Module : nodejs:11:3020190412000456:a5b0195c:x86_64 Profiles : development default minimal Repo : updates-modular Summary : Javascript runtime[root@dlp ~]# node -v v11.14.0 |
Sponsored Link |