Skip to content

Instantly share code, notes, and snippets.

@dreamyguy
Last active September 14, 2015 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreamyguy/11370143 to your computer and use it in GitHub Desktop.
Save dreamyguy/11370143 to your computer and use it in GitHub Desktop.
ezinst - install perl dependencies easily (as long as one trusts the source)
#!/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
@dreamyguy
Copy link
Author

This file should be at:
/usr/local/bin/
Do this:

  • cd /usr/local/bin/
  • touch ezinst
  • nano ezinst
  • paste script's content there
  • save file and exit nano
  • sudo chmod +x /usr/local/bin/ezinst

@dreamyguy
Copy link
Author

Alternatively:
$ perlbrew
$ cpanm Module::Install
$ cpanm —installdeps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment