perlperl-modulecentos8

How to install the perl DateTime module under CentOS8. yum install "perl(DateTime)" worked in CentOS7 but not in 8


There are some Perl modules that could previously be installed with: yum install "perl(DateTime)" Under CentOS7. In CentOS8 I get the error:

No match for argument: perl(DateTime)

I have the same problem for perl(Template), perl(YAML::XS), perl(Crypt::Eksblowfish::Bcrypt) and perl(JSON::XS)

I tried searching with:

yum provides *DateTime*

But I can't find anything there either.


Solution

  • perl-DateTime is no longer part of the CentOS 8 base OS. You'll need to enable the PowerTools repository, i.e. as root

    # yum config-manager --set-enabled PowerTools
    # yum update
    # yum repolist
    repo id                     repo name                                     status
    ...
    PowerTools                  CentOS-8 - PowerTools                         ...
    ...
    
    # yum install "perl(DateTime)"
    
    or...
    
    # yum install perl-DateTime
    

    perl(YAML::XS) (AKA perl-YAML-LibYAML) should also be available.

    perl(Template) (AKA perl-Template-Toolkit) and perl(Crypt::Eksblowfish::Bcrypt) (AKA perl-Crypt-Eksblowfish) no longer seem to be provided, not even in EPEL8. So you'll have to install them from CPAN.