1 (edited by pnung 2019-10-14 14:24:10)

Topic: redhat8 libzip missing when enable remi repository

Hi.
When I enable remi repository libzip is not available from redhat8 base repository anymore.
Need libzip for php73-php-pecl-zip


[root@server-test yum.repos.d]# yum search libzip
Updating Subscription Management repositories.
Last metadata expiration check: 1:32:49 ago on Mon 14 Oct 2019 02:41:12 PM CEST.
=============================================================================================================================================== Name Exactly Matched: libzip ===============================================================================================================================================
libzip.x86_64 : C library for reading, creating, and modifying zip archives
============================================================================================================================================== Summary & Name Matched: libzip ==============================================================================================================================================
libzip-devel.x86_64 : Development files for libzip
libzip-tools.x86_64 : Command line tools from libzip

[root@server-test yum.repos.d]# mv remi-modular.repo_old remi-modular.repo

[root@server-test yum.repos.d]# mv remi.repo_old remi.repo

[root@server-test yum.repos.d]# mv remi-safe.repo_old remi-safe.repo

[root@server-test yum.repos.d]# yum search libzip
Updating Subscription Management repositories.
Last metadata expiration check: 1:33:36 ago on Mon 14 Oct 2019 02:41:12 PM CEST.
No matches found.


[root@server-test yum.repos.d]# yum install  php73-php-pecl-zip
Updating Subscription Management repositories.
Last metadata expiration check: 1:34:06 ago on Mon 14 Oct 2019 02:41:12 PM CEST.
Error:
Problem: package php73-php-pecl-zip-1.15.5-1.el8.remi.x86_64 requires libzip(x86-64) >= 1.5.1, but none of the providers can be installed
  - package php73-php-pecl-zip-1.15.5-1.el8.remi.x86_64 requires libzip.so.5()(64bit), but none of the providers can be installed
  - cannot install the best candidate for the job
  - package libzip-1.5.1-1.module+el8+2561+1aca3413.x86_64 is excluded
  - package libzip-1.5.1-1.el8.remi.x86_64 is excluded
  - package libzip-1.5.2-1.el8.remi.x86_64 is excluded
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[root@server-test yum.repos.d]#

Re: redhat8 libzip missing when enable remi repository

In RHEL / CentOS 8, libzip is only part of the php module.

So you need to enable it (any version)

# dnf module enable php:7.2
Last metadata expiration check: 9:28:59 ago on Mon Oct 14 08:29:46 2019.
Dependencies resolved.
====================================================================================================================================================================================
 Package                                    Arch                                      Version                                      Repository                                  Size
====================================================================================================================================================================================
Enabling module streams:
 php                                                                                  7.2                                                                                          

Transaction Summary
====================================================================================================================================================================================

Is this ok [y/N]: y
Complete!

# dnf install php73 php73-php-zip         
Last metadata expiration check: 9:29:07 ago on Mon Oct 14 08:29:46 2019.
Dependencies resolved.
====================================================================================================================================================================================
 Package                                     Arch                            Version                                                       Repository                          Size
====================================================================================================================================================================================
Installing:
 php73                                       x86_64                          2.0-1.el8.remi                                                remi-safe                          6.5 k
 php73-php-pecl-zip                          x86_64                          1.15.5-1.el8.remi                                             remi-safe                           50 k
Installing dependencies:
 libzip                                      x86_64                          1.5.1-1.module_el8.0.0+56+d1ca79aa                            AppStream                           63 k
 php73-php-cli                               x86_64                          7.3.10-1.el8.remi                                             remi-safe                          3.1 M
 php73-php-common                            x86_64                          7.3.10-1.el8.remi                                             remi-safe                          666 k
 php73-php-json                              x86_64                          7.3.10-1.el8.remi                                             remi-safe                           74 k
 php73-runtime                               x86_64                          2.0-1.el8.remi                                                remi-safe                          1.1 M

Transaction Summary
====================================================================================================================================================================================
Install  7 Packages

Total download size: 5.0 M
Installed size: 16 M
Is this ok [y/N]: 

OK, this is not the perfect solution....
I cannot push it to the remi-safe repository, as it may replace a base package...

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: redhat8 libzip missing when enable remi repository

More, after some tests

As soon as a package is part of a module, it is excluded from all repositories if the module is not enabled

Damned... sad

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: redhat8 libzip missing when enable remi repository

Will dig a bit more tomorrow

Without my repo, libzip is found from php default stream (7.2)
With my repository, dnf doesn't know which is the php default stream (dnf module list php)

I need to understand what's wrong in the metadata... sad

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: redhat8 libzip missing when enable remi repository

Ok, found the problem.
Should be fixed now (as soon as all mirrors will be synced)

# dnf install php73 php73-php-zip
Last metadata expiration check: 0:01:19 ago on Tue Oct 15 09:55:29 2019.
Dependencies resolved.
====================================================================================================================================================================================
 Package                                     Arch                            Version                                                       Repository                          Size
====================================================================================================================================================================================
Installing:
 php73                                       x86_64                          2.0-1.el8.remi                                                remi-safe                          6.5 k
 php73-php-pecl-zip                          x86_64                          1.15.5-1.el8.remi                                             remi-safe                           50 k
Installing dependencies:
 libzip                                      x86_64                          1.5.1-1.module_el8.0.0+56+d1ca79aa                            AppStream                           63 k
 php73-php-cli                               x86_64                          7.3.10-1.el8.remi                                             remi-safe                          3.1 M
 php73-php-common                            x86_64                          7.3.10-1.el8.remi                                             remi-safe                          666 k
 php73-php-json                              x86_64                          7.3.10-1.el8.remi                                             remi-safe                           74 k
 php73-runtime                               x86_64                          2.0-1.el8.remi                                                remi-safe                          1.1 M
Enabling module streams:
 php                                                                         7.2                                                                                                   

Transaction Summary
====================================================================================================================================================================================
Install  7 Packages

Total download size: 5.0 M
Installed size: 16 M
Is this ok [y/N]: 
Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

6 (edited by pnung 2019-10-15 08:32:04)

Re: redhat8 libzip missing when enable remi repository

Nice. Problem solved:

[root@server-test ~]# yum install php73-php-pecl-zip
Updating Subscription Management repositories.
Last metadata expiration check: 0:00:28 ago on Tue 15 Oct 2019 10:22:18 AM CEST.
Dependencies resolved.
============================================================================================================================================================================================================================================================================================================================
 Package                                                                  Arch                                                         Version                                                                                 Repository                                                                              Size
============================================================================================================================================================================================================================================================================================================================
Installing:
 php73-php-pecl-zip                                                       x86_64                                                       1.15.5-1.el8.remi                                                                       remi-safe                                                                               50 k
Installing dependencies:
 libzip                                                                   x86_64                                                       1.5.1-1.module+el8+2561+1aca3413                                                        rhel-8-for-x86_64-appstream-rpms                                                        63 k
Enabling module streams:
 php                                                                                                                                   7.2

Transaction Summary
============================================================================================================================================================================================================================================================================================================================
Install  2 Packages

Total download size: 112 k
Installed size: 270 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): php73-php-pecl-zip-1.15.5-1.el8.remi.x86_64.rpm                                                                                                                                                                                                                                      245 kB/s |  50 kB     00:00
(2/2): libzip-1.5.1-1.module+el8+2561+1aca3413.x86_64.rpm                                                                                                                                                                                                                                   184 kB/s |  63 kB     00:00
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                                                                                                                       303 kB/s | 112 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                                                                                                                                    1/1
  Installing       : libzip-1.5.1-1.module+el8+2561+1aca3413.x86_64                                                                                                                                                                                                                                                     1/2
  Installing       : php73-php-pecl-zip-1.15.5-1.el8.remi.x86_64                                                                                                                                                                                                                                                        2/2
  Running scriptlet: php73-php-pecl-zip-1.15.5-1.el8.remi.x86_64                                                                                                                                                                                                                                                        2/2
  Verifying        : libzip-1.5.1-1.module+el8+2561+1aca3413.x86_64                                                                                                                                                                                                                                                     1/2
  Verifying        : php73-php-pecl-zip-1.15.5-1.el8.remi.x86_64                                                                                                                                                                                                                                                        2/2
Installed products updated.

Installed:
  php73-php-pecl-zip-1.15.5-1.el8.remi.x86_64                                                                                                                 libzip-1.5.1-1.module+el8+2561+1aca3413.x86_64

Complete!

Re: redhat8 libzip missing when enable remi repository

smile

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: redhat8 libzip missing when enable remi repository

Despite workaround works, this will be better to have this fixed upstream
So https://bugzilla.redhat.com/show_bug.cgi?id=1761805

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test