Last active
September 14, 2015 08:50
-
-
Save dreamyguy/11370143 to your computer and use it in GitHub Desktop.
ezinst - install perl dependencies easily (as long as one trusts the source)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo aptitude install "cpan-lib`echo $1|sed -e 's/\\(::\\|\/\\)/-/g'|tr 'A-Z' 'a-z'`-perl" | |
sudo aptitude install --allow-untrusted --assume-yes cpan-lib`echo $1|sed -e 's/\\(::\\|\/\\)/-/g'|tr 'A-Z' 'a-z'`-perl || | |
echo aptitude install "lib`echo $1|sed -e 's/\\(::\\|\/\\)/-/g'|tr 'A-Z' 'a-z'`-perl" | |
sudo aptitude install --allow-untrusted --assume-yes lib`echo $1|sed -e 's/\\(::\\|\/\\)/-/g'|tr 'A-Z' 'a-z'`-perl | |
# use example: ezinst Catalyst::View::TT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternatively:
$ perlbrew
$ cpanm Module::Install
$ cpanm —installdeps