Cloc installation failed in rocky-linux-10

Install cloc bug

root@rocky10 distro (master) # yum install epel-release
Last metadata expiration check: 1:08:36 ago on Thu 11 Dec 2025 01:26:38 PM CST.
Package epel-release-10-7.el10_1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
root@rocky10 distro (master) # yum install cloc
Last metadata expiration check: 1:08:39 ago on Thu 11 Dec 2025 01:26:38 PM CST.
Error: 
 Problem: package cloc-2.06-1.el10_1.noarch from epel requires perl(Parallel::ForkManager), but none of the providers can be installed
  - package perl-Parallel-ForkManager-2.03-1.el10_0.noarch from epel requires perl(Moo::Role), but none of the providers can be installed
  - package perl-Parallel-ForkManager-2.03-1.el10_0.noarch from epel requires perl(Moo) >= 1.001000, but none of the providers can be installed
  - conflicting requests
  - nothing provides perl(Module::Runtime) >= 0.012 needed by perl-Moo-2.005005-7.el10_0.noarch from epel
  - nothing provides perl(Devel::GlobalDestruction) >= 0.11 needed by perl-Moo-2.005005-7.el10_0.noarch from epel
  - nothing provides perl(Import::Into) >= 1.002 needed by perl-Moo-2.005005-7.el10_0.noarch from epel
  - nothing provides perl(Role::Tiny) >= 1.003003 needed by perl-Moo-2.005005-7.el10_0.noarch from epel
  - nothing provides perl(Class::Method::Modifiers) >= 1.10 needed by perl-Moo-2.005005-7.el10_0.noarch from epel
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Try:

crb enable
dnf install cloc

since when you installed EPEL repository it tells you to also enable CRB which hasn’t been done. From my system:

root@rocky10:~# dnf install cloc
Last metadata expiration check: 0:01:28 ago on Thu 11 Dec 2025 09:42:51 AM CET.
Dependencies resolved.
========================================================================================================================
 Package                                  Architecture      Version                          Repository            Size
========================================================================================================================
Installing:
 cloc                                     noarch            2.06-1.el10_1                    epel                 141 k
Installing dependencies:
 perl-Algorithm-Diff                      noarch            1.2010-14.el10                   appstream             46 k
 perl-Class-Method-Modifiers              noarch            2.15-7.el10                      crb                   52 k
 perl-Data-OptList                        noarch            0.114-7.el10                     appstream             27 k
 perl-Devel-GlobalDestruction             noarch            0.14-27.el10                     crb                   17 k
 perl-File-Find                           noarch            1.44-512.2.el10_0                appstream             25 k
 perl-Import-Into                         noarch            1.002005-29.el10                 crb                   17 k
 perl-Module-Runtime                      noarch            0.016-24.el10                    crb                   23 k
 perl-Moo                                 noarch            2.005005-7.el10_0                epel                  66 k
 perl-Package-Generator                   noarch            1.106-34.el10                    appstream             22 k
 perl-Parallel-ForkManager                noarch            2.03-1.el10_0                    epel                  34 k
 perl-Params-Util                         x86_64            1.102-19.el10                    appstream             33 k
 perl-Regexp-Common                       noarch            2024080801-1.el10_0              epel                 183 k
 perl-Role-Tiny                           noarch            2.002004-14.el10                 crb                   32 k
 perl-Sub-Exporter                        noarch            0.991-7.el10                     appstream             80 k
 perl-Sub-Exporter-Progressive            noarch            0.001013-27.el10                 crb                   21 k
 perl-Sub-Install                         noarch            0.929-8.el10                     appstream             23 k
 perl-Sub-Quote                           noarch            2.006008-6.el10_0                epel                  35 k
 perl-Time-HiRes                          x86_64            4:1.9777-511.el10                appstream             58 k
 perl-XString                             x86_64            0.005-16.el10                    crb                   23 k

as you can see all the dependencies you are missing, are in CRB.

1 Like

Thank you very much! Best regard to you! @iwalker

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.