Install php 7.3 on RHEL 8 (dnf module)

Facebooktwittermail

Red Hat® Enterprise Linux® 8にphp 7.3をインストールしてみました。

3.2. リポジトリー
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html/8.0_release_notes/repositories

Red Hat Enterprise Linux 8 は、2 つのメインリポジトリーで配布されています。

・BaseOS
・AppStream
基本的な RHEL インストールにはどちらのリポジトリーも必要で、すべての RHEL サブスクリプションで利用できます。

Red Hat Enterprise Linux 8 向けパッケージの一覧
https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html-single/package_manifest/index

この一覧を見るとAppStreamモジュールでphp 7.2と7.3がインストールできそうです。

環境
・Red Hat Enterprise Linux release 8.2 (Ootpa)
・Kernel 4.18.0-193.14.3.el8_2.x86_64
・Red Hat Developer Subscription

  • デフォルトでインストールされるのはphp 7.2
  • php 7.3をインストール
  • 4.4. 例: アプリケーションのデフォルト以外のストリームのインストール
    https://access.redhat.com/documentation/ja-jp/red_hat_enterprise_linux/8/html/installing_managing_and_removing_user-space_components/example-installing-a-non-default-stream-of-an-application_installing-rhel-8-content

Module Command
https://dnf.readthedocs.io/en/latest/command_ref.html#module-command

Leave a Reply