0

How to upgrade to php8.1 in RHEL 8.7, I went through various guides and ended up installing php:remi-8.1 which is desirable however, php-gd is not willing to be installed cause of missing libraries.

Problem: package php-gd-7.2.24-1.module+el8.2.0+4601+7c76a223.x86_64 requires php-common(x86-64) = 7.2.24-1.module+el8.2.0+4601+7c76a223, but none of the providers can be installed
  - problem with installed package php-gd-7.2.24-1.module+el8.2.0+4601+7c76a223.x86_64
  - cannot install both php-common-8.1.16-1.el8.remi.x86_64 and php-common-7.2.24-1.module+el8.2.0+4601+7c76a223.x86_64
  - package php-gd-8.1.15-1.el8.remi.x86_64 requires libgd.so.103()(64bit), but none of the providers can be installed
  - package php-gd-8.1.16-1.el8.remi.x86_64 requires libgd.so.103()(64bit), but none of the providers can be installed
  - cannot install the best candidate for the job
  - package php-common-7.2.24-1.module+el8.2.0+4601+7c76a223.x86_64 is filtered out by modular filtering
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-4.el8.remi.x86_64
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-4.el8.remi.x86_64
  - nothing provides libraqm.so.0()(64bit) needed by gd3php-2.3.3-8.el8.remi.x86_64
  - nothing provides libimagequant.so.0()(64bit) needed by gd3php-2.3.3-8.el8.remi.x86_64
  - nothing provides libavif.so.14()(64bit) needed by gd3php-2.3.3-8.el8.remi.x86_64

Has anyone went through this before? Best guide so far: https://rpms.remirepo.net/wizard/

Installation of repos

$ sudo subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
Repository 'codeready-builder-for-rhel-8-x86_64-rpms' is enabled for this system.

$ sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Updating Subscription Management repositories.
Last metadata expiration check: 2:55:33 ago on Tue 14 Mar 2023 08:23:58 GMT.
epel-release-latest-8.noarch.rpm                                   54 kB/s |  24 kB     00:00
Package epel-release-8-18.el8.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

$ sudo dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Updating Subscription Management repositories.
Last metadata expiration check: 2:55:57 ago on Tue 14 Mar 2023 08:23:58 GMT.
remi-release-8.rpm                                                383 kB/s |  31 kB     00:00
Package remi-release-8.7-2.el8.remi.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!

I managed to enable EPEL repository, so my current repo list is as follows:

sudo yum repolist
Updating Subscription Management repositories.
repo id                                                 repo name
codeready-builder-for-rhel-8-x86_64-debug-rpms          Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (Debug RPMs)
codeready-builder-for-rhel-8-x86_64-eus-debug-rpms      Red Hat CodeReady Linux Builder for RHEL 8 x86_64 - Extended Update Support (Debug RPMs)
codeready-builder-for-rhel-8-x86_64-eus-rhui-debug-rpms Red Hat CodeReady Linux Builder for RHEL 8 x86_64 - Extended Update Support from RHUI (Debug RPMs)
codeready-builder-for-rhel-8-x86_64-eus-rhui-rpms       Red Hat CodeReady Linux Builder for RHEL 8 x86_64 - Extended Update Support from RHUI (RPMs)
codeready-builder-for-rhel-8-x86_64-eus-source-rpms     Red Hat CodeReady Linux Builder for RHEL 8 x86_64 - Extended Update Support (Source RPMs)
codeready-builder-for-rhel-8-x86_64-rhui-debug-rpms     Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (Debug RPMs) from RHUI
codeready-builder-for-rhel-8-x86_64-rhui-rpms           Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) from RHUI
codeready-builder-for-rhel-8-x86_64-rhui-source-rpms    Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (Source RPMs) from RHUI
codeready-builder-for-rhel-8-x86_64-rpms                Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)
codeready-builder-for-rhel-8-x86_64-source-rpms         Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (Source RPMs)
mariadb-main                                            MariaDB Server
mariadb-maxscale                                        MariaDB MaxScale
mariadb-tools                                           MariaDB Tools
remi-modular                                            Remi's Modular repository for Enterprise Linux 8 - x86_64
remi-safe                                               Safe Remi's RPM repository for Enterprise Linux 8 - x86_64
rhel-8-for-x86_64-appstream-rpms                        Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms                           Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)

However, now I run into a different issue. Even after running

sudo subscription-manager repos --disable codeready-builder-for-rhel-8-x86_64-eus-rhui-source-rpms
sudo dnf clean all && sudo rm -r /var/cache/dnf  && sudo dnf upgrade -y && sudo dnf update -y 

I still get the following.

sudo dnf update
Updating Subscription Management repositories.
MariaDB Server                                                    702 kB/s | 673 kB     00:00
MariaDB MaxScale                                                  9.6 kB/s | 8.6 kB     00:00
MariaDB Tools                                                      35 kB/s | 4.4 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)           38 MB/s |  52 MB     00:01
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (Source RPMs) f 600 kB/s | 263 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)              37 MB/s |  57 MB     00:01
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (Source RPMs)   566 kB/s | 263 kB     00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs) from RHU  15 MB/s | 8.8 MB     00:00
Red Hat CodeReady Linux Builder for RHEL 8 x86_64 - Extended Upda 5.5  B/s |  10  B     00:01
Errors during downloading metadata for repository 'codeready-builder-for-rhel-8-x86_64-eus-debug-rpms':
  - Status code: 404 for https://cdn.redhat.com/content/eus/rhel8/8.7/x86_64/codeready-builder/debug/repodata/repomd.xml (IP: 104.82.76.83)
Error: Failed to download metadata for repo 'codeready-builder-for-rhel-8-x86_64-eus-debug-rpms': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Alimba
  • 101
  • 4

1 Answers1

0

Seems like you missed to enable the EPEL repos on your system. The wizard does remind you of that. Check that EPEL and the CodeReady Repos are both enabled.

fuero
  • 9,591
  • 1
  • 35
  • 40
  • I followed all the commands on the wizard. I can give it another try. – Alimba Mar 14 '23 at 11:18
  • I updated my answer with the re-installation of the required repositories. – Alimba Mar 14 '23 at 11:24
  • libraqm.so.0()(64bit) is provided by libraqm-0.7.0-4.el8.x86_64 (from EPEL) libimagequant.so.0()(64bit) is provided by libimagequant-2.12.5-1.el8.x86_64 (from EPEL) – Remi Collet Mar 14 '23 at 12:48
  • libavif.so.14()(64bit) is provided from libavif-0.10.1-3.el8.x86_64, also from EPEL – Remi Collet Mar 14 '23 at 13:33
  • @RemiCollet Shouldn't be able to resolve it's dependencies since the EPEL repos are enabled? Am I missing something? – Alimba Mar 14 '23 at 14:00
  • Need the full command output – Remi Collet Mar 14 '23 at 15:38
  • @RemiCollet I updated my ticket with more info regarding this issue. You were right about the missing packages, there were part of EPEL, but I installed EPEL but not enabled it. Once I did enabled it, I could look for those int the repo, however now I can't update anything. – Alimba Mar 14 '23 at 16:18