无法将 PHP 5.4.16 更新至 PHP 7.3

无法将 PHP 5.4.16 更新至 PHP 7.3

我正在使用 RedHat Linux 7.9。我试图将 PHP 5.4.16 升级到 PHP 7.3,我发现博客文章和问题中的命令对我来说不起作用。

例如:

[root@username src]# php --version
PHP 5.4.16 (cli) (built: Mar 31 2020 17:30:32) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[root@username src]# wget -q http://rpms.remirepo.net/enterprise/remi-release-7.rpm
[root@username src]# wget -q https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
[root@username src]# rpm -i remi-release-7.rpm epel-release-latest-7.noarch.rpm
warning: remi-release-7.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
    package epel-release-7-14.noarch is already installed
    package remi-release-7.9-2.el7.remi.noarch is already installed
[root@username src]# yum-config-manager --enable remi-php72
Loaded plugins: langpacks
[root@username src]# yum install php
Loaded plugins: langpacks, ulninfo
Package php-5.4.16-48.el7.aarch64 already installed and latest version
Nothing to do
[root@username src]# yum update
Loaded plugins: langpacks, ulninfo
No packages marked for update
[root@username src]# php --version
PHP 5.4.16 (cli) (built: Mar 31 2020 17:30:32) 
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

那么,如何将 PHP 更新到较新的版本?

相关内容