The Ubuntu package for Perl is simply "perl":
sudo apt-get install perl
which I think is preinstalled.
To find a Perl module that's provided as an Ubuntu package:
apt-cache search perl <module-name>
For example:
$ apt-cache search perl Config::IniFiles
libconfig-inifiles-perl - Read .ini-style configuration files
$ apt-cache search perl DBD-mysql
libdbd-mysql-perl - Perl5 database interface to the MySQL database
$ apt-cache search perl DBD-Pg
libdbd-pg-perl - Perl DBI driver for the PostgreSQL database server
I've skipped apt-cache search perl DBI
because it produces 112 lines of output. The Ubuntu package name for that follows the others, and is libdbi-perl
.
Then use sudo apt-get install ...
to install each package. You should be able to use a single apt-get
command to install all of them.
1PPM is primarily used on Windows systems. It is not necessary, or desirable, on Linux systems. Use apt-get or CPAN to install Perl modules. – duskwuff -inactive- – 2014-12-13T05:48:03.837
What commands might you need to run to get this result? – Simon Sheehan – 2011-11-30T20:54:17.313