X

libzip.so.5の依存関係でphp-pecl-zipのupdateができない

php-pecl-zip.x86_64のupdateがあってupdateをかけたが
依存関係でupdate出来なかった。
メモしておきたくなったのでメモ

Error: Package: php-pecl-zip-1.14.0-1.el7.remi.7.1.x86_64 (remi-php71)
Requires: libzip.so.5()(64bit)
You could try using –skip-broken to work around the problem
You could try running: rpm -Va –nofiles –nodigest

libzip.so.5が現在有効なリポジトリで見つからないようだ。
そこで、remi.repoをこの時だけ有効にして再度インストール

# yum –enablerepo=remi install php-pecl-zip
Loaded plugins: fastestmirror, priorities
remi | 2.9 kB 00:00
Loading mirror speeds from cached hostfile
* base: ftp.tsukuba.wide.ad.jp
* epel: ftp.jaist.ac.jp
* extras: ftp.tsukuba.wide.ad.jp
* remi: mirror.bebout.net
* remi-php71: mirror.bebout.net
* updates: ftp.tsukuba.wide.ad.jp
Resolving Dependencies
–> Running transaction check
—> Package php-pecl-zip.x86_64 0:1.14.0-1.el7.remi.7.1 will be installed
–> Processing Dependency: libzip.so.5()(64bit) for package: php-pecl-zip-1.14.0-1.el7.remi.7.1.x86_64
–> Running transaction check
—> Package libzip5.x86_64 0:1.2.0-1.el7.remi will be installed
–> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
php-pecl-zip x86_64 1.14.0-1.el7.remi.7.1 remi-php71 50 k
Installing for dependencies:
libzip5 x86_64 1.2.0-1.el7.remi remi 56 k

Transaction Summary
================================================================================
Install 1 Package (+1 Dependent package)

Total download size: 106 k
Installed size: 287 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): libzip5-1.2.0-1.el7.remi.x86_64.rpm | 56 kB 00:00
(2/2): php-pecl-zip-1.14.0-1.el7.remi.7.1.x86_64.rpm | 50 kB 00:00
——————————————————————————–
Total 102 kB/s | 106 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libzip5-1.2.0-1.el7.remi.x86_64 1/2
Installing : php-pecl-zip-1.14.0-1.el7.remi.7.1.x86_64 2/2
Verifying : php-pecl-zip-1.14.0-1.el7.remi.7.1.x86_64 1/2
Verifying : libzip5-1.2.0-1.el7.remi.x86_64 2/2

Installed:
php-pecl-zip.x86_64 0:1.14.0-1.el7.remi.7.1

Dependency Installed:
libzip5.x86_64 0:1.2.0-1.el7.remi

Complete!

無事にupdateできました。

Categories: CentOS7 linux
Tags: centos7linux
higherhope: