i have four commands
- perl -MCPAN -e shell
- o conf prerequisites_policy follow
- o conf commit
- exit
I am attempting to streamline a bunch of yum commands and cpan installations and want to remove the confirmation portion of the cpan these four commands will do just that. my question. If it is possible, how do i place these into the shell script to run these commands after doing the yum install but before doing the cpan install
NOTE: I must use cpan instead of searching for these modules in rpms as the program they are used by has an issue with using rpms over the cpan modules.
ex.
#!/bin/sh
# File: rpm_prereq.sh
yum install -y glibc-devel
yum install -y httpd perl mod_perl mod_ssl
yum install -y mysql mysql-server
yum install -y nscd rsyslog
yum install -y gcc make
yum install -y rrdtool htmldoc
service mysqld start
(place those commands here)
cpan Apache::ASP App::Info Cache::Cache Crypt::PasswdMD5
cpan SBECK/Date-Manip-5.56.tar.gz
cpan DBD::mysql DBI
cpan JSON Linux::Inotify2 List::MoreUtils
cpan Locale::Maketext::Lexicon Locale::Maketext::Simple
any assistance will be grately appreciated.