<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
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.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>For Red Hat/CentOS, the DAG (<a href="http://dag.wieers.com/">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. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-dpm<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></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;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
austin-bounces+dmaynard=outserv.net@pm.org
[mailto:austin-bounces+dmaynard=outserv.net@pm.org] <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> Austin@pm.org<br>
<b>Subject:</b> Re: APM: The proper way to use CPAN on a server<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

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

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

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

<div>

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

</div>

<div>

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

</div>

<div>

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

</div>

</blockquote>

<div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal>Then, whenever you install via cpan, it will use sudo to
install modules. &nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

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

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</div>

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

<div>

<div>

<div>

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

</div>

</div>

</div>

</blockquote>

<div>

<div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

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

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>Since you're asking about upgrading, there's another useful
thing you can do:<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</div>

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

<div>

<div>

<div>

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

</div>

</div>

</div>

</blockquote>

<div>

<div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

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

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>hope this helps,&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>-Scott<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></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:<o:p></o:p></p>

<p class=MsoNormal>I'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. &nbsp;I want to update<br>
the modules for all users. &nbsp;I'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;? &nbsp;Should I worry about<br>
upgrading CPAN itself first, if necessary, and if so, how? &nbsp;Are there<br>
any modifications due to<br>
&nbsp; &nbsp;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><o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</div>

</body>

</html>