我是Linux的新手。在CentOS 8上通过https://rpms.remirepo.net/wizard/指令安装PHP-7.4时,我在命令dnf module install php:remi-7.4处得到了错误Unable to resolve argument php:remi-7.4。
在CentOS上已经安装了PHP-7.3.22。请帮帮忙。
Unable to resolve argument php:remi-7.4
No match for package php-cli
Unable to resolve argument php:remi-7.4
No match for package php-common
Unable to resolve argument php:remi-7.4
No match for package php-fpm
Unable to resolve argument php:remi-7.4
No match for package php-mbstring
Unable to resolve argument php:remi-7.4
No match for package php-xml
Error: Problems in request:
broken groups or modules: php:remi-7.4, php:remi-7.4, php:remi-7.4, php:remi-7.4, php:remi-7.4发布于 2021-11-02 00:42:50
在重新安装CentOS 8时,我遇到了类似的问题。
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm -y然后禁用所有php版本的所有选项,特别是启用REMOforRemi-7.4。
sudo dnf module reset php -y
sudo dnf module install php:remi-7.4 -y
sudo yum install yum-utils -y在那之后,你可以
sudo yum install php它将从唯一的php repo avaialble (remi-7.4)中安装php。
参考:https://blog.remirepo.net/post/2019/12/03/Install-PHP-7.4-on-CentOS-RHEL-or-Fedora
https://serverfault.com/questions/1033685
复制相似问题