Install any perl module on CentOS

Spread the love

First make user CPAN is installed. To check run ‘cpan’ command. If it is installed then you be in the cpan CLI. To quit the CLI write ‘q’ and press enter. If not installed please go here

To install any module, use following command:

sudo perl -MCPAN -e 'install Digest::SHA'

In above command ‘SHA’ is the module that is installed.