<div class="gmail_quote">On Fri, Apr 9, 2010 at 12:53 PM, David Maynard <span dir="ltr">&lt;<a href="mailto:dmaynard@outserv.net">dmaynard@outserv.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">This usually isn’t very popular with developers, but if it is a
production server we don’t use CPAN if we can avoid it.  Instead we install RPM
packages of the modules.  The main reason is that we want to have repeatable
server builds.  It also helps you need the code to be portable to “stock” Red
Hat systems.</span></p></div></div></blockquote><div><br></div><div>Indeed.  Relying on your package manager is the recommended way for servers ... when you can get packages that have all of the things you need.  :-)</div>
<div><br></div><div>For the longest time we would use CPAN to install PDL because the RedHat package was broken in some way that was important to us (it&#39;s been a while, so I forget the specifics).  But now we just the perl-PDL package and don&#39;t worry about getting it from CPAN.</div>
<div><br></div><div>-Scott </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div>

<p class="MsoNormal"><span class="Apple-style-span" style="font-size: 15px; color: rgb(31, 73, 125); ">For Red Hat/CentOS, the DAG (<a href="http://dag.wieers.com/" target="_blank">http://dag.wieers.com/</a>)
yum/RPM repository has a good selection of Perl packages.  There are a couple
of other repositories that tend to have more bleeding-edge versions, but they
haven’t been around as long.</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">-dpm</span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D"> </span></p>

<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">

<p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
austin-bounces+dmaynard=<a href="http://outserv.net" target="_blank">outserv.net</a>@<a href="http://pm.org" target="_blank">pm.org</a>
[mailto:<a href="mailto:austin-bounces%2Bdmaynard" target="_blank">austin-bounces+dmaynard</a>=<a href="http://outserv.net" target="_blank">outserv.net</a>@<a href="http://pm.org" target="_blank">pm.org</a>] <b>On Behalf Of </b>Jonathan
Scott Duff<br>
<b>Sent:</b> Friday, April 09, 2010 12:33 PM<br>
<b>To:</b> Tim McDaniel<br>
<b>Cc:</b> <a href="mailto:Austin@pm.org" target="_blank">Austin@pm.org</a><br>
<b>Subject:</b> Re: APM: The proper way to use CPAN on a server</span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<p class="MsoNormal">I typically don&#39;t run cpan via sudo but rather set the
install commands within cpan to use sudo.  From the cpan&gt; prompt:</p>

<div>

<p class="MsoNormal"> </p>

</div>

<blockquote style="margin-left:30.0pt;margin-right:0in">

<div>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">cpan&gt; o conf
make_install_make_command &#39;sudo /usr/bin/make&#39;</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">cpan&gt; o conf
mbuild_install_build_command &#39;sudo ./Build&#39;</span></p>

</div>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">cpan&gt; o conf
commit # may not be needed</span></p>

</div>

</blockquote>

<div>

<div>

<p class="MsoNormal"> </p>

<div>

<p class="MsoNormal">Then, whenever you install via cpan, it will use sudo to
install modules.  </p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">Also, I often will run cpan thusly:</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

</div>

</div>

<blockquote style="margin-left:30.0pt;margin-right:0in">

<div>

<div>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">$
PERL_MM_USE_DEFAULT=1 cpan Bundle::CPAN</span></p>

</div>

</div>

</div>

</blockquote>

<div>

<div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">That causes cpan to accept the default answers to any
prompts as it installs the CPAN bundle.  This is usually so I don&#39;t have
to repeatedly answer &quot;y&quot; to install required modules.</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">Since you&#39;re asking about upgrading, there&#39;s another useful
thing you can do:</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

</div>

</div>

<blockquote style="margin-left:30.0pt;margin-right:0in">

<div>

<div>

<div>

<p class="MsoNormal"><span style="font-family:&quot;Courier New&quot;">perl -MCPAN -e
&#39;CPAN-&gt;upgrade(/^Catalyst::/)&#39;</span></p>

</div>

</div>

</div>

</blockquote>

<div>

<div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">That&#39;ll upgrade all of the installed modules that start with
&quot;Catalyst::&quot;  read the CPAN docs for more info.</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">hope this helps, </p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">-Scott</p>

</div>

<div>

<p class="MsoNormal"> </p>

</div>

<div>

<p class="MsoNormal">On Fri, Apr 9, 2010 at 11:58 AM, Tim McDaniel &lt;<a href="mailto:tmcd@panix.com" target="_blank">tmcd@panix.com</a>&gt; wrote:</p>

<p class="MsoNormal">I&#39;ve been lazy due to being on a single-user machine, either
at home<br>
or a Windows box at work.<br>
<br>
I got IT at work to install Perl 5.10.1 on a server.  I want to update<br>
the modules for all users.  I&#39;ve had an odd amount of trouble finding<br>
info on the Proper Way to upgrade -- maybe my Google-fu is weak today.<br>
Is it as simple as &quot;sudo cpan upgrade&quot;?  Should I worry about<br>
upgrading CPAN itself first, if necessary, and if so, how?  Are there<br>
any modifications due to<br>
   Red Hat Enterprise Linux Server release 5.4 (Tikanga)<br>
?<br>
<span style="color:#888888"><br>
-- <br>
Tim McDaniel, <a href="mailto:tmcd@panix.com" target="_blank">tmcd@panix.com</a><br>
_______________________________________________<br>
Austin mailing list<br>
<a href="mailto:Austin@pm.org" target="_blank">Austin@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/austin" target="_blank">http://mail.pm.org/mailman/listinfo/austin</a></span></p>

</div>

<p class="MsoNormal"> </p>

</div>

</div>

</div></div></div>

</div>


</blockquote></div><br>