我在 CentOS 7 上。当我执行 ayum update
时,它向我显示了这个问题:
** Found 1 pre-existing rpmdb problem(s), 'yum check' output follows:
php-7.3.4-1.el7.remi.x86_64 has missing requires of httpd-mmn = ('0', '20120211x8664', None)
我的服务器上没有 httpd 或 Apache。我拥有的回购包括:
# yum repolist
Loaded plugins: fastestmirror, replace
Loading mirror speeds from cached hostfile
* base: mirror.cc.columbia.edu
* epel: epel.mirror.constant.com
* extras: mirror.cc.columbia.edu
* remi-php72: mirror.team-cymru.com
* remi-php73: mirror.team-cymru.com
* remi-safe: mirror.team-cymru.com
* updates: mirror.cc.columbia.edu
repo id repo name status
base/7/x86_64 CentOS-7 - Base 10,019
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,125
extras/7/x86_64 CentOS-7 - Extras 387
mariadb MariaDB 67
nginx/x86_64 nginx repo 150
remi-php72 Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - x86_64 367
remi-php73 Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - x86_64 307
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 3,188
robert-gcj/x86_64 Copr repo for gcj owned by robert 16
robert-pdftk/x86_64 Copr repo for pdftk owned by robert 3
updates/7/x86_64 CentOS-7 - Updates 1,840
repolist: 29,475
我需要做什么才能在 yum 更新期间消除该错误?
您可以删除该包。命名的包
php
仅用于 Apache 安装,不用于 nginx/php-fpm。该软件包已命名php-fpm
,它是您应该安装的软件包。如果您尚未安装 php-fpm,请改为执行以下命令: