Problem with Repo ImageMagick-perl

Hello everyone! I hope you can help me, today I tried to update my almalinux with the dnf update command, but I get the following error.

[root@serverbackup492018i3 ~]# dnf update
Last metadata expiration check: 2:04:27 ago on Sat 11 Jun 2022 05:56:43 PM -05.
Error:
 Problem 1: package ImageMagick-perl-6.9.12.50-1.el8.x86_64 requires perl(:MODULE_COMPAT_5.32.1), but none of the providers can be installed
  - package ImageMagick-perl-6.9.12.50-1.el8.x86_64 requires libperl.so.5.32()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package ImageMagick-perl-6.9.12.48-2.el8.x86_64
  - package perl-libs-4:5.32.1-471.module_el8.6.0+2766+8bf0b7ce.x86_64 is filtered out by modular filtering
 Problem 2: package ImageMagick-perl-6.9.12.48-2.el8.x86_64 requires ImageMagick-libs(x86-64) = 6.9.12.48-2.el8, but none of the providers can be installed
  - problem with installed package ImageMagick-perl-6.9.12.48-2.el8.x86_64
  - cannot install both ImageMagick-libs-6.9.12.50-1.el8.x86_64 and ImageMagick-libs-6.9.12.48-2.el8.x86_64
  - package ImageMagick-perl-6.9.12.50-1.el8.x86_64 requires perl(:MODULE_COMPAT_5.32.1), but none of the providers can be installed
  - package ImageMagick-perl-6.9.12.50-1.el8.x86_64 requires libperl.so.5.32()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package ImageMagick-libs-6.9.12.48-2.el8.x86_64
  - package perl-libs-4:5.32.1-471.module_el8.6.0+2766+8bf0b7ce.x86_64 is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

I hope you can help me to solve this, previously it worked fine from one moment to another the problem started.

The error says:

  • ImageMagick-perl from EPEL requires perl version 5.32
  • perl 5.32 exists, but is filtered out by modular filtering

On my system:

$ dnf module list perl
Last metadata expiration check: 2:28:01 ago on Sun 12 Jun 2022 07:40:25 AM EEST.
AlmaLinux 8 - AppStream
Name            Stream                 Profiles                       Summary                                           
perl            5.24                   common [d], minimal            Practical Extraction and Report Language          
perl            5.26 [d][e]            common [d], minimal            Practical Extraction and Report Language          
perl            5.30                   common [d], minimal            Practical Extraction and Report Language          
perl            5.32                   common [d], minimal            Practical Extraction and Report Language          

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

EPEL has built ImageMagick-perl on system that has Perl 5.32. If/when I install Perl, I do get version 5.26.

If we want Perl 5.32, then we have to uninstall Perl 5.26 and switch to module stream perl:5.32.

How to switch stream? See use a different stream with dnf - Red Hat Customer Portal
Longer version: Chapter 6. Managing versions of Application Stream content Red Hat Enterprise Linux 8 | Red Hat Customer Portal

[EDIT]
Apparently EPEL build against 5.32 was a mistake and an updated version that uses 5.26 is already in testing: 2095649 – Error Install ImageMagick and Imagemagick-perl together on RH8 (EPEL8 repository)

If you don’t need ImageMagick-perl now (and can’t switch Perl), then remove it (and reinstall when fixed version is released).