初期設定 : モジュラーリポジトリを利用する2020/10/28 |
モジュラーリポジトリを利用する場合の基本操作です。
|
|
[1] | 利用可能なモジュールのリストを表示します。 |
[root@dlp ~]# dnf module list Fedora Modular 33 - x86_64 Name Stream Profiles Summary ant 1.10 default Java build tool [d] avocado latest default Framework with tools and libraries for Automated Testing [d], minimal avocado-vt latest common Avocado Virt Test Plugin cobbler 3 default Versatile Linux deployment server cri-o nightly default Kubernetes Container Runtime Interface for OCI-based containers cri-o 1.14 default Kubernetes Container Runtime Interface for OCI-based containers ..... ..... tomcat master default Apache Servlet/JSP Engine, RI for Servlet 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 Fedora Modular 33 - 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 nodejs 14 default, development, minimal Javascript runtime Fedora Modular 33 - x86_64 - Updates 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 nodejs 14 default, development, minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled # Node.js 12 をインストール [root@dlp ~]# dnf module install nodejs:12 Dependencies resolved. ================================================================================================ Package Arch Version Repository Size ================================================================================================ Installing group/module packages: nodejs x86_64 1:12.18.4-1.module_f33+10186+5d5ca84d fedora-modular 96 k npm x86_64 1:6.14.6-1.12.18.4.1.module_f33+10186+5d5ca84d fedora-modular 3.4 M Installing dependencies: libuv x86_64 1:1.39.0-1.module_f33+10186+5d5ca84d fedora-modular 151 k nodejs-libs x86_64 1:12.18.4-1.module_f33+10186+5d5ca84d fedora-modular 12 M Installing weak dependencies: nodejs-docs noarch 1:12.18.4-1.module_f33+10186+5d5ca84d fedora-modular 2.9 M nodejs-full-i18n x86_64 1:12.18.4-1.module_f33+10186+5d5ca84d fedora-modular 7.8 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 Fedora Modular 33 - 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 nodejs 14 default, development, minimal Javascript runtime Fedora Modular 33 - x86_64 - Updates 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 nodejs 14 default, development, minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@dlp ~]#
node -v v12.18.4 # Node.js 14 を有効にしてインストール [root@dlp ~]# dnf module enable nodejs:14 [root@dlp ~]# dnf module install nodejs:14/default
# Node.js 14 が [e]nabled 状態になる [root@dlp ~]# dnf module list nodejs Fedora Modular 33 - 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 nodejs 14 [e] default [i], development, minimal Javascript runtime Fedora Modular 33 - x86_64 - Updates 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 nodejs 14 [e] default [i], development, minimal Javascript runtime Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled[root@dlp ~]# node -v v14.13.0 |
Sponsored Link |
|