yum -y install perl-CPAN. No package perl-CPAN available.

Latest response

I have a perl script that will not run because Time::Piece.pm is missing.
When I try and install Time::Piece.pm (/usr/bin/perl -MCPAN -e install Time::Piece) fails with this message - Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).

When I try and install CPAN or MCPAN I get this message -
yum -y install perl-CPAN
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
Setting up Install Process
No package perl-CPAN available.
Error: Nothing to do

Why can't I update perl?

Thank you

Responses