初期設定 : モジュラーリポジトリを利用する2022/11/16 |
モジュラーリポジトリを利用する場合の基本操作です。
|
|
[1] | 利用可能なモジュールのリストを表示します。 |
[root@dlp ~]# dnf module list Fedora Modular 37 - x86_64 Name Stream Profiles Summary avocado latest default[d],minimal Framework with tools and libraries for Automated Testing avocado 82lts default,minimal Framework with tools and libraries for Automated Testing avocado-vt latest default Avocado Virt Test Plugin avocado-vt 82lts default Avocado Virt Test Plugin cri-o 1.20 default[d] Kubernetes Container Runtime Interface for OCI-based containers ..... ..... 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 Fedora Modular 37 - x86_64 Name Stream Profiles Summary nodejs 14 common [d], development, minimal Javascript runtime nodejs 16 common [d], development, minimal Javascript runtime nodejs 18 common, development, minimal Javascript runtime Fedora Modular 37 - x86_64 - Updates Name Stream Profiles Summary nodejs 14 common [d], development, minimal Javascript runtime nodejs 16 common [d], development, minimal Javascript runtime nodejs 18 common, development, minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled # Node.js 14 をインストール [root@dlp ~]# dnf module -y install nodejs:14 Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing group/module packages: nodejs x86_64 1:14.19.3-1.module_f37+14476+e95ad973 fedora-modular 200 k npm x86_64 1:6.14.17-1.14.19.3.1.module_f37+14476+e95ad973 fedora-modular 3.3 M Installing dependencies: nodejs-libs x86_64 1:14.19.3-1.module_f37+14476+e95ad973 fedora-modular 13 M openssl1.1 x86_64 1:1.1.1q-2.fc37 fedora 1.5 M Installing weak dependencies: nodejs-docs noarch 1:14.19.3-1.module_f37+14476+e95ad973 fedora-modular 6.2 M nodejs-full-i18n x86_64 1:14.19.3-1.module_f37+14476+e95ad973 fedora-modular 8.1 M Installing module profiles: nodejs/common Enabling module streams: nodejs 14 Transaction Summary ================================================================================ Install 6 Packages ..... ..... # Node.js 14 が [e]nabled, [i]nstalled 状態となる [root@dlp ~]# dnf module list nodejs Fedora Modular 37 - x86_64 Name Stream Profiles Summary nodejs 14 [e] common [d] [i], development, minimal Javascript runtime nodejs 16 common [d], development, minimal Javascript runtime nodejs 18 common, development, minimal Javascript runtime Fedora Modular 37 - x86_64 - Updates Name Stream Profiles Summary nodejs 14 [e] common [d] [i], development, minimal Javascript runtime nodejs 16 common [d], development, minimal Javascript runtime nodejs 18 common, development, minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@dlp ~]#
node -v v14.19.3 # Node.js 18 を有効にしてインストール [root@dlp ~]# dnf module -y enable nodejs:18 [root@dlp ~]# dnf module -y install nodejs:18/common
# Node.js 18 が [e]nabled 状態になる [root@dlp ~]# dnf module list nodejs Fedora Modular 37 - x86_64 Name Stream Profiles Summary nodejs 14 common [d], development, minimal Javascript runtime nodejs 16 common [d], development, minimal Javascript runtime nodejs 18 [e] common [i], development, minimal Javascript runtime Fedora Modular 37 - x86_64 - Updates Name Stream Profiles Summary nodejs 14 common [d], development, minimal Javascript runtime nodejs 16 common [d], development, minimal Javascript runtime nodejs 18 [e] common [i], development, minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled[root@dlp ~]# node -v v18.7.0 |
Sponsored Link |