CentOS8から8.1にアップグレードして、モジュールも更新する

いつの間にかCentOS8.1がリリースされていたので、アップグレードします。

CentOSのアップグレードは非常に簡単で、次のコマンドで完了します。

dnf update -y

いつものアップデートで勝手にCentOS8.1になります。

アップデートしたので、モジュールリストを見てみます。

dnf module list

そうすると、次のように表示されました。

CentOS-8 - AppStream
 Name                                         Stream                               Profiles                                                         Summary
 389-ds                                       1.4                                                                                                   389 Directory Server (base)
 ant                                          1.10 [d]                             common [d]                                                       Java build tool
 container-tools                              rhel8 [d]                            common [d]                                                       Common tools and dependencies for container runtimes
 container-tools                              1.0                                  common [d]                                                       Common tools and dependencies for container runtimes
 freeradius                                   3.0 [d]                              server [d]                                                       High-performance and highly configurable free RADIUS server
 gimp                                         2.8 [d]                              common [d], devel                                                gimp module
 go-toolset                                   rhel8 [d]                            common [d]                                                       Go
 httpd                                        2.4 [d][e]                           common [d], devel, minimal                                       Apache HTTP Server
 idm                                          DL1                                  common [d], adtrust, client, dns, server                         The Red Hat Enterprise Linux Identity Management system module
 idm                                          client [d]                           common [d]                                                       RHEL IdM long term support client module
 inkscape                                     0.92.3 [d]                           common [d]                                                       Vector-based drawing program using SVG
 javapackages-runtime                         201801 [d]                           common [d]                                                       Basic runtime utilities to support Java applications
 libselinux-python                            2.8                                  common                                                           Python 2 bindings for libselinux
 llvm-toolset                                 rhel8 [d]                            common [d]                                                       LLVM
 mailman                                      2.1 [d]                              common [d]                                                       Electronic mail discussion and e-newsletter lists managing software
 mariadb                                      10.3 [d][e]                          client, server [d], galera                                       MariaDB Module
 maven                                        3.5 [d]                              common [d]                                                       Java project management and project comprehension tool
 mercurial                                    4.8 [d]                              common [d]                                                       Mercurial -- a distributed SCM
 mod_auth_openidc                             2.3                                                                                                   Apache module suporting OpenID Connect authentication
 mysql                                        8.0 [d]                              client, server [d]                                               MySQL Module
 nginx                                        1.14 [d]                             common [d]                                                       nginx webserver
 nginx                                        1.16 [e]                             common                                                           nginx webserver
 nodejs                                       10 [d]                               common [d], development, minimal, s2i                            Javascript runtime
 nodejs                                       12                                   common, development, minimal, s2i                                Javascript runtime
 parfait                                      0.5                                  common                                                           Parfait Module
 perl                                         5.24                                 common [d], minimal                                              Practical Extraction and Report Language
 perl                                         5.26 [d]                             common [d], minimal                                              Practical Extraction and Report Language
 perl-App-cpanminus                           1.7044 [d]                           common [d]                                                       Get, unpack, build and install CPAN modules
 perl-DBD-MySQL                               4.046 [d][e]                         common [d]                                                       A MySQL interface for Perl
 perl-DBD-Pg                                  3.7 [d]                              common [d]                                                       A PostgreSQL interface for Perl
 perl-DBD-SQLite                              1.58 [d]                             common [d]                                                       SQLite DBI driver
 perl-DBI                                     1.641 [d][e]                         common [d]                                                       A database access API for Perl
 perl-FCGI                                    0.78 [d]                             common [d]                                                       FastCGI Perl bindings
 perl-YAML                                    1.24 [d]                             common [d]                                                       Perl parser for YAML
 php                                          7.2 [d]                              common [d], devel, minimal                                       PHP scripting language
 php                                          7.3 [e]                              common, devel, minimal                                           PHP scripting language
 pki-core                                     10.6                                                                                                  PKI Core module for PKI 10.6 or later
 pki-deps                                     10.6                                                                                                  PKI Dependencies module for PKI 10.6 or later
 postgresql                                   9.6                                  client, server [d]                                               PostgreSQL server and client module
 postgresql                                   10 [d]                               client, server [d]                                               PostgreSQL server and client module
 python27                                     2.7 [d]                              common [d]                                                       Python programming language, version 2.7
 python36                                     3.6 [d][e]                           common [d], build                                                Python programming language, version 3.6
 redis                                        5 [d]                                common [d]                                                       Redis persistent key-value database
 rhn-tools                                    1.0 [d]                              common [d]                                                       Red Hat Satellite 5 tools for RHEL
 ruby                                         2.5 [d]                              common [d]                                                       An interpreter of object-oriented scripting language
 ruby                                         2.6                                  common                                                           An interpreter of object-oriented scripting language
 rust-toolset                                 rhel8 [d]                            common [d]                                                       Rust
 satellite-5-client                           1.0 [d][e]                           common [d], gui                                                  Red Hat Satellite 5 client packages
 scala                                        2.10 [d]                             common [d]                                                       A hybrid functional/object-oriented language for the JVM
 squid                                        4 [d]                                common [d]                                                       Squid - Optimising Web Delivery
 subversion                                   1.10 [d]                             common [d], server                                               Apache Subversion
 swig                                         3.0 [d]                              common [d], complete                                             Connects C/C++/Objective C to some high-level programming languages
 varnish                                      6 [d]                                common [d]                                                       Varnish HTTP cache
 virt                                         rhel [d]                             common [d]                                                       Virtualization module
 ヒント: [d]efault, [e]nabled, [x]disabled, [i]nstalled

よく見てみると、nginxとPHPの新しいバージョンが使えるじゃありませんか!特に、PHP7.2から7.3にアップグレードすることによって10%ほどパフォーマンスが向上するらしいです。

https://www.trilogyforce.com/blog/performance-of-php-7-3-series-and-etc/

早速アップグレードします。

まずはnginx1.16にアップグレードします。

dnf -y distro-sync
dnf -y module reset
dnf -y module reset nginx
dnf -y module enable nginx:1.16
dnf -y distro-sync
dnf -y install nginx
nginx -v 

次のように表示され、アップグレードが完了しているかと思います。

nginx version: nginx/1.16.1

PHP7.3にアップグレードします。

dnf -y distro-sync
dnf -y module reset
dnf -y module reset php
dnf -y module enable php:7.3
dnf -y distro-sync
dnf -y install php
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
     with Zend OPcache v7.3.5, Copyright (c) 1999-2018, by Zend Technologies

お疲れ様です。