5

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.

Sean Bright
  • 118,630
  • 17
  • 138
  • 146
testcaseone
  • 287
  • 1
  • 2
  • 11
  • Whatever happened with `perl-DateTime`? On CentOS7 (and before) those were names for the packages for Perl modules -- does this not work anymore? – zdim Oct 09 '19 at 16:08
  • 2
    @zdim `perl(Module::Name)` is the syntax for what modules a perl package in RH distros provide. dnf/yum accept it directly and look up in `provides` when it doesn't match a package name. – Grinnz Oct 09 '19 at 19:18
  • It's possible that these simply have not been packaged for RHEL/CentOS 8 yet. – Grinnz Oct 09 '19 at 19:19
  • 1
    Looking at http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/ it appears this is the case. – Grinnz Oct 09 '19 at 19:27
  • Try install it with `cpanm`, i.e. `sudo cpanm Date::Time`. I tested this in a docker container for CentOS8 and it installed `Date::Time` to `/usr/local/share/perl5` – Håkon Hægland Oct 09 '19 at 19:39
  • @HåkonHægland Date::Time is a very different unrelated module. – Grinnz Oct 09 '19 at 20:59
  • @Grinnz Thanks, I missed that. – Håkon Hægland Oct 09 '19 at 21:01
  • @Grinnz `sudo cpanm DateTime` also works fine in my container. It just takes more time to install than `Date::Time` :) – Håkon Hægland Oct 09 '19 at 21:13

1 Answers1

15

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.

Stefan Becker
  • 5,695
  • 9
  • 20
  • 30