Не удается найти php-fpm для PHP 7.2 для установки на Centos 7.5

Создан новый виртуальный сервер для проекта, он работает под управлением Centos 7.5. После просмотра большого количества различных статей в Интернете, чтобы попробовать nginx и PHP 7. t2t

Обновление

Самая последняя статья, которой я пытался следовать, была: https://www.if-not-true-then-false.com/2011/install-nginx-php-fpm-on -fedora-centos-red-hat-rhel /

Выполнение команды установки там:

yum --enablerepo=remi,remi-php72 install nginx php-fpm php-common

Результат (усечено, чтобы показать версии PHP):

php-common     x86_64        5.4.16-45.el7       centos                               565 k
php-fpm        x86_64        5.4.16-45.el7       centos                               1.4 M

Полная информация

Как указано в комментариях ниже ...

$ sudo -i
[sudo] password for youngm: 
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-rele ase-latest-7.noarch.rpm
Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Preparing... 
    package epel-release-7-11.noarch is already installed
# 
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Retrieving http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Preparing... 
    package remi-release-7.5-2.el7.remi.noarch is already installed
# yum --enablerepo=remi,remi-php72 install nginx php-fpm php-common
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile

centos                                                                                                                                                                                                                | 2.1 kB  00:00:00     

epel_mirror                                                                                                                                                                                                           | 2.1 kB  00:00:00     
639 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package nginx.x86_64 1:1.12.2-2.el7 will be installed
--> Processing Dependency: nginx-filesystem = 1:1.12.2-2.el7 for package: 1:nginx-1.12.2-2.el7.x86_64
--> Processing Dependency: nginx-all-modules = 1:1.12.2-2.el7 for package: 1:nginx-1.12.2-2.el7.x86_64
--> Processing Dependency: nginx-filesystem for package: 1:nginx-1.12.2-2.el7.x86_64
---> Package php-common.x86_64 0:5.4.16-45.el7 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-45.el7.x86_64
---> Package php-fpm.x86_64 0:5.4.16-45.el7 will be installed
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
---> Package nginx-all-modules.noarch 1:1.12.2-2.el7 will be installed
--> Processing Dependency: nginx-mod-stream = 1:1.12.2-2.el7 for package: 1:nginx-all-modules-1.12.2-2.el7.noarch
--> Processing Dependency: nginx-mod-mail = 1:1.12.2-2.el7 for package: 1:nginx-all-modules-1.12.2-2.el7.noarch
--> Processing Dependency: nginx-mod-http-xslt-filter = 1:1.12.2-2.el7 for package: 1:nginx-all-modules-1.12.2-2.el7.noarch
--> Processing Dependency: nginx-mod-http-perl = 1:1.12.2-2.el7 for package: 1:nginx-all-modules-1.12.2-2.el7.noarch
--> Processing Dependency: nginx-mod-http-image-filter = 1:1.12.2-2.el7 for package: 1:nginx-all-modules-1.12.2-2.el7.noarch
--> Processing Dependency: nginx-mod-http-geoip = 1:1.12.2-2.el7 for package: 1:nginx-all-modules-1.12.2-2.el7.noarch
---> Package nginx-filesystem.noarch 1:1.12.2-2.el7 will be installed
--> Running transaction check
---> Package nginx-mod-http-geoip.x86_64 1:1.12.2-2.el7 will be installed
---> Package nginx-mod-http-image-filter.x86_64 1:1.12.2-2.el7 will be installed
---> Package nginx-mod-http-perl.x86_64 1:1.12.2-2.el7 will be installed
---> Package nginx-mod-http-xslt-filter.x86_64 1:1.12.2-2.el7 will be installed
---> Package nginx-mod-mail.x86_64 1:1.12.2-2.el7 will be installed
---> Package nginx-mod-stream.x86_64 1:1.12.2-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================================================================================================
 Package                                                               Arch                                             Version                                                  Repository                                             Size
=============================================================================================================================================================================================================================================
Installing:
 nginx                                                                 x86_64                                           1:1.12.2-2.el7                                           epel_mirror                                           530 k
 php-common                                                            x86_64                                           5.4.16-45.el7                                            centos                                                565 k
 php-fpm                                                               x86_64                                           5.4.16-45.el7                                            centos                                                1.4 M
Installing for dependencies:
 libzip                                                                x86_64                                           0.10.1-8.el7                                             centos                                                 48 k
 nginx-all-modules                                                     noarch                                           1:1.12.2-2.el7                                           epel_mirror                                            16 k
 nginx-filesystem                                                      noarch                                           1:1.12.2-2.el7                                           epel_mirror                                            17 k
 nginx-mod-http-geoip                                                  x86_64                                           1:1.12.2-2.el7                                           epel_mirror                                            23 k
 nginx-mod-http-image-filter                                           x86_64                                           1:1.12.2-2.el7                                           epel_mirror                                            26 k
 nginx-mod-http-perl                                                   x86_64                                           1:1.12.2-2.el7                                           epel_mirror                                            36 k
 nginx-mod-http-xslt-filter                                            x86_64                                           1:1.12.2-2.el7                                           epel_mirror                                            26 k
 nginx-mod-mail                                                        x86_64                                           1:1.12.2-2.el7                                           epel_mirror                                            54 k
 nginx-mod-stream                                                      x86_64                                           1:1.12.2-2.el7                                           epel_mirror                                            76 k

Transaction Summary
=============================================================================================================================================================================================================================================
Install  3 Packages (+9 Dependent packages)

Total download size: 2.8 M
Installed size: 10 M
Is this ok [y/d/N]: n
Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2018-11-13.14-37.LmQUgX.yumtx
# 
0
задан 13 November 2018 в 16:42
1 ответ

Вот ваша проблема:

 639 пакетов исключены из-за защиты приоритета репозитория
 

Вы или кто-то другой явно исключили пакеты из установки в вашей системе, установив приоритеты в /etc/yum.conf или в отдельных файлах репо в /etc/yum.repos.d Каталог .

Проверьте все эти файлы на наличие строк, которые читают priority = ### , где ### - это число, и удалите все, что найдете. Затем попробуйте установить пакеты еще раз.

Чтобы этого больше не произошло, вам также следует удалить вызывающий ошибку плагин yum с помощью чего-то вроде yum remove yum-plugin-sizes .

1
ответ дан 4 December 2019 в 15:48

Теги

Похожие вопросы