Cybersecurity
Dec 1, 2020
1 min
How to install Perl modules on a Unix / Linux server
N
NewPush TeamAuthor
From the command line, as the root user, run:
# perl -MCPAN -e shell
And then at the cpan command line run:
cpan> install Module::Name
Alternatively, using on one line, as any user you can directly intall a module by running:
sudo perl -MCPAN -e 'install Module::Name'