PHPを同じメジャーバージョンにアップグレードする

PHPを同じメジャーバージョンにアップグレードする

7.2.14作業しているサーバーのPHPを次からアップグレードする必要があります。7.2.19

yum list installed php*7.2.14-1.el7.remiインストールされているパッケージにのみ表示されます。

yum updateyum upgrade現在のバージョンで必要なページがアップグレードされているため、どちらも使用できません。

オペレーティングシステム:Centos7

ベストアンサー1

更新できるかどうか疑問です。ただPHPの基本パッケージ。残りの(除外された)パッケージはまだ以前のバージョンに依存していますphp-json。たとえば、次のようになります。

» yum deplist php-json
package: php-json.x86_64 7.1.30-1.el7.remi
<...>
  dependency: php-common(x86-64) = 7.1.30-1.el7.remi
   provider: php-common.x86_64 7.1.30-1.el7.remi
<...>

^への依存が見えますかphp-common

これを試してみると、次のようなyum update php --exclude=php-json結果が得られます。

--> Processing Dependency: php-json(x86-64) = 7.1.30-1.el7.remi for package: php-common-7.1.30-1.el7.remi.x86_64
Error: Package: php-common-7.1.30-1.el7.remi.x86_64 (remi-php71)
           Requires: php-json(x86-64) = 7.1.30-1.el7.remi
           Installed: php-json-7.1.29-1.el7.remi.x86_64 (@remi-php71)
               php-json(x86-64) = 7.1.29-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-json(x86-64)
           Available: php-pecl-jsonc-1.3.10-1.el7.remi.5.6.x86_64 (remi-php56)
               php-json(x86-64) = 1.3.10
           Available: php-pecl-jsonc-1.3.10-2.el7.remi.5.6.x86_64 (remi-php56)
               php-json(x86-64) = 1.3.10
           Removing: php-common-7.1.29-1.el7.remi.x86_64 (@remi-php71)
               Not found
           Updated By: php-common-7.1.30-1.el7.remi.x86_64 (remi-php71)
               Not found
           Available: php-common-5.6.40-8.el7.remi.x86_64 (remi-php56)
               Not found
           Available: php-common-5.6.40-9.el7.remi.x86_64 (remi-php56)
               Not found
Error: Package: php-json-7.1.29-1.el7.remi.x86_64 (@remi-php71)
           Requires: php-common(x86-64) = 7.1.29-1.el7.remi
           Removing: php-common-7.1.29-1.el7.remi.x86_64 (@remi-php71)
               php-common(x86-64) = 7.1.29-1.el7.remi
           Updated By: php-common-7.1.30-1.el7.remi.x86_64 (remi-php71)
               php-common(x86-64) = 7.1.30-1.el7.remi
           Available: php-common-5.4.16-46.el7.x86_64 (base)
               php-common(x86-64) = 5.4.16-46.el7
           Available: php-common-5.6.40-8.el7.remi.x86_64 (remi-php56)
               php-common(x86-64) = 5.6.40-8.el7.remi
           Available: php-common-5.6.40-9.el7.remi.x86_64 (remi-php56)
               php-common(x86-64) = 5.6.40-9.el7.remi

ウォン...

おすすめ記事