🐘

Amazon Linux 2023リポジトリにPHP8.3が追加された

2024/06/27に公開

Amazon Linux 2023 リリースノート

https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes-2023.5.20240624.html

2023.5.20240624のリリースでPHP8.3がAmazon Linux 2023のリポジトリに追加されたようです。

EC2で確認

Amazon Linux 2023 バージョンアップ

> sudo dnf update --releasever=2023.5.20240624
Amazon Linux 2023 repository                                                                                                                                                     39 MB/s |  25 MB     00:00
Last metadata expiration check: 0:00:07 ago on Thu Jun 27 10:25:14 2024.
Dependencies resolved.
...省略
Upgraded:
  amazon-linux-repo-s3-2023.5.20240624-0.amzn2023.noarch grubby-8.40-73.amzn2023.0.1.x86_64               kernel-livepatch-repo-s3-2023.5.20240624-0.amzn2023.noarch kernel-tools-6.1.94-99.176.amzn2023.x86_64
  libsss_certmap-2.9.4-1.amzn2023.0.2.x86_64             libsss_idmap-2.9.4-1.amzn2023.0.2.x86_64         libsss_nss_idmap-2.9.4-1.amzn2023.0.2.x86_64               libsss_sudo-2.9.4-1.amzn2023.0.2.x86_64
  python3-jinja2-2.11.3-1.amzn2023.0.4.noarch            sssd-client-2.9.4-1.amzn2023.0.2.x86_64          sssd-common-2.9.4-1.amzn2023.0.2.x86_64                    sssd-kcm-2.9.4-1.amzn2023.0.2.x86_64
  sssd-nfs-idmap-2.9.4-1.amzn2023.0.2.x86_64             system-release-2023.5.20240624-0.amzn2023.noarch systemd-252.23-2.amzn2023.x86_64                           systemd-libs-252.23-2.amzn2023.x86_64
  systemd-networkd-252.23-2.amzn2023.x86_64              systemd-pam-252.23-2.amzn2023.x86_64             systemd-resolved-252.23-2.amzn2023.x86_64                  systemd-udev-252.23-2.amzn2023.x86_64
Installed:
  kernel-6.1.94-99.176.amzn2023.x86_64
Removed:
  kernel-6.1.79-99.167.amzn2023.x86_64

Complete!

Amazon Linux 2023 バージョン確認

> cat /etc/os-release
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023.5.20240624"
...省略
VENDOR_URL="https://aws.amazon.com/"
SUPPORT_END="2028-03-15"

リポジトリでPHP8.3を検索

> dnf search php8.3
Last metadata expiration check: 0:00:22 ago on Thu Jun 27 10:41:24 2024.
========================================================================================= Name Exactly Matched: php8.3 =========================================================================================
php8.3.x86_64 : PHP scripting language for creating dynamic web sites
============================================================================================= Name Matched: php8.3 =============================================================================================
php8.3-bcmath.x86_64 : A module for PHP 8.3 applications for using the bcmath library
php8.3-cli.x86_64 : Command-line interface for PHP 8.3
php8.3-common.x86_64 : Common files for PHP 8.3
php8.3-dba.x86_64 : A database abstraction layer module for PHP 8.3 applications
php8.3-dbg.x86_64 : The interactive PHP 8.3 debugger
php8.3-devel.x86_64 : Files needed for building PHP 8.3 extensions
php8.3-embedded.x86_64 : PHP 8.3 library for embedding in applications
php8.3-enchant.x86_64 : Enchant spelling extension for PHP 8.3 applications
php8.3-ffi.x86_64 : Foreign Function Interface
php8.3-fpm.x86_64 : PHP 8.3 FastCGI Process Manager
php8.3-gd.x86_64 : A module for PHP 8.3 applications for using the gd graphics library
php8.3-gmp.x86_64 : A module for PHP 8.3 applications for using the GNU MP library
php8.3-intl.x86_64 : Internationalization extension for PHP 8.3 applications
php8.3-ldap.x86_64 : A module for PHP 8.3 applications that use LDAP
php8.3-mbstring.x86_64 : A module for PHP 8.3 applications which need multi-byte string handling
php8.3-modphp.x86_64 : PHP 8.3 module for Apache HTTP Server
php8.3-mysqlnd.x86_64 : A module for PHP 8.3 applications that use MySQL databases
php8.3-odbc.x86_64 : A module for PHP 8.3 applications that use ODBC databases
php8.3-opcache.x86_64 : The Zend OPcache
php8.3-pdo.x86_64 : A database access abstraction module for PHP 8.3 applications
php8.3-pgsql.x86_64 : A PostgreSQL database module for PHP 8.3
php8.3-process.x86_64 : Modules for PHP 8.3 script using system process interfaces
php8.3-pspell.x86_64 : A module for PHP 8.3 applications for using pspell interfaces
php8.3-snmp.x86_64 : A module for PHP 8.3 applications that query SNMP-managed devices
php8.3-soap.x86_64 : A module for PHP 8.3 applications that use the SOAP protocol
php8.3-sodium.x86_64 : Wrapper for the Sodium cryptographic library
php8.3-tidy.x86_64 : Standard PHP 8.3 module provides tidy library support
php8.3-xml.x86_64 : A module for PHP 8.3 applications which use XML
php8.3-zip.x86_64 : ZIP archive management extension

拡張機能も含め、php8.3dnfでインストール可能になっていました。

所感

PHP8.3は2023/11/27にリリースされているので、リリースから7ヶ月後にAmazon Linux 2023リポジトリに追加されたことになりますね。
意外と時間がかかるんだなあと感じました。
主に使用しているOSのサポート状況は知っておきたいなと思いました。

Discussion