javier arturo rodríguez

μHOWTO: Install perl libraries in bulk

20060809 8:34 by javier

When you have to install packages that live out of dpkg, don’t you hate to install their dependencies by hand? I do.
Even though this is exactly what CPAN.pm does, there is a Debian way: If you have another machine with the correct dependencies already installed, you can use dpkg to copy those over.
For instance, this one-liner requests installation of the same Perl libraries that live in another machine:

$ ssh original.machine.com ‘dpkg –get-selections’|grep ‘^lib.*perl’|grep ‘install$’|dpkg –set-selections
$ sudo aptitude -f install

You may replace the first regexp to whatever your want (e.g. “^libapache-mod” for perl modules, “^lib.*java” for Java libraries and so on).
Gotta love Debian.

One Response to “μHOWTO: Install perl libraries in bulk”

  1. Mauricio Angulo S. Says:

    Will you some day migrate to Ruby? (JK!)

Leave a Reply

36 queries. 0.308s  $Revision: 1.6 $
Use Any Browser! Valid XHTML 1.0   Powered by WordPress Powered by Apache Web Server Hacker Emblem