


先日、Red Hat® Enterprise Linux® 8にphp 7.3をインストールしましたが、今回はnginx 1.16をインストールしてみました。
環境
・Red Hat Enterprise Linux release 8.2 (Ootpa)
・Kernel 4.18.0-193.14.3.el8_2.x86_64
・Red Hat Developer Subscription
- AppStream moduleの確認
- nginx 1.16のインストール
- php 7.3のアンインストール
- nginx module reset
- nginx 1.16のインストール
- php 7.3のインストール
そのままだとnginx 1.14.1のインストールになります。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
[root@rhel8 ~]# dnf info nginx Updating Subscription Management repositories. Available Packages Name : nginx Epoch : 1 Version : 1.14.1 Release : 9.module+el8.0.0+4108+af250afe Architecture : x86_64 Size : 570 k Source : nginx-1.14.1-9.module+el8.0.0+4108+af250afe.src.rpm Repository : rhel-8-for-x86_64-appstream-rpms Summary : A high performance web server and reverse proxy server URL : http://nginx.org/ License : BSD Description : Nginx is a web server and a reverse proxy server for HTTP, SMTP, : POP3 and IMAP protocols, with a strong focus on high concurrency, : performance and low memory usage. [root@rhel8 ~]# dnf module list nginx Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Name Stream Profiles Summary nginx 1.14 [d][e] common [d] nginx webserver nginx 1.16 common [d] nginx webserver Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
1 2 3 4 5 6 |
[root@rhel8 ~]# dnf module install nginx:1.16 Updating Subscription Management repositories. Dependencies resolved. The operation would result in switching of module 'nginx' stream '1.14' to stream '1.16' Error: It is not possible to switch enabled streams of a module. It is recommended to remove all installed content from the module, and reset the module using 'dnf module reset <module_name>' command. After you reset the module, you can install the other stream. |
あれ? エラーになりました。何故?
nginxをインストールした覚えは無いのに…
1 2 3 4 |
[root@rhel8 ~]# nginx -v -bash: nginx: command not found [root@rhel8 ~]# rpm -qa | grep nginx nginx-filesystem-1.14.1-9.module+el8.0.0+4108+af250afe.noarch |
確認したら先日、php 7.3をインストールした時に依存関係でnginx-filesystemも一緒にインストールされていました。
だから1.14が[d][e]になってたのか。
1 2 3 4 5 6 7 8 |
[root@rhel8 ~]# dnf module list nginx Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Name Stream Profiles Summary nginx 1.14 [d][e] common [d] nginx webserver nginx 1.16 common [d] nginx webserver Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
エラーメッセージからremoveしてmoduleをresetと書いてあるので、その通りにしてみます。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
[root@rhel8 ~]# dnf module remove php:7.3 Updating Subscription Management repositories. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Removing: php-cli x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 @rhel-8-for-x86_64-appstream-rpms 11 M php-common x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 @rhel-8-for-x86_64-appstream-rpms 6.5 M php-fpm x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 @rhel-8-for-x86_64-appstream-rpms 5.6 M php-json x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 @rhel-8-for-x86_64-appstream-rpms 53 k php-mbstring x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 @rhel-8-for-x86_64-appstream-rpms 1.9 M php-xml x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 @rhel-8-for-x86_64-appstream-rpms 557 k Removing unused dependencies: httpd-filesystem noarch 2.4.37-21.module+el8.2.0+5008+cca404a3 @rhel-8-for-x86_64-appstream-rpms 400 nginx-filesystem noarch 1:1.14.1-9.module+el8.0.0+4108+af250afe @rhel-8-for-x86_64-appstream-rpms 0 Disabling module profiles: php/common Transaction Summary ================================================================================ Remove 8 Packages Freed space: 25 M Is this ok [y/N]: y Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 1/1 Running scriptlet: php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 1/8 Erasing : php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 1/8 Running scriptlet: php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 1/8 Erasing : php-xml-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 2/8 Erasing : php-mbstring-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x8 3/8 Erasing : php-json-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 4/8 Erasing : php-cli-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 5/8 Erasing : httpd-filesystem-2.4.37-21.module+el8.2.0+5008+cca40 6/8 Running scriptlet: httpd-filesystem-2.4.37-21.module+el8.2.0+5008+cca40 6/8 Erasing : nginx-filesystem-1:1.14.1-9.module+el8.0.0+4108+af25 7/8 Running scriptlet: nginx-filesystem-1:1.14.1-9.module+el8.0.0+4108+af25 7/8 Erasing : php-common-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_ 8/8 Running scriptlet: php-common-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_ 8/8 Verifying : httpd-filesystem-2.4.37-21.module+el8.2.0+5008+cca40 1/8 Verifying : nginx-filesystem-1:1.14.1-9.module+el8.0.0+4108+af25 2/8 Verifying : php-cli-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 3/8 Verifying : php-common-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_ 4/8 Verifying : php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 5/8 Verifying : php-json-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 6/8 Verifying : php-mbstring-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x8 7/8 Verifying : php-xml-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 8/8 Installed products updated. Removed: httpd-filesystem-2.4.37-21.module+el8.2.0+5008+cca404a3.noarch nginx-filesystem-1:1.14.1-9.module+el8.0.0+4108+af250afe.noarch php-cli-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-common-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-json-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-mbstring-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-xml-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 Complete! |
1 2 3 4 5 6 7 8 |
[root@rhel8 ~]# dnf module list php Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Name Stream Profiles Summary php 7.2 [d] common [d], devel, minimal PHP scripting language php 7.3 [e] common [d], devel, minimal PHP scripting language Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
[root@rhel8 ~]# dnf module list nginx Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Name Stream Profiles Summary nginx 1.14 [d][e] common [d] nginx webserver nginx 1.16 common [d] nginx webserver Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled [root@rhel8 ~]# dnf module reset nginx Updating Subscription Management repositories. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Resetting modules: nginx Transaction Summary ================================================================================ Is this ok [y/N]: y Complete! |
nginx 1.14の[e]が消えました。
1 2 3 4 5 6 7 8 |
[root@rhel8 ~]# dnf module list nginx Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Name Stream Profiles Summary nginx 1.14 [d] common [d] nginx webserver nginx 1.16 common [d] nginx webserver Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
[root@rhel8 ~]# dnf module install nginx:1.16 Updating Subscription Management repositories. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing group/module packages: nginx x86_64 1:1.16.1-1.module+el8.1.0+4097+739b0d87 rhel-8-for-x86_64-appstream-rpms 582 k nginx-all-modules noarch 1:1.16.1-1.module+el8.1.0+4097+739b0d87 rhel-8-for-x86_64-appstream-rpms 24 k nginx-filesystem noarch 1:1.16.1-1.module+el8.1.0+4097+739b0d87 rhel-8-for-x86_64-appstream-rpms 25 k nginx-mod-http-image-filter x86_64 1:1.16.1-1.module+el8.1.0+4097+739b0d87 rhel-8-for-x86_64-appstream-rpms 35 k nginx-mod-http-perl x86_64 1:1.16.1-1.module+el8.1.0+4097+739b0d87 rhel-8-for-x86_64-appstream-rpms 46 k nginx-mod-http-xslt-filter x86_64 1:1.16.1-1.module+el8.1.0+4097+739b0d87 rhel-8-for-x86_64-appstream-rpms 34 k nginx-mod-mail x86_64 1:1.16.1-1.module+el8.1.0+4097+739b0d87 rhel-8-for-x86_64-appstream-rpms 64 k nginx-mod-stream x86_64 1:1.16.1-1.module+el8.1.0+4097+739b0d87 rhel-8-for-x86_64-appstream-rpms 91 k Installing dependencies: gd x86_64 2.2.5-6.el8 rhel-8-for-x86_64-appstream-rpms 144 k jbigkit-libs x86_64 2.1-14.el8 rhel-8-for-x86_64-appstream-rpms 55 k libXpm x86_64 3.5.12-8.el8 rhel-8-for-x86_64-appstream-rpms 58 k libjpeg-turbo x86_64 1.5.3-10.el8 rhel-8-for-x86_64-appstream-rpms 156 k libtiff x86_64 4.0.9-17.el8 rhel-8-for-x86_64-appstream-rpms 188 k libwebp x86_64 1.0.0-1.el8 rhel-8-for-x86_64-appstream-rpms 273 k perl-Carp noarch 1.42-396.el8 rhel-8-for-x86_64-baseos-rpms 30 k perl-Errno x86_64 1.28-416.el8 rhel-8-for-x86_64-baseos-rpms 76 k perl-Exporter noarch 5.72-396.el8 rhel-8-for-x86_64-baseos-rpms 34 k perl-File-Path noarch 2.15-2.el8 rhel-8-for-x86_64-baseos-rpms 38 k perl-IO x86_64 1.38-416.el8 rhel-8-for-x86_64-baseos-rpms 141 k perl-PathTools x86_64 3.74-1.el8 rhel-8-for-x86_64-baseos-rpms 90 k perl-Scalar-List-Utils x86_64 3:1.49-2.el8 rhel-8-for-x86_64-baseos-rpms 68 k perl-Socket x86_64 4:2.027-3.el8 rhel-8-for-x86_64-baseos-rpms 59 k perl-Text-Tabs+Wrap noarch 2013.0523-395.el8 rhel-8-for-x86_64-baseos-rpms 24 k perl-Unicode-Normalize x86_64 1.25-396.el8 rhel-8-for-x86_64-baseos-rpms 82 k perl-constant noarch 1.33-396.el8 rhel-8-for-x86_64-baseos-rpms 25 k perl-interpreter x86_64 4:5.26.3-416.el8 rhel-8-for-x86_64-baseos-rpms 6.3 M perl-libs x86_64 4:5.26.3-416.el8 rhel-8-for-x86_64-baseos-rpms 1.6 M perl-macros x86_64 4:5.26.3-416.el8 rhel-8-for-x86_64-baseos-rpms 72 k perl-parent noarch 1:0.237-1.el8 rhel-8-for-x86_64-baseos-rpms 20 k perl-threads x86_64 1:2.21-2.el8 rhel-8-for-x86_64-baseos-rpms 61 k perl-threads-shared x86_64 1.58-2.el8 rhel-8-for-x86_64-baseos-rpms 48 k Installing module profiles: nginx/common Enabling module streams: nginx 1.16 Transaction Summary ================================================================================ Install 31 Packages Total download size: 10 M Installed size: 26 M Is this ok [y/N]: y Downloading Packages: (1/31): jbigkit-libs-2.1-14.el8.x86_64.rpm 70 kB/s | 55 kB 00:00 (2/31): gd-2.2.5-6.el8.x86_64.rpm 174 kB/s | 144 kB 00:00 (3/31): libwebp-1.0.0-1.el8.x86_64.rpm 326 kB/s | 273 kB 00:00 (4/31): nginx-mod-mail-1.16.1-1.module+el8.1.0+ 318 kB/s | 64 kB 00:00 (5/31): libjpeg-turbo-1.5.3-10.el8.x86_64.rpm 710 kB/s | 156 kB 00:00 (6/31): nginx-mod-stream-1.16.1-1.module+el8.1. 400 kB/s | 91 kB 00:00 (7/31): nginx-mod-http-perl-1.16.1-1.module+el8 243 kB/s | 46 kB 00:00 (8/31): nginx-mod-http-image-filter-1.16.1-1.mo 178 kB/s | 35 kB 00:00 (9/31): nginx-1.16.1-1.module+el8.1.0+4097+739b 2.1 MB/s | 582 kB 00:00 (10/31): nginx-mod-http-xslt-filter-1.16.1-1.mo 125 kB/s | 34 kB 00:00 (11/31): nginx-filesystem-1.16.1-1.module+el8.1 118 kB/s | 25 kB 00:00 (12/31): nginx-all-modules-1.16.1-1.module+el8. 126 kB/s | 24 kB 00:00 (13/31): libXpm-3.5.12-8.el8.x86_64.rpm 227 kB/s | 58 kB 00:00 (14/31): libtiff-4.0.9-17.el8.x86_64.rpm 800 kB/s | 188 kB 00:00 (15/31): perl-Scalar-List-Utils-1.49-2.el8.x86_ 327 kB/s | 68 kB 00:00 (16/31): perl-Errno-1.28-416.el8.x86_64.rpm 376 kB/s | 76 kB 00:00 (17/31): perl-PathTools-3.74-1.el8.x86_64.rpm 373 kB/s | 90 kB 00:00 (18/31): perl-libs-5.26.3-416.el8.x86_64.rpm 4.0 MB/s | 1.6 MB 00:00 (19/31): perl-threads-shared-1.58-2.el8.x86_64. 246 kB/s | 48 kB 00:00 (20/31): perl-macros-5.26.3-416.el8.x86_64.rpm 342 kB/s | 72 kB 00:00 (21/31): perl-Unicode-Normalize-1.25-396.el8.x8 315 kB/s | 82 kB 00:00 (22/31): perl-interpreter-5.26.3-416.el8.x86_64 12 MB/s | 6.3 MB 00:00 (23/31): perl-threads-2.21-2.el8.x86_64.rpm 367 kB/s | 61 kB 00:00 (24/31): perl-File-Path-2.15-2.el8.noarch.rpm 209 kB/s | 38 kB 00:00 (25/31): perl-parent-0.237-1.el8.noarch.rpm 109 kB/s | 20 kB 00:00 (26/31): perl-IO-1.38-416.el8.x86_64.rpm 670 kB/s | 141 kB 00:00 (27/31): perl-Text-Tabs+Wrap-2013.0523-395.el8. 131 kB/s | 24 kB 00:00 (28/31): perl-Carp-1.42-396.el8.noarch.rpm 178 kB/s | 30 kB 00:00 (29/31): perl-Exporter-5.72-396.el8.noarch.rpm 180 kB/s | 34 kB 00:00 (30/31): perl-constant-1.33-396.el8.noarch.rpm 122 kB/s | 25 kB 00:00 (31/31): perl-Socket-2.027-3.el8.x86_64.rpm 315 kB/s | 59 kB 00:00 -------------------------------------------------------------------------------- Total 3.5 MB/s | 10 MB 00:02 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : perl-Carp-1.42-396.el8.noarch 1/31 Installing : perl-Exporter-5.72-396.el8.noarch 2/31 Installing : perl-libs-4:5.26.3-416.el8.x86_64 3/31 Installing : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 4/31 Installing : libjpeg-turbo-1.5.3-10.el8.x86_64 5/31 Installing : perl-macros-4:5.26.3-416.el8.x86_64 6/31 Installing : perl-parent-1:0.237-1.el8.noarch 7/31 Installing : perl-Errno-1.28-416.el8.x86_64 8/31 Installing : perl-Unicode-Normalize-1.25-396.el8.x86_64 9/31 Installing : perl-threads-1:2.21-2.el8.x86_64 10/31 Installing : perl-threads-shared-1.58-2.el8.x86_64 11/31 Installing : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 12/31 Installing : perl-File-Path-2.15-2.el8.noarch 13/31 Installing : perl-PathTools-3.74-1.el8.x86_64 14/31 Installing : perl-constant-1.33-396.el8.noarch 15/31 Installing : perl-IO-1.38-416.el8.x86_64 16/31 Installing : perl-interpreter-4:5.26.3-416.el8.x86_64 17/31 Installing : perl-Socket-4:2.027-3.el8.x86_64 18/31 Installing : libXpm-3.5.12-8.el8.x86_64 19/31 Running scriptlet: nginx-filesystem-1:1.16.1-1.module+el8.1.0+4097+73 20/31 Installing : nginx-filesystem-1:1.16.1-1.module+el8.1.0+4097+73 20/31 Installing : nginx-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_ 21/31 Running scriptlet: nginx-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_ 21/31 Installing : nginx-mod-mail-1:1.16.1-1.module+el8.1.0+4097+739b 22/31 Running scriptlet: nginx-mod-mail-1:1.16.1-1.module+el8.1.0+4097+739b 22/31 Installing : nginx-mod-stream-1:1.16.1-1.module+el8.1.0+4097+73 23/31 Running scriptlet: nginx-mod-stream-1:1.16.1-1.module+el8.1.0+4097+73 23/31 Installing : nginx-mod-http-perl-1:1.16.1-1.module+el8.1.0+4097 24/31 Running scriptlet: nginx-mod-http-perl-1:1.16.1-1.module+el8.1.0+4097 24/31 Installing : nginx-mod-http-xslt-filter-1:1.16.1-1.module+el8.1 25/31 Running scriptlet: nginx-mod-http-xslt-filter-1:1.16.1-1.module+el8.1 25/31 Installing : libwebp-1.0.0-1.el8.x86_64 26/31 Installing : jbigkit-libs-2.1-14.el8.x86_64 27/31 Running scriptlet: jbigkit-libs-2.1-14.el8.x86_64 27/31 Installing : libtiff-4.0.9-17.el8.x86_64 28/31 Installing : gd-2.2.5-6.el8.x86_64 29/31 Running scriptlet: gd-2.2.5-6.el8.x86_64 29/31 Installing : nginx-mod-http-image-filter-1:1.16.1-1.module+el8. 30/31 Running scriptlet: nginx-mod-http-image-filter-1:1.16.1-1.module+el8. 30/31 Installing : nginx-all-modules-1:1.16.1-1.module+el8.1.0+4097+7 31/31 Running scriptlet: nginx-all-modules-1:1.16.1-1.module+el8.1.0+4097+7 31/31 Verifying : jbigkit-libs-2.1-14.el8.x86_64 1/31 Verifying : libwebp-1.0.0-1.el8.x86_64 2/31 Verifying : gd-2.2.5-6.el8.x86_64 3/31 Verifying : nginx-mod-mail-1:1.16.1-1.module+el8.1.0+4097+739b 4/31 Verifying : libjpeg-turbo-1.5.3-10.el8.x86_64 5/31 Verifying : nginx-mod-stream-1:1.16.1-1.module+el8.1.0+4097+73 6/31 Verifying : nginx-mod-http-perl-1:1.16.1-1.module+el8.1.0+4097 7/31 Verifying : nginx-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_ 8/31 Verifying : nginx-mod-http-image-filter-1:1.16.1-1.module+el8. 9/31 Verifying : nginx-mod-http-xslt-filter-1:1.16.1-1.module+el8.1 10/31 Verifying : nginx-filesystem-1:1.16.1-1.module+el8.1.0+4097+73 11/31 Verifying : nginx-all-modules-1:1.16.1-1.module+el8.1.0+4097+7 12/31 Verifying : libXpm-3.5.12-8.el8.x86_64 13/31 Verifying : libtiff-4.0.9-17.el8.x86_64 14/31 Verifying : perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 15/31 Verifying : perl-PathTools-3.74-1.el8.x86_64 16/31 Verifying : perl-libs-4:5.26.3-416.el8.x86_64 17/31 Verifying : perl-Errno-1.28-416.el8.x86_64 18/31 Verifying : perl-interpreter-4:5.26.3-416.el8.x86_64 19/31 Verifying : perl-threads-shared-1.58-2.el8.x86_64 20/31 Verifying : perl-Unicode-Normalize-1.25-396.el8.x86_64 21/31 Verifying : perl-macros-4:5.26.3-416.el8.x86_64 22/31 Verifying : perl-threads-1:2.21-2.el8.x86_64 23/31 Verifying : perl-File-Path-2.15-2.el8.noarch 24/31 Verifying : perl-parent-1:0.237-1.el8.noarch 25/31 Verifying : perl-IO-1.38-416.el8.x86_64 26/31 Verifying : perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch 27/31 Verifying : perl-Carp-1.42-396.el8.noarch 28/31 Verifying : perl-Exporter-5.72-396.el8.noarch 29/31 Verifying : perl-constant-1.33-396.el8.noarch 30/31 Verifying : perl-Socket-4:2.027-3.el8.x86_64 31/31 Installed products updated. Installed: gd-2.2.5-6.el8.x86_64 jbigkit-libs-2.1-14.el8.x86_64 libXpm-3.5.12-8.el8.x86_64 libjpeg-turbo-1.5.3-10.el8.x86_64 libtiff-4.0.9-17.el8.x86_64 libwebp-1.0.0-1.el8.x86_64 nginx-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_64 nginx-all-modules-1:1.16.1-1.module+el8.1.0+4097+739b0d87.noarch nginx-filesystem-1:1.16.1-1.module+el8.1.0+4097+739b0d87.noarch nginx-mod-http-image-filter-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_64 nginx-mod-http-perl-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_64 nginx-mod-http-xslt-filter-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_64 nginx-mod-mail-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_64 nginx-mod-stream-1:1.16.1-1.module+el8.1.0+4097+739b0d87.x86_64 perl-Carp-1.42-396.el8.noarch perl-Errno-1.28-416.el8.x86_64 perl-Exporter-5.72-396.el8.noarch perl-File-Path-2.15-2.el8.noarch perl-IO-1.38-416.el8.x86_64 perl-PathTools-3.74-1.el8.x86_64 perl-Scalar-List-Utils-3:1.49-2.el8.x86_64 perl-Socket-4:2.027-3.el8.x86_64 perl-Text-Tabs+Wrap-2013.0523-395.el8.noarch perl-Unicode-Normalize-1.25-396.el8.x86_64 perl-constant-1.33-396.el8.noarch perl-interpreter-4:5.26.3-416.el8.x86_64 perl-libs-4:5.26.3-416.el8.x86_64 perl-macros-4:5.26.3-416.el8.x86_64 perl-parent-1:0.237-1.el8.noarch perl-threads-1:2.21-2.el8.x86_64 perl-threads-shared-1.58-2.el8.x86_64 Complete! |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
[root@rhel8 ~]# repoquery --list nginx Updating Subscription Management repositories. /etc/logrotate.d/nginx /etc/nginx/fastcgi.conf /etc/nginx/fastcgi.conf.default /etc/nginx/fastcgi_params /etc/nginx/fastcgi_params.default /etc/nginx/koi-utf /etc/nginx/koi-win /etc/nginx/mime.types /etc/nginx/mime.types.default /etc/nginx/nginx.conf /etc/nginx/nginx.conf.default /etc/nginx/scgi_params /etc/nginx/scgi_params.default /etc/nginx/uwsgi_params /etc/nginx/uwsgi_params.default /etc/nginx/win-utf /usr/bin/nginx-upgrade /usr/lib/.build-id /usr/lib/.build-id/47 /usr/lib/.build-id/47/a0f0195e988126fe595ab4c64bf5f963f4462c /usr/lib/systemd/system/nginx.service /usr/lib64/nginx/modules /usr/sbin/nginx /usr/share/doc/nginx /usr/share/doc/nginx/CHANGES /usr/share/doc/nginx/README /usr/share/doc/nginx/README.dynamic /usr/share/licenses/nginx /usr/share/licenses/nginx/LICENSE /usr/share/man/man3/nginx.3pm.gz /usr/share/man/man8/nginx-upgrade.8.gz /usr/share/man/man8/nginx.8.gz /usr/share/nginx/html/404.html /usr/share/nginx/html/50x.html /usr/share/nginx/html/index.html /usr/share/nginx/html/nginx-logo.png /usr/share/nginx/html/poweredby.png /usr/share/vim/vimfiles/ftdetect/nginx.vim /usr/share/vim/vimfiles/indent/nginx.vim /usr/share/vim/vimfiles/syntax/nginx.vim /var/lib/nginx /var/lib/nginx/tmp /var/log/nginx |
1 2 3 4 5 6 |
[root@rhel8 ~]# nginx -V nginx version: nginx/1.16.1 built by gcc 8.3.1 20190507 (Red Hat 8.3.1-4) (GCC) built with OpenSSL 1.1.1c FIPS 28 May 2019 TLS SNI support enabled configure arguments: --prefix=/usr/share/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib64/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/tmp/client_body --http-proxy-temp-path=/var/lib/nginx/tmp/proxy --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi --http-scgi-temp-path=/var/lib/nginx/tmp/scgi --pid-path=/run/nginx.pid --lock-path=/run/lock/subsys/nginx --user=nginx --group=nginx --with-file-aio --with-ipv6 --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-stream_ssl_preread_module --with-http_addition_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module=dynamic --with-http_auth_request_module --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-debug --with-cc-opt='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-E' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
[root@rhel8 ~]# dnf module list php Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) Name Stream Profiles Summary php 7.2 [d] common [d], devel, minimal PHP scripting language php 7.3 [e] common [d], devel, minimal PHP scripting language Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled [root@rhel8 ~]# dnf module install php:7.3 Updating Subscription Management repositories. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing group/module packages: php-cli x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 3.0 M php-common x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 663 k php-fpm x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 1.6 M php-json x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 73 k php-mbstring x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 610 k php-xml x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 188 k Installing dependencies: httpd-filesystem noarch 2.4.37-21.module+el8.2.0+5008+cca404a3 rhel-8-for-x86_64-appstream-rpms 36 k Installing module profiles: php/common Transaction Summary ================================================================================ Install 7 Packages Total download size: 6.2 M Installed size: 25 M Is this ok [y/N]: y Downloading Packages: (1/7): php-json-7.3.5-5.module+el8.1.0+4560+e0e 188 kB/s | 73 kB 00:00 (2/7): php-common-7.3.5-5.module+el8.1.0+4560+e 1.5 MB/s | 663 kB 00:00 (3/7): php-cli-7.3.5-5.module+el8.1.0+4560+e0ee 6.3 MB/s | 3.0 MB 00:00 (4/7): php-xml-7.3.5-5.module+el8.1.0+4560+e0ee 906 kB/s | 188 kB 00:00 (5/7): php-mbstring-7.3.5-5.module+el8.1.0+4560 2.4 MB/s | 610 kB 00:00 (6/7): httpd-filesystem-2.4.37-21.module+el8.2. 164 kB/s | 36 kB 00:00 (7/7): php-fpm-7.3.5-5.module+el8.1.0+4560+e0ee 3.1 MB/s | 1.6 MB 00:00 -------------------------------------------------------------------------------- Total 6.8 MB/s | 6.2 MB 00:00 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : php-common-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_ 1/7 Running scriptlet: httpd-filesystem-2.4.37-21.module+el8.2.0+5008+cca40 2/7 Installing : httpd-filesystem-2.4.37-21.module+el8.2.0+5008+cca40 2/7 Installing : php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 3/7 Running scriptlet: php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 3/7 Installing : php-json-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 4/7 Installing : php-cli-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 5/7 Installing : php-xml-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 6/7 Installing : php-mbstring-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x8 7/7 Running scriptlet: php-mbstring-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x8 7/7 Running scriptlet: php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 7/7 Verifying : php-json-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 1/7 Verifying : php-common-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_ 2/7 Verifying : php-cli-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 3/7 Verifying : php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 4/7 Verifying : php-xml-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 5/7 Verifying : php-mbstring-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x8 6/7 Verifying : httpd-filesystem-2.4.37-21.module+el8.2.0+5008+cca40 7/7 Installed products updated. Installed: httpd-filesystem-2.4.37-21.module+el8.2.0+5008+cca404a3.noarch php-cli-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-common-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-fpm-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-json-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-mbstring-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 php-xml-7.3.5-5.module+el8.1.0+4560+e0eee7d6.x86_64 Complete! [root@rhel8 ~]# php -v PHP 7.3.5 (cli) (built: Apr 30 2019 08:37:17) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies |
ちなみにdnf install phpだと依存関係でインストールされるプログラムが異なりました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
[root@rhel8 ~]# dnf install php Updating Subscription Management repositories. Dependencies resolved. ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: php x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 1.5 M Installing dependencies: apr x86_64 1.6.3-9.el8 rhel-8-for-x86_64-appstream-rpms 125 k apr-util x86_64 1.6.1-6.el8 rhel-8-for-x86_64-appstream-rpms 105 k httpd x86_64 2.4.37-21.module+el8.2.0+5008+cca404a3 rhel-8-for-x86_64-appstream-rpms 1.4 M httpd-filesystem noarch 2.4.37-21.module+el8.2.0+5008+cca404a3 rhel-8-for-x86_64-appstream-rpms 36 k httpd-tools x86_64 2.4.37-21.module+el8.2.0+5008+cca404a3 rhel-8-for-x86_64-appstream-rpms 103 k mod_http2 x86_64 1.11.3-3.module+el8.2.0+4377+dc421495 rhel-8-for-x86_64-appstream-rpms 158 k php-cli x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 3.0 M php-common x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 663 k redhat-logos-httpd noarch 81.1-1.el8 rhel-8-for-x86_64-baseos-rpms 26 k Installing weak dependencies: apr-util-bdb x86_64 1.6.1-6.el8 rhel-8-for-x86_64-appstream-rpms 25 k apr-util-openssl x86_64 1.6.1-6.el8 rhel-8-for-x86_64-appstream-rpms 27 k php-fpm x86_64 7.3.5-5.module+el8.1.0+4560+e0eee7d6 rhel-8-for-x86_64-appstream-rpms 1.6 M Transaction Summary ================================================================================ Install 13 Packages Total download size: 8.8 M Installed size: 34 M Is this ok [y/N]: N Operation aborted. |
デフォルトでインストールするには、このようなトラブルは無いと思いますが注意が必要ですね。まあ、Webサーバを導入しないで先にphpをインストールするってことも無いと思いますが、勉強になりました。