Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to deploy an application which according to the documentation requires the following:

2.2.5. Perl

LMS-MGC and the rest of Perl scripts requires also Perl interpreter and some modules:

Perl and its basic modules (POSIX, GetOpt::Long),



DBD-mysql (if you use MySQL),

DBD-Pg (if you use Postgres),

How do I install the requirements with apt-get?

share|improve this question

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.

share|improve this answer

The packages are sometimes different in different versions. Perl package names are similar with module names. You can start from Ubuntu Packages Search, espexially "Search the contents of packages" is useful if you do not know package name but know its contents. For example Config::IniFiles should have file in directory Config. Choose your Ubuntu version, enter "" and you'll get package name.

share|improve this answer

You could install Perl normally using apt-get and then use Perl package manager (command ppm) to install the rest.

share|improve this answer
What commands might you need to run to get this result? – Simon Sheehan Nov 30 '11 at 20:54
PPM 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 Dec 13 '14 at 5:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.