无法通过Putty在AlmaLinux 8.7上安装phpMyAdmin:找不到安装包
解决方案
解决phpMyAdmin安装包缺失问题
- 安装yum工具包以管理仓库:
yum install -y yum-utils - 启用remi仓库中对应PHP版本的子仓库(以PHP 7.2为例,其他版本替换为
remi-php73/remi-php74等):yum-config-manager --enable remi-php72 - 清理并重建yum缓存:
yum clean all && yum makecache - 重新执行安装命令:
yum install phpMyAdmin
解决php72w-fpm/php72w-opcache安装包缺失问题
php72w-*系列包来自webtatic仓库,而非你已配置的EPEL/remi仓库,提供两种方案:
方案1:使用remi仓库的PHP包(推荐)
remi仓库中PHP 7.2对应的包命名为php-fpm和php-opcache,直接安装:
yum install php-fpm php-opcache
方案2:添加webtatic仓库
针对CentOS/RHEL 7系统,执行以下命令安装webtatic仓库:
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
安装完成后即可安装目标包:
yum install php72w-fpm php72w-opcache
排查步骤
若问题仍存在,先确认所需仓库已启用:
yum repolist enabled
检查输出中是否包含remi-php72、epel、remi(或webtatic)仓库。
内容的提问来源于stack exchange,提问作者Finn Solly
相关产品推荐
相关产品推荐

