View Single Post
  #5  
Old 24th June 2010, 10:08
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

hehe nice

Though i'd like to give you some tips if you want to keep on working on the script.

1. Don't put perl tarballs in /var/cache/apt/ (this dir is for debian packages, just dl it to /usr/local/src or smth

2. You can shorten this all by putting all the packages in one apt-get command, also add a:

Code:
APTCMD=`which apt-get`;
and then use that as cmd like so:

Code:
$APTCMD -y libgd2
3. Installing a perl module from command line can be done like this:
Code:
perl -MCPAN -e 'Geography::Countries Mail:DomainKeys'
this way all the dependencies will be installed as well.

4. Don't put scripts in /var/cache/apt/
Reply With Quote